@@ -12,7 +12,7 @@ plugins {
1212 id ' eclipse'
1313 id ' idea'
1414 id ' maven-publish'
15- id ' net.minecraftforge.gradle' version ' [6.0,6.2) '
15+ id ' net.minecraftforge.gradle' version ' 5.1.+ '
1616}
1717
1818version = mod_version
2222 archivesName = mod_id
2323}
2424
25- // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17.
26- java. toolchain. languageVersion = JavaLanguageVersion . of(17 )
25+ sourceCompatibility = targetCompatibility = ' 1.8'
2726
2827println " Java: ${ System.getProperty 'java.version'} , JVM: ${ System.getProperty 'java.vm.version'} (${ System.getProperty 'java.vendor'} ), Arch: ${ System.getProperty 'os.arch'} "
2928minecraft {
@@ -47,11 +46,6 @@ minecraft {
4746 // enableEclipsePrepareRuns = true
4847 // enableIdeaPrepareRuns = true
4948
50- // This property allows configuring Gradle's ProcessResources task(s) to run on IDE output locations before launching the game.
51- // It is REQUIRED to be set to true for this template to function.
52- // See https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html
53- copyIdeResources = true
54-
5549 // When true, this property will add the folder name of all declared run configurations to generated IDE run configurations.
5650 // The folder name can be set on a run configuration using the "folderName" property.
5751 // By default, the folder name of a run configuration is the name of the Gradle project containing it.
@@ -83,7 +77,6 @@ minecraft {
8377 // You can set various levels here.
8478 // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
8579 property ' forge.logging.console.level' , ' debug'
86-
8780 mods {
8881 " ${ mod_id} " {
8982 source sourceSets. main
@@ -92,22 +85,12 @@ minecraft {
9285 }
9386
9487 client {
95- // Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
96- property ' forge.enabledGameTestNamespaces' , mod_id
9788 }
9889
9990 server {
100- property ' forge.enabledGameTestNamespaces' , mod_id
10191 args ' --nogui'
10292 }
10393
104- // This run config launches GameTestServer and runs all registered gametests, then exits.
105- // By default, the server will crash when no gametests are provided.
106- // The gametest system is also enabled by default for other run configs under the /test command.
107- gameTestServer {
108- property ' forge.enabledGameTestNamespaces' , mod_id
109- }
110-
11194 data {
11295 // example of overriding the workingDirectory set in configureEach above
11396 workingDirectory project. file(' run-data' )
@@ -134,8 +117,8 @@ dependencies {
134117 // then special handling is done to allow a setup of a vanilla dependency without the use of an external repository.
135118 minecraft " net.minecraftforge:forge:${ minecraft_version} -${ forge_version} "
136119
137- implementation fg. deobf(" curse.maven:jei-238222:5846864 " )
138- implementation fg. deobf(" curse.maven:applied-energistics-2-223794:4733112 " )
120+ runtimeOnly fg. deobf(" curse.maven:jei-238222:5846870 " )
121+ implementation fg. deobf(" curse.maven:applied-energistics-2-223794:3571836 " )
139122 // Example mod dependency with JEI - using fg.deobf() ensures the dependency is remapped to your development mappings
140123 // The JEI API is declared for compile time use, while the full JEI artifact is used at runtime
141124 // compileOnly fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}")
0 commit comments