Setup resource filtering

Also mark gradlew as executable
This commit is contained in:
Shane Freeder 2019-09-28 09:43:33 +01:00
parent 2ee102b44f
commit c44ca47bfe
No known key found for this signature in database
GPG Key ID: A3F61EA5A085289C
3 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
`java-library`
@ -33,6 +34,10 @@ tasks {
relocate("org.apache.tomcat", "com.gmail.nossr50.database.tomcat")
relocate("org.bstats", "com.gmail.nossr50.metrics.bstat")
}
processResources {
filter<ReplaceTokens>("tokens" to mapOf("project.version" to project.version))
}
}
java {

0
gradlew vendored Normal file → Executable file
View File

View File

@ -1,5 +1,5 @@
name: mcMMO
version: ${project.version}
version: @project.version@
description: >
The goal of mcMMO is to take core Minecraft game mechanics and expand them into
add an extensive and quality RPG experience. Everything in mcMMO has been carefully