Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix extraneous @VERSION@ #114

Merged
merged 3 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions addon.gradle
Original file line number Diff line number Diff line change
@@ -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])
}
}
2 changes: 1 addition & 1 deletion src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down