Skip to content

Commit

Permalink
Set version correctly for spark-paper
Browse files Browse the repository at this point in the history
  • Loading branch information
lucko committed Jul 18, 2024
1 parent 3907534 commit fdbea08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions spark-paper/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
plugins {
id 'net.kyori.blossom' version '1.3.0'
id 'io.github.goooler.shadow' version '8.1.7'
id 'maven-publish'
}
Expand All @@ -21,6 +22,11 @@ repositories {
maven { url "https://repo.papermc.io/repository/maven-public/" }
}

blossom {
replaceTokenIn('src/main/java/me/lucko/spark/paper/PaperSparkPlugin.java')
replaceToken '@version@', project.pluginVersion
}

shadowJar {
archiveFileName = "spark-${project.pluginVersion}-paper.jar"
archiveClassifier = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void onServerTickEnd(double duration) {

@Override
public String getVersion() {
return "TODO"; // TODO - get from package implementation version?
return "@version@";
}

@Override
Expand Down

0 comments on commit fdbea08

Please sign in to comment.