Skip to content

Commit

Permalink
Fixed version to 2.1.1. and fixed Gradle build file
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDutchMC committed Oct 7, 2020
1 parent e10e863 commit fcbf43e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,22 @@ allprojects {

}

print(pluginVersion)

//processResources {
// from(sourceSets.main.resources.srcDirs) {
// filesMatching('plugin.yml') {
// filter ReplaceTokens, tokens: [version: "2.1.1"]
// }
// }
//}

processResources {
from(sourceSets.main.resources.srcDirs) {
filesMatching('plugin.yml') {
filter ReplaceTokens, tokens: [version: pluginVersion]
}
from (sourceSets.main.resources) {
include 'plugin.yml'
filter(ReplaceTokens, tokens: ['version' : project.version])
}
}
}
}

dependencies {
Expand Down Expand Up @@ -61,4 +70,5 @@ task releaseJar(type: ShadowJar) {
from sourceSets.main.output
configurations = [project.configurations.runtime]
destinationDirectory = file("$rootDir/releases")

}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pluginVersion = 2.1
pluginVersion = 2.1.1
pluginGroup = nl.thedutchmc.harotorch
pluginName = HaroTorch

0 comments on commit fcbf43e

Please sign in to comment.