44 lines
No EOL
1.1 KiB
Groovy
44 lines
No EOL
1.1 KiB
Groovy
|
|
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
group = 'dev.baseband'
|
|
version = '1.0-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url = 'https://git.tudbut.de/api/packages/TudbuT/maven' }
|
|
maven { url = 'https://git.tudbut.de/api/packages/BaseBand/maven' }
|
|
}
|
|
|
|
configurations {
|
|
embed
|
|
compile.extendsFrom(embed)
|
|
reloadQuickly {
|
|
resolutionStrategy.cacheDynamicVersionsFor(30, 'seconds')
|
|
resolutionStrategy.cacheChangingModulesFor(30, 'seconds')
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
|
|
reloadQuickly embed('de.tudbut:tuddylib:+')
|
|
embed('at.favre.lib:bcrypt:0.10.2')
|
|
}
|
|
|
|
jar {
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
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"
|
|
}
|
|
manifest {
|
|
attributes(
|
|
'Main-Class': 'de.com.baseband.server.Main'
|
|
)
|
|
}
|
|
archiveFileName = 'BaseBand-Server.jar'
|
|
} |