Skip to content

Commit 46d5fc7

Browse files
committed
build: migrate minestom:app to Blossom 2.x DSL
The upstream merge brought net.kyori.blossom 2.2.0, whose DSL replaced the top-level blossom { replaceTokenIn / replaceToken } block. Use the sourceSets.main.blossom.javaSources.property form (matching upstream common/build.gradle) and the {{ version }} placeholder in LuckPermsApplication. https://claude.ai/code/session_01S76fk9ma5Szkf9r1W44RVP
1 parent aa27b05 commit 46d5fc7

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

minestom/app/build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@ dependencies {
4545
}
4646
}
4747

48-
blossom {
49-
replaceTokenIn('src/main/java/me/lucko/luckperms/minestom/app/LuckPermsApplication.java')
50-
replaceToken '@version@', project.ext.fullVersion
48+
sourceSets {
49+
main {
50+
blossom {
51+
javaSources {
52+
property 'version', project.ext.fullVersion
53+
}
54+
}
55+
}
5156
}
5257

5358
// Only used occasionally for deployment - not needed for normal builds.

minestom/app/src/main/java/me/lucko/luckperms/minestom/app/LuckPermsApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
public final class LuckPermsApplication {
2929

3030
public String getVersion() {
31-
return "@version@";
31+
return "{{ version }}";
3232
}
3333
}

0 commit comments

Comments
 (0)