2024-04-11 02:30:19 +02:00
|
|
|
|
2023-08-26 16:19:12 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'dev.baseband'
|
|
|
|
version = '1.0-SNAPSHOT'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
2023-08-27 21:21:06 +02:00
|
|
|
configurations {
|
|
|
|
embed
|
|
|
|
compile.extendsFrom(embed)
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
|
2024-04-11 02:30:19 +02:00
|
|
|
implementation(fileTree(dir: "lib", include: "*.jar"))
|
|
|
|
embed(fileTree(dir: "lib", include: "*.jar"))
|
2023-08-27 21:21:06 +02:00
|
|
|
}
|
|
|
|
|
2023-08-26 16:19:12 +02:00
|
|
|
jar {
|
2023-08-28 06:53:33 +02:00
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
2023-08-27 21:21:06 +02:00
|
|
|
from {
|
|
|
|
configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
|
|
|
|
} {
|
|
|
|
exclude "LICENSE.txt", "META-INF/MANIFSET.MF", "META-INF/maven/**", "META-INF/*.RSA", "META-INF/*.SF"
|
|
|
|
}
|
2023-08-26 16:19:12 +02:00
|
|
|
manifest {
|
|
|
|
attributes(
|
2024-06-12 11:05:23 +02:00
|
|
|
'Main-Class': 'de.com.baseband.server.Main'
|
2023-08-26 16:19:12 +02:00
|
|
|
)
|
|
|
|
}
|
2024-06-12 11:05:23 +02:00
|
|
|
archiveFileName = 'BaseBand-Server.jar'
|
2023-08-26 16:19:12 +02:00
|
|
|
}
|