@@ -3,16 +3,19 @@ architectury {
33 forge()
44}
55
6- project. archivesBaseName = rootProject. archivesBaseName + " -forge"
6+ base {
7+ archivesName = rootProject. archives_base_name + " -forge"
8+ }
79
810configurations {
911 common {
1012 canBeResolved = true
1113 canBeConsumed = false
1214 }
13- compileClasspath. extendsFrom common
14- runtimeClasspath. extendsFrom common
15- developmentForge. extendsFrom common
15+ compileClasspath. extendsFrom(common)
16+ runtimeClasspath. extendsFrom(common)
17+ developmentNeoForge. extendsFrom(common)
18+
1619 shadowBundle {
1720 canBeResolved = true
1821 canBeConsumed = false
@@ -29,38 +32,42 @@ loom {
2932dependencies {
3033 forge " net.minecraftforge:forge:${ rootProject.minecraft_version} -${ rootProject.forge_version} "
3134
32- common(project(path : " :common" , configuration : " namedElements" )) { transitive false }
33- shadowBundle(project(path : " :common" , configuration : " transformProductionForge" )) { transitive = false }
35+ common(project(path : " :common" , configuration : " namedElements" )) {
36+ transitive = false
37+ }
38+ shadowBundle(project(path : " :common" , configuration : " transformProductionNeoForge" )) {
39+ transitive = false
40+ }
3441}
3542
3643processResources {
37- inputs. property " version" , project. version
44+ inputs. property( " version" , project. version)
3845
39- filesMatching(" META-INF/mods.toml" ) {
40- expand " version" : project. version
46+ filesMatching(" META-INF/forge. mods.toml" ) {
47+ expand( version : project. version)
4148 }
4249}
4350
4451shadowJar {
45- exclude " fabric.mod.json"
46- exclude " architectury.common.json"
52+ exclude( " fabric.mod.json" )
53+ exclude( " architectury.common.json" )
4754
4855 configurations = [project. configurations. shadowBundle]
4956 archiveClassifier. set(" dev-shadow" )
5057}
5158
5259remapJar {
53- inputFile. set shadowJar. archiveFile
54- dependsOn shadowJar
55- archiveClassifier. set(null )
60+ inputFile. set( shadowJar. archiveFile)
61+ dependsOn( shadowJar)
62+ archiveClassifier. set(( String ) null )
5663}
5764
5865jar {
5966 archiveClassifier. set(" dev" )
6067}
6168
6269sourcesJar {
63- def commonSources = project(" :common" ). sourcesJar
64- dependsOn commonSources
65- from commonSources. archiveFile. map { zipTree(it) }
70+ def commonSources = project(" :common" ). tasks . named( " sourcesJar" )
71+ dependsOn( commonSources)
72+ from( commonSources. flatMap { it . archiveFile } . map { zipTree(it) })
6673}
0 commit comments