Skip to content

Commit ecdde6b

Browse files
committed
Fixed the build.gradle for the plugin json...
1 parent 753d0c4 commit ecdde6b

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ dependencies {
6363
library('net.minecraftforge:eventbus:7.0-beta.1')
6464
}
6565

66+
tasks.named('processResources', ProcessResources).configure {
67+
var replaceProperties = [
68+
mangobot_version: version
69+
]
70+
inputs.properties replaceProperties
71+
72+
filesMatching(['mangobotcore.plugin.json']) {
73+
expand replaceProperties + [project: project]
74+
}
75+
}
76+
6677
jar {
6778
dependsOn configurations.embedLibrary
6879

src/main/java/org/mangorage/mangobotcore/plugin/api/Metadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ public sealed interface Metadata permits MetadataImpl {
1010
String getType();
1111
String getVersion();
1212
List<? extends Dependency> getDependencies();
13-
}
13+
}

0 commit comments

Comments
 (0)