Skip to content

Commit

Permalink
BETA 16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mosemister committed Oct 16, 2023
1 parent e38e2de commit f1b075f
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 5 deletions.
19 changes: 18 additions & 1 deletion buildGradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ tasks.register("buildPaper") {
dependsOn("CoreToFolia:build")
dependsOn("ShipsForCore:build")
doLast {
combine("CoreToFolia", (zos) -> { })
combine("CoreToFolia", (zos) -> {
var yaml = Files.lines(file("buildGradle/paper-plugin.yml").toPath()).collect(Collectors.joining("\n")).replaceAll("%version%", version)
zos.putNextEntry(new ZipEntry("paper-plugin.yml"))
zos.write(yaml.getBytes(Charset.forName("UTF-8")))
})
}
}

Expand All @@ -36,6 +40,9 @@ ext.combine = { path, adder ->
var name = path.substring("CoreTo".length())

var output = file('standalone/Ships' + name + ".jar")
if (output.exists()) {
output.delete();
}

output.parentFile.mkdirs()
output.createNewFile();
Expand All @@ -53,6 +60,16 @@ ext.combine = { path, adder ->
}
return
}
if (entry.getName().equals("META-INF/translate-core.properties")) {
System.err.println("Found translate-core entry in module of " + file.path)
return;
}
if (entry.getName().equals("paper-plugin.yml")) {
return
}
if (entry.getName().equals("META-INF/sponge_plugins.json")) {
return
}
entered.add(entry.getName())
var newEntry = new ZipEntry(entry.getName());
zos.putNextEntry(newEntry);
Expand Down
11 changes: 11 additions & 0 deletions buildGradle/paper-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Ships'
version: '%version%'
api-version: '1.19'
main: 'org.core.implementation.folia.platform.plugin.boot.TranslateCoreBoot'
authors:
- mosemister
dependencies:
server:
vault:
load: AFTER
required: false

0 comments on commit f1b075f

Please sign in to comment.