@@ -10,14 +10,14 @@ buildscript {
1010 classpath(
1111 group : " net.minecraftforge.gradle" ,
1212 name : " ForgeGradle" ,
13- version : forgeGradleVersion ,
13+ version : forge_gradle_version ,
1414 changing : true
1515 )
1616 classpath(
17- " org.jetbrains.kotlin:kotlin-gradle-plugin:$k otlinVersion "
17+ " org.jetbrains.kotlin:kotlin-gradle-plugin:$k otlin_version "
1818 )
1919 classpath(
20- " org.jetbrains.kotlin:kotlin-serialization:$k otlinVersion "
20+ " org.jetbrains.kotlin:kotlin-serialization:$k otlin_version "
2121 )
2222 }
2323}
@@ -26,34 +26,38 @@ apply(plugin: "net.minecraftforge.gradle")
2626apply(plugin : " kotlin" )
2727apply(plugin : " kotlinx-serialization" )
2828
29- version = projectEssentialsVersion
30- group = " com.mairwunnx.$p rojectEssentialsId "
31- archivesBaseName = projectEssentialsName
29+ version = module_version
30+ group = " com.mairwunnx.$m odule_id "
31+ archivesBaseName = module_name
3232
3333minecraft {
3434 mappings(
35- channel : mappingsChannelType ,
36- version : mappingsChannelVersion
35+ channel : forge_mappings_channel_type ,
36+ version : forge_mappings_channel_version
3737 )
3838
3939 runs {
4040 client {
41- workingDirectory(project. file(devRunClientPath))
41+ // noinspection GroovyAssignabilityCheck
42+ workingDirectory(project. file(dev_run_client_path))
4243 property(" forge.logging.markers" , " SCAN,REGISTRIES,REGISTRYDUMP" )
4344 property(" forge.logging.console.level" , " debug" )
4445 mods {
4546 ProjectEssentialsSpawn {
47+ // noinspection GroovyAssignabilityCheck
4648 source(sourceSets. main)
4749 }
4850 }
4951 }
5052
5153 server {
52- workingDirectory(project. file(devRunServerPath))
54+ // noinspection GroovyAssignabilityCheck
55+ workingDirectory(project. file(dev_run_server_path))
5356 property(" forge.logging.markers" , " SCAN,REGISTRIES,REGISTRYDUMP" )
5457 property(" forge.logging.console.level" , " debug" )
5558 mods {
5659 ProjectEssentialsSpawn {
60+ // noinspection GroovyAssignabilityCheck
5761 source(sourceSets. main)
5862 }
5963 }
@@ -70,58 +74,52 @@ repositories {
7074}
7175
7276dependencies {
73- minecraft(group : " net.minecraftforge" , name : " forge" , version : forgeBaseVersion )
74- compile(group : " com.mojang" , name : " brigadier" , version : brigadierBaseVersion )
77+ minecraft(group : " net.minecraftforge" , name : " forge" , version : forge_version )
78+ compile(group : " com.mojang" , name : " brigadier" , version : brigadier_version )
7579 compile(
7680 group : " org.jetbrains.kotlinx" ,
7781 name : " kotlinx-serialization-runtime" ,
78- version : kotlinxSerializationVersion
82+ version : kotlinx_serialization_version
7983 )
8084 compile(
8185 group : " org.jetbrains.kotlin" ,
82- name : " kotlin-stdlib-$k otlinJdkVersionTarget " ,
83- version : kotlinVersion
86+ name : " kotlin-stdlib-$k otlin_jdk_version_target " ,
87+ version : kotlin_version
8488 )
8589 compile(
8690 group : " com.github.projectessentials" ,
8791 name : " ProjectEssentials-Permissions" ,
88- version : " v1.14.4-0.2.0.0 "
92+ version : ess_perm_version
8993 )
9094 compile(
9195 group : " com.github.projectessentials" ,
9296 name : " ProjectEssentials-Core" ,
93- version : " v1.14.4-1.+ "
97+ version : ess_core_version
9498 )
9599 compile(
96100 group : " com.github.projectessentials" ,
97101 name : " ProjectEssentials-Cooldown" ,
98- version : " v1.14.4-1.+ "
102+ version : ess_cooldown_version
99103 )
100104}
101105
102106jar {
103107 manifest {
104108 attributes([
105- " Specification-Title" : projectEssentialsName ,
106- " Specification-Vendor" : projectEssentialsVendor ,
107- " Specification-Version" : projectEssentialsVersion ,
108- " Implementation-Title" : projectEssentialsName ,
109- " Implementation-Version" : projectEssentialsVersion ,
110- " Implementation-Vendor" : projectEssentialsVendor ,
109+ " Specification-Title" : module_name ,
110+ " Specification-Vendor" : module_vendor ,
111+ " Specification-Version" : module_version ,
112+ " Implementation-Title" : module_name ,
113+ " Implementation-Version" : module_version ,
114+ " Implementation-Vendor" : module_vendor ,
111115 " Implementation-Timestamp" : new Date (). format(" yyyy-MM-dd'T'HH:mm:ssZ" )
112116 ])
113117 }
114118}
115119
116120sourceCompatibility = targetCompatibility =
117121 compileJava. sourceCompatibility =
118- compileJava. targetCompatibility = jvmVersionTarget
122+ compileJava. targetCompatibility = project_jvm_version_target
119123
120124compileKotlin. kotlinOptions. jvmTarget =
121- compileTestKotlin. kotlinOptions. jvmTarget = jvmVersionTarget
122-
123- tasks. withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile ). all {
124- kotlinOptions {
125- freeCompilerArgs + = " -Xuse-experimental=kotlin.Experimental"
126- }
127- }
125+ compileTestKotlin. kotlinOptions. jvmTarget = project_jvm_version_target
0 commit comments