@@ -6,6 +6,9 @@ plugins {
6
6
}
7
7
8
8
sourceCompatibility = targetCompatibility = 1.8
9
+ compileJava {
10
+ sourceCompatibility = targetCompatibility = 1.8
11
+ }
9
12
10
13
version = " ${ fw_version}${ -> getVersionSuffix()} "
11
14
group = " io.github.zekerzhayard"
@@ -15,6 +18,9 @@ configurations {
15
18
provided {
16
19
compileOnly. extendsFrom provided
17
20
}
21
+ multirelase {
22
+ compileOnly. extendsFrom multirelase
23
+ }
18
24
}
19
25
20
26
repositories {
@@ -26,12 +32,13 @@ repositories {
26
32
}
27
33
28
34
dependencies {
29
- compileOnly " com.google.code.gson:gson:2.8.7 "
35
+ compileOnly " com.google.code.gson:gson:2.8.5 "
30
36
compileOnly " cpw.mods:modlauncher:8.0.9"
31
37
compileOnly " net.minecraftforge:installer:2.1.4"
32
38
compileOnly " net.sf.jopt-simple:jopt-simple:5.0.4"
33
39
34
40
provided project(" :legacy" )
41
+ multirelase project(" :jigsaw" )
35
42
}
36
43
37
44
java {
@@ -48,37 +55,20 @@ jar {
48
55
" Implementation-Vendor" :" ZekerZhayard" ,
49
56
" Implementation-Timestamp" : new Date (). format(" yyyy-MM-dd'T'HH:mm:ssZ" ),
50
57
" Automatic-Module-Name" : " ${ project.group} .${ project.archivesBaseName} " . toString(). toLowerCase(),
58
+ " Multi-Release" : " true" ,
51
59
" Main-Class" : " io.github.zekerzhayard.forgewrapper.converter.Main" ,
52
60
" GitCommit" : String . valueOf(System . getenv(" GITHUB_SHA" ))
53
61
])
54
62
55
63
from configurations. provided. files. collect {
56
64
zipTree(it)
57
65
}
58
- }
59
66
60
- /* task sourcesJar(type: Jar) {
61
- manifest {
62
- attributes(jar.manifest.attributes)
63
- }
64
- from sourceSets.main.allSource
65
- archiveFileName = "${archivesBaseName}-${archiveVersion.get()}-sources.${archiveExtension.get()}"
66
- }
67
-
68
- artifacts {
69
- archives sourcesJar
70
- }*/
71
-
72
- processResources {
73
- inputs. property " version" , project. version
74
- from(sourceSets. main. resources. srcDirs) {
75
- duplicatesStrategy = DuplicatesStrategy . INCLUDE
76
- include " patches/net.minecraftforge.json"
77
- expand " version" : project. version
78
- }
79
- from(sourceSets. main. resources. srcDirs) {
80
- duplicatesStrategy = DuplicatesStrategy . EXCLUDE
81
- exclude " patches/net.minecraftforge.json"
67
+ into " META-INF/versions/9" , {
68
+ from configurations. multirelase. files. collect {
69
+ zipTree(it)
70
+ }
71
+ exclude " META-INF/**"
82
72
}
83
73
}
84
74
0 commit comments