mirror of
https://github.com/CompeyDev/elytra-lock-fabric.git
synced 2024-12-12 04:40:41 +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
|
||||
|
||||
.settings/
|
||||
.vscode/
|
||||
bin/
|
||||
.classpath
|
||||
.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 {
|
||||
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
|
||||
|
|
|
@ -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": "*"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue