@@ -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}
@@ -27,34 +27,38 @@ apply(plugin: "kotlin")
2727apply(plugin : " java" )
2828apply(plugin : " kotlinx-serialization" )
2929
30- version = projectEssentialsVersion
31- group = " com.mairwunnx.$p rojectEssentialsId "
32- archivesBaseName = projectEssentialsName
30+ version = module_version
31+ group = " com.mairwunnx.$m odule_id "
32+ archivesBaseName = module_name
3333
3434minecraft {
3535 mappings(
36- channel : mappingsChannelType ,
37- version : mappingsChannelVersion
36+ channel : forge_mappings_channel_type ,
37+ version : forge_mappings_channel_version
3838 )
3939
4040 runs {
4141 client {
42- workingDirectory(project. file(devRunClientPath))
42+ // noinspection GroovyAssignabilityCheck
43+ workingDirectory(project. file(dev_run_client_path))
4344 property(" forge.logging.markers" , " SCAN,REGISTRIES,REGISTRYDUMP" )
4445 property(" forge.logging.console.level" , " debug" )
4546 mods {
4647 ProjectEssentialsChat {
48+ // noinspection GroovyAssignabilityCheck
4749 source(sourceSets. main)
4850 }
4951 }
5052 }
5153
5254 server {
53- workingDirectory(project. file(devRunServerPath))
55+ // noinspection GroovyAssignabilityCheck
56+ workingDirectory(project. file(dev_run_server_path))
5457 property(" forge.logging.markers" , " SCAN,REGISTRIES,REGISTRYDUMP" )
5558 property(" forge.logging.console.level" , " debug" )
5659 mods {
5760 ProjectEssentialsChat {
61+ // noinspection GroovyAssignabilityCheck
5862 source(sourceSets. main)
5963 }
6064 }
@@ -71,56 +75,57 @@ repositories {
7175}
7276
7377dependencies {
74- minecraft(group : " net.minecraftforge" , name : " forge" , version : forgeBaseVersion )
75- compile(group : " com.mojang" , name : " brigadier" , version : brigadierBaseVersion )
78+ minecraft(group : " net.minecraftforge" , name : " forge" , version : forge_version )
79+ compile(group : " com.mojang" , name : " brigadier" , version : brigadier_version )
7680 compile(
7781 group : " org.jetbrains.kotlinx" ,
7882 name : " kotlinx-serialization-runtime" ,
79- version : kotlinxSerializationVersion
83+ version : kotlinx_serialization_version
8084 )
8185 compile(
8286 group : " org.jetbrains.kotlin" ,
83- name : " kotlin-stdlib-$k otlinJdkVersionTarget " ,
84- version : kotlinVersion
87+ name : " kotlin-stdlib-$k otlin_jdk_version_target " ,
88+ version : kotlin_version
8589 )
8690 compile(
8791 group : " com.github.projectessentials" ,
8892 name : " ProjectEssentials-Permissions" ,
89- version : " v1.14.4-0.2.0.0 "
93+ version : ess_perm_version
9094 )
9195 compile(
9296 group : " com.github.projectessentials" ,
9397 name : " ProjectEssentials-Core" ,
94- version : " v1.14.4-1.+ "
98+ version : ess_core_version
9599 )
96100 compile(
97101 group : " com.github.projectessentials" ,
98102 name : " ProjectEssentials-Cooldown" ,
99- version : " v1.14.4-1.+ "
103+ version : ess_cooldown_version
100104 )
101105}
102106
103107jar {
104108 manifest {
105109 attributes([
106- " Specification-Title" : projectEssentialsName ,
107- " Specification-Vendor" : projectEssentialsVendor ,
108- " Specification-Version" : projectEssentialsVersion ,
109- " Implementation-Title" : projectEssentialsName ,
110- " Implementation-Version" : projectEssentialsVersion ,
111- " Implementation-Vendor" : projectEssentialsVendor ,
110+ " Specification-Title" : module_name ,
111+ " Specification-Vendor" : module_vendor ,
112+ " Specification-Version" : module_version ,
113+ " Implementation-Title" : module_name ,
114+ " Implementation-Version" : module_version ,
115+ " Implementation-Vendor" : module_vendor ,
112116 " Implementation-Timestamp" : new Date (). format(" yyyy-MM-dd'T'HH:mm:ssZ" )
113117 ])
114118 }
115119}
116120
117121sourceCompatibility = targetCompatibility =
118122 compileJava. sourceCompatibility =
119- compileJava. targetCompatibility = jvmVersionTarget
123+ compileJava. targetCompatibility = project_jvm_version_target
120124
121125compileKotlin. kotlinOptions. jvmTarget =
122- compileTestKotlin. kotlinOptions. jvmTarget = jvmVersionTarget
126+ compileTestKotlin. kotlinOptions. jvmTarget = project_jvm_version_target
123127
128+ // noinspection GroovyAssignabilityCheck
124129tasks. withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile ). all {
125130 kotlinOptions {
126131 freeCompilerArgs + = " -Xuse-experimental=kotlin.Experimental"
0 commit comments