Skip to content

Commit

Permalink
Change version file name to avoid collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyborger1 committed Aug 29, 2022
1 parent 150e573 commit 516e9fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ tasks.withType(JavaCompile) {
// https://github.com/dillydill123/inventory-setups/blob/2643da8f1952e30be554d0d601397daced9c3120/build.gradle#L39
task createProperties(dependsOn: processResources) {
doLast {
new File("$buildDir/resources/main/version.txt").text = "version=$project.version"
new File("$buildDir/resources/main/botdetector_version.txt").text = "version=$project.version"
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/botdetector/BotDetectorPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ protected void startUp()
try
{
final Properties props = new Properties();
props.load(BotDetectorPlugin.class.getResourceAsStream("/version.txt"));
props.load(BotDetectorPlugin.class.getResourceAsStream("/botdetector_version.txt"));
detectorClient.setPluginVersion(props.getProperty("version"));
}
catch (Exception e)
Expand Down

0 comments on commit 516e9fb

Please sign in to comment.