11plugins {
2+ id ' java'
3+ id ' maven-publish'
4+ id ' idea'
5+ id ' eclipse'
26 id ' fabric-loom' version ' 0.12-SNAPSHOT'
7+ id ' io.github.juuxel.loom-quiltflower' version ' 1.7.3'
38}
49
510apply from : ' https://raw.githubusercontent.com/TerraformersMC/GradleScripts/2.5/ferry.gradle'
611
7- loom {
8- accessWidenerPath = file(" src/main/resources/cinderscapes.accesswidener" )
9- }
10-
1112repositories {
1213 maven {
1314 name = ' TerraformersMC'
@@ -17,16 +18,115 @@ repositories {
1718}
1819
1920dependencies {
20- minecraft(" com.mojang:minecraft:${ project.minecraft_version} " )
21- mappings(" net.fabricmc:yarn:${ project.yarn_mappings} :v2" )
21+ minecraft " com.mojang:minecraft:$project . minecraft_version "
22+ mappings " net.fabricmc:yarn:$project . yarn_mappings :v2"
23+
24+ modImplementation " net.fabricmc:fabric-loader:${ project.loader_version} "
25+ modImplementation " net.fabricmc.fabric-api:fabric-api:${ project.fabric_version} "
26+
27+ modImplementation " com.terraformersmc:modmenu:${ project.modmenu_version} "
28+
29+ includeMod " terraform-api" , " com.terraformersmc.terraform-api:terraform-biome-remapper-api-v1:${ project.terraform_biome_remapper_api_version} "
30+ includeMod " terraform-api" , " com.terraformersmc.terraform-api:terraform-shapes-api-v1:${ project.terraform_shapes_api_version} "
31+ includeMod " terraform-api" , " com.terraformersmc.terraform-api:terraform-wood-api-v1:${ project.terraform_wood_api_version} "
32+
33+ includeMod " cloth-config" , " me.shedaniel.cloth:cloth-config-fabric:${ project.clothconfig_version} "
34+
35+ afterEvaluate {
36+ subprojects. each {
37+ testmodImplementation sourceSets. main. output
38+ implementation project(path : " ${ it.name} " , configuration : " namedElements" )
39+ include project(" ${ it.name} :" )
40+ }
41+ }
42+ }
2243
23- mod(" fabric-loader" , " net.fabricmc:fabric-loader:${ project.loader_version} " )
24- mod(" fabric-api" , " net.fabricmc.fabric-api:fabric-api:${ project.fabric_version} " )
44+ allprojects {
45+ apply plugin : ' java'
46+ apply plugin : ' idea'
47+ apply plugin : ' eclipse'
48+ apply plugin : ' maven-publish'
49+ apply plugin : ' fabric-loom'
50+ // apply plugin: 'io.github.juuxel.loom-quiltflower-mini'
2551
26- includeMod(" terraform-api" ," com.terraformersmc.terraform-api:terraform-shapes-api-v1:${ project.terraform_shapes_api_version} " )
27- includeMod(" terraform-api" ," com.terraformersmc.terraform-api:terraform-wood-api-v1:${ project.terraform_wood_api_version} " )
52+ sourceCompatibility = JavaVersion . VERSION_17
53+ targetCompatibility = JavaVersion . VERSION_17
54+
55+ group = project. maven_group
56+
57+ sourceSets {
58+ testmod {
59+ compileClasspath + = main. compileClasspath
60+ runtimeClasspath + = main. runtimeClasspath
61+ }
62+ }
63+
64+ // quiltflower {
65+ // addToRuntimeClasspath.set(true)
66+ // }
67+
68+ configurations {
69+ dev {
70+ canBeResolved = false
71+ canBeConsumed = true
72+ }
73+ }
74+
75+ jar {
76+ classifier = " dev"
77+ }
78+
79+ afterEvaluate {
80+ processResources {
81+ inputs. property " version" , project. version
82+
83+ filesMatching(" fabric.mod.json" ) {
84+ expand " version" : project. version
85+ }
86+ }
87+ }
88+
89+ // task sourcesJar(type: Jar, dependsOn: classes) {
90+ // classifier = "sources"
91+ // from sourceSets.main.allSource
92+ // }
93+
94+ tasks. withType(JavaCompile ) {
95+ it. options. encoding = " UTF-8"
96+ it. options. release = 17
97+ }
98+
99+ repositories {
100+ maven {
101+ name = ' TerraformersMC'
102+ url = ' https://maven.terraformersmc.com/'
103+ }
104+
105+ // Cloth Config
106+ maven {
107+ url = " https://maven.shedaniel.me"
108+ }
109+ }
110+ }
111+
112+ subprojects {
113+ dependencies {
114+ minecraft " com.mojang:minecraft:${ project.minecraft_version} "
115+ mappings " net.fabricmc:yarn:${ project.yarn_mappings} :v2"
116+
117+ modImplementation " net.fabricmc:fabric-loader:${ project.loader_version} "
118+ modImplementation " net.fabricmc.fabric-api:fabric-api:${ project.fabric_version} "
119+
120+ modImplementation " com.terraformersmc:modmenu:${ project.modmenu_version} "
121+
122+ modImplementation " com.terraformersmc.terraform-api:terraform-biome-remapper-api-v1:${ project.terraform_biome_remapper_api_version} "
123+ modImplementation " com.terraformersmc.terraform-api:terraform-shapes-api-v1:${ project.terraform_shapes_api_version} "
124+ modImplementation " com.terraformersmc.terraform-api:terraform-wood-api-v1:${ project.terraform_wood_api_version} "
125+
126+ modImplementation " me.shedaniel.cloth:cloth-config-fabric:${ project.clothconfig_version} "
127+ }
28128
29- mod( " mod-menu " , " com.terraformersmc:modmenu: ${ project.modmenu_version } " )
129+ version = rootProject . version
30130
31- includeMod( " cloth-config " , " me.shedaniel.cloth:cloth-config-fabric: ${ project.clothconfig_version } " )
131+ runClient . enabled = false
32132}
0 commit comments