File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ if (grgit != null) {
3737 realVersion + = " +nogit"
3838}
3939
40- setVersion( realVersion)
40+ version = realVersion
4141
4242tasks. register(" cleanPreprocessSources" ) {
4343 doFirst {
Original file line number Diff line number Diff line change 1111 archivesName = " ${ project.archives_base_name} -all"
1212}
1313
14- def fabric_subprojects = project. parent . subprojects. findAll({
14+ def fabric_subprojects = project. rootProject . subprojects. findAll({
1515 it. name != " fabricWrapper"
1616})
1717
@@ -31,18 +31,18 @@ jar {
3131 it. tasks. remapJar
3232 })
3333
34- from(" ../ LICENSE" )
35- from(" build/ tmp/submods" )
34+ from(project . rootProject . file( " LICENSE" ) )
35+ from(layout . buildDirectory . dir( " tmp/submods" ) )
3636
3737 doFirst {
38- delete fileTree(" build/ tmp/submods/META-INF/jars" )
38+ delete fileTree(layout . buildDirectory . dir( " tmp/submods/META-INF/jars" ) )
3939 copy {
4040 from {
4141 fabric_subprojects. collect {
4242 it. remapJar. outputs. files
4343 }
4444 }
45- into(" build/ tmp/submods/META-INF/jars" )
45+ into(layout . buildDirectory . dir( " tmp/submods/META-INF/jars" ) )
4646 }
4747 }
4848}
@@ -69,7 +69,7 @@ processResources {
6969 jars. add([" file" : " META-INF/jars/${ project.archives_base_name} -mc${ it.minecraft_out} -${ it.version} .jar" ])
7070 })
7171
72- File file = file(" build/ resources/main/fabric.mod.json" )
72+ File file = layout . buildDirectory . file(" resources/main/fabric.mod.json" ). getOrNull() . asFile
7373 JsonSlurper slurper = new JsonSlurper ()
7474 JsonBuilder builder = new JsonBuilder (slurper. parse(file))
7575 builder. content. depends. minecraft = mc_condition
Original file line number Diff line number Diff line change @@ -123,12 +123,10 @@ loom {
123123 }
124124}
125125
126- setVersion(project. parent. version)
127- setGroup(project. maven_group)
128-
129-
130126base {
131- archivesName. set(" ${ project.archives_base_name} -mc${ project.minecraft_out} " )
127+ version = project. parent. version
128+ group = project. maven_group
129+ archivesName = " ${ project.archives_base_name} -mc${ project.minecraft_out} "
132130}
133131
134132replaceToken {
@@ -175,7 +173,7 @@ java {
175173}
176174
177175jar {
178- from(" ../../ LICENSE" )
176+ from(project . rootProject . file( " LICENSE" ) )
179177}
180178
181179tasks. register(" cleanRun" ) {
You can’t perform that action at this time.
0 commit comments