Skip to content

Commit

Permalink
Update example maven version to 1.18.2 and use a variable to specify …
Browse files Browse the repository at this point in the history
…java version so that we can easily mark it on curseforge as cursegradle doesn't support auto-detecting modern java versions
  • Loading branch information
pupnewfster committed Apr 10, 2022
1 parent 436dbf2 commit b7917fb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ dependencies {
Add the following to your `gradle.properties` file (see [Maven](https://modmaven.dev/mekanism/Mekanism/) for the list of available versions):

```properties
mekanism_version=1.16.5-10.1.0.455
mekanism_version=1.18.2-10.2.0.459
```

# Credits #
Expand Down
2 changes: 1 addition & 1 deletion annotation-processor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {

group 'mekanism.annotation-processor'
version '1.1.1'
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
java.toolchain.languageVersion = JavaLanguageVersion.of("${java_version}")

repositories {
maven {
Expand Down
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def createReplaceResourcesTask(String output, SourceSet sourceSet) {
group = "mekanism"
version = "${minecraft_version}-${mod_version}." + (System.env.BUILD_NUMBER ?: "homebaked")
archivesBaseName = "Mekanism"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
java.toolchain.languageVersion = JavaLanguageVersion.of("${java_version}")

minecraft {
mappings channel: "${mappings_channel}", version: "${mappings_version}"
Expand Down Expand Up @@ -848,6 +848,7 @@ if (System.getenv("CURSEFORGE_KEY") != null || project.hasProperty('curseforgeKe
}
}
addArtifact apiJar
addGameVersion "Java ${java_version}"
addGameVersion "${minecraft_version}"
}

Expand All @@ -862,6 +863,7 @@ if (System.getenv("CURSEFORGE_KEY") != null || project.hasProperty('curseforgeKe
requiredDependency "mekanism"
}
}
addGameVersion "Java ${java_version}"
addGameVersion "${minecraft_version}"
}

Expand All @@ -876,6 +878,7 @@ if (System.getenv("CURSEFORGE_KEY") != null || project.hasProperty('curseforgeKe
requiredDependency "mekanism"
}
}
addGameVersion "Java ${java_version}"
addGameVersion "${minecraft_version}"
}*/

Expand All @@ -890,6 +893,7 @@ if (System.getenv("CURSEFORGE_KEY") != null || project.hasProperty('curseforgeKe
requiredDependency "mekanism"
}
}
addGameVersion "Java ${java_version}"
addGameVersion "${minecraft_version}"
}

Expand All @@ -904,6 +908,7 @@ if (System.getenv("CURSEFORGE_KEY") != null || project.hasProperty('curseforgeKe
requiredDependency "mekanism"
}
}
addGameVersion "Java ${java_version}"
addGameVersion "${minecraft_version}"
}
}
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G

java_version=17
minecraft_version=1.18.2
mappings_version=2022.03.13-1.18.2
mappings_channel=parchment
Expand Down

0 comments on commit b7917fb

Please sign in to comment.