mirror of
https://github.com/plexusorg/Plex.git
synced 2025-06-25 13:24:28 +00:00
Revamp the build system
This commit is contained in:
@ -1,7 +1,3 @@
|
||||
plugins {
|
||||
id("net.kyori.blossom") version "1.3.1"
|
||||
}
|
||||
|
||||
group = rootProject.group
|
||||
version = rootProject.version
|
||||
description = "Plex-Velocity"
|
||||
@ -24,8 +20,14 @@ tasks {
|
||||
}
|
||||
}
|
||||
|
||||
blossom {
|
||||
replaceToken("@version@", rootProject.version)
|
||||
sourceSets {
|
||||
main {
|
||||
blossom {
|
||||
javaSources {
|
||||
property("version", project.version.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
|
@ -0,0 +1,5 @@
|
||||
package dev.plex;
|
||||
|
||||
class BuildParameters {
|
||||
public static final String VERSION = "{{ version }}";
|
||||
}
|
@ -28,7 +28,7 @@ import java.util.logging.Logger;
|
||||
@Plugin(
|
||||
name = "Plex",
|
||||
id = "plex",
|
||||
version = "@version@",
|
||||
version = BuildParameters.VERSION,
|
||||
url = "https://plex.us.org",
|
||||
description = "Plex provides a new experience for freedom servers.",
|
||||
authors = {"Telesphoreo", "Taah"}
|
||||
|
Reference in New Issue
Block a user