chore: centralize versions in build.gradle

This commit is contained in:
Erica Marigold 2024-05-20 20:48:40 +05:30
parent 2b625e49bc
commit 365fe32645
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1
4 changed files with 11 additions and 9 deletions

1
.gitignore vendored
View file

@ -19,7 +19,6 @@ classes/
# vscode
.settings/
.vscode/
bin/
.classpath
.project

4
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,4 @@
{
"java.configuration.updateBuildConfiguration": "automatic",
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable"
}

View file

@ -40,9 +40,11 @@ dependencies {
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
expand "version": project.version,
"java_version": ">=17",
"minecraft_version": "~${project.minecraft_version}",
"loader_version": ">=${project.loader_version}"
}
}
@ -51,9 +53,6 @@ tasks.withType(JavaCompile).configureEach {
}
java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17

View file

@ -23,9 +23,9 @@
"elytra-lock.mixins.json"
],
"depends": {
"fabricloader": ">=0.15.11",
"minecraft": "~1.20.4",
"java": ">=17",
"fabricloader": "${loader_version}",
"minecraft": "${minecraft_version}",
"java": "${java_version}",
"fabric-api": "*"
}
}