preparing message system:

copied model from previous java implementation
This commit is contained in:
2025-07-04 14:21:14 +02:00
parent 3c898f36de
commit c934e19837
14 changed files with 538 additions and 6 deletions

View File

@@ -18,6 +18,34 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}
tasks.jar {
manifest.attributes["Main-Class"] = "de.srsoftware.umbrella.core.Launcher"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
val dependencies = configurations
.runtimeClasspath
.get()
.map(::zipTree) // OR .map { zipTree(it) }
from(dependencies)
}
fun download(url : String, destination : String){
var destFile = projectDir.toPath().resolve(destination).toFile();
destFile.parentFile.mkdirs()
if (!destFile.exists()) {
System.out.println("Downloading "+url)
ant.invokeMethod("get", mapOf("src" to url, "dest" to destFile))
}
}
tasks.register("downloadLib"){
download("https://github.com/AshurAxelR/JParsedown/raw/refs/heads/master/src/com/xrbpowered/jparsedown/JParsedown.java", "src/main/java/com/xrbpowered/jparsedown/JParsedown.java")
}
tasks.withType<org.gradle.jvm.tasks.Jar>() {
exclude("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA")
}
tasks.named("compileJava") {
dependsOn("downloadLib")
}

1
core/src/main/java/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
com/