Correctly store the OC version in the config file (#114)

* fix extraneous @VERSION@

* don't doublecopy

* spotless don't gradle
This commit is contained in:
bombcar 2024-01-08 13:23:32 -06:00 committed by GitHub
parent a33c483a72
commit fbe4427dca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,12 @@
import org.apache.tools.ant.filters.ReplaceTokens
tasks.withType(ScalaCompile) {
scalaCompileOptions.forkOptions.with {
memoryMaximumSize = '4g'
}
}
tasks.named("processResources", ProcessResources).configure {
filesMatching("application.conf") {
filter(ReplaceTokens, tokens: [version: project.version])
}
}

View File

@ -7,7 +7,7 @@ opencomputers {
# The version of OC this config was generated by. This is used to allow the
# mod to reset parts of the config when their meaning changed across
# versions, so that the user does not have to delete it.
version: "@VERSION@"
version: "@version@"
# Client side settings, presentation and performance related stuff.
client {