mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 19:56:17 -04:00
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:
parent
a33c483a72
commit
fbe4427dca
@ -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])
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user