Skip to content

Commit 0d7f449

Browse files
committed
Update Gradle config and plugin.yml to fix version expansion and target Java 21
1 parent 39a3633 commit 0d7f449

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ dependencies {
1717
}
1818

1919
java {
20-
targetCompatibility = JavaVersion.VERSION_25
21-
sourceCompatibility = JavaVersion.VERSION_25
20+
targetCompatibility = JavaVersion.VERSION_21
21+
sourceCompatibility = JavaVersion.VERSION_21
2222
}
2323

2424
tasks {
@@ -38,6 +38,8 @@ tasks {
3838
}
3939

4040
processResources {
41-
expand("project" to project)
41+
filesMatching("plugin.yml") {
42+
expand("version" to version)
43+
}
4244
}
4345
}

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: DisplayEntityEditor
2-
version: '${project.version}'
2+
version: '${version}'
33
main: goldenshadow.displayentityeditor.DisplayEntityEditor
44
api-version: 1.19
55
authors: [_GoldenShadow, officialMex]

0 commit comments

Comments
 (0)