mirror of
https://github.com/CompeyDev/elytra-lock-fabric.git
synced 2024-12-12 12:50:42 +00:00
chore: centralize versions in build.gradle
This commit is contained in:
parent
2b625e49bc
commit
365fe32645
4 changed files with 11 additions and 9 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -19,7 +19,6 @@ classes/
|
||||||
# vscode
|
# vscode
|
||||||
|
|
||||||
.settings/
|
.settings/
|
||||||
.vscode/
|
|
||||||
bin/
|
bin/
|
||||||
.classpath
|
.classpath
|
||||||
.project
|
.project
|
||||||
|
|
4
.vscode/settings.json
vendored
Normal file
4
.vscode/settings.json
vendored
Normal 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"
|
||||||
|
}
|
|
@ -40,9 +40,11 @@ dependencies {
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
inputs.property "version", project.version
|
inputs.property "version", project.version
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
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 {
|
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()
|
withSourcesJar()
|
||||||
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_17
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
"elytra-lock.mixins.json"
|
"elytra-lock.mixins.json"
|
||||||
],
|
],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.15.11",
|
"fabricloader": "${loader_version}",
|
||||||
"minecraft": "~1.20.4",
|
"minecraft": "${minecraft_version}",
|
||||||
"java": ">=17",
|
"java": "${java_version}",
|
||||||
"fabric-api": "*"
|
"fabric-api": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue