Merge pull request #64 from PlaceholderAPI/feature/read-version-from-manifest

build: read version from MANIFEST
This commit is contained in:
Gabriel Dumitru authored and GitHub committed 2024-09-22 18:20:42 +03:00
commit 1176318486
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -18,7 +18,11 @@ dependencies {
}
tasks {
java {
jar {
manifest {
attributes["Implementation-Title"] = "server"
attributes["Implementation-Version"] = project.version
}
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
@@ -63,7 +63,7 @@ public final class ServerExpansion extends PlaceholderExpansion implements Cache
@Override
public @NotNull String getVersion() {
return "2.7.2";
return getClass().getPackage().getImplementationVersion();
}
@Override