Replaced blossom with ClassTokenReplacer

This commit is contained in:
RaphiMC 2023-09-05 21:28:01 +02:00
parent 87d80dea5c
commit a26929a511
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
2 changed files with 12 additions and 8 deletions

View File

@ -1,7 +1,7 @@
plugins {
id "java-library"
id "maven-publish"
id "net.kyori.blossom" version "1.3.1"
id "net.raphimc.class-token-replacer" version "1.0.0"
}
base {
@ -17,11 +17,7 @@ repositories {
mavenCentral()
maven {
name = "Lenni0451"
url "https://maven.lenni0451.net/releases"
}
maven {
name = "Lenni0451 Snapshots"
url "https://maven.lenni0451.net/snapshots"
url "https://maven.lenni0451.net/everything"
}
maven {
name = "OpenCollab Releases"
@ -57,8 +53,12 @@ dependencies {
api "org.yaml:snakeyaml:2.2"
}
blossom {
replaceToken("\${version}", project.version, "src/main/java/net/raphimc/vialoader/ViaLoader.java")
sourceSets {
main {
classTokenReplacer {
property("\${version}", project.version)
}
}
}
java {

View File

@ -2,6 +2,10 @@ pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
maven {
name = "Lenni0451"
url "https://maven.lenni0451.net/everything"
}
}
}