Skip to content

Commit

Permalink
fix: Replace tokens script
Browse files Browse the repository at this point in the history
  • Loading branch information
blank038 committed Mar 25, 2024
1 parent 76b0311 commit af837e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 0 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ artifacts {

processResources {
setFilteringCharset("UTF-8")
from(sourceSets.main.resources.srcDirs) {
include '**/plugin.yml', '**/history.yml'
filter ReplaceTokens, tokens: ["version": project.property("version")]
duplicatesStrategy DuplicatesStrategy.INCLUDE
}
}

tasks.withType(JavaCompile).configureEach {
Expand Down
7 changes: 7 additions & 0 deletions bukkit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.apache.tools.ant.filters.ReplaceTokens

plugins {
id 'java'
}
Expand Down Expand Up @@ -26,6 +28,11 @@ dependencies {

processResources {
setFilteringCharset("UTF-8")
from(sourceSets.main.resources.srcDirs) {
include '**/plugin.yml', '**/history.yml'
filter ReplaceTokens, tokens: ["version": project.property("version")]
duplicatesStrategy DuplicatesStrategy.INCLUDE
}
}

tasks.withType(JavaCompile).configureEach {
Expand Down

0 comments on commit af837e9

Please sign in to comment.