preparing message system:
copied model from previous java implementation
This commit is contained in:
@@ -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
1
core/src/main/java/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
com/
|
||||
Reference in New Issue
Block a user