mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +00:00
a53929a9a8
Replaces the old Gradle plugin with plain Gradle buildscripts. Also cleans-up the current Gradle extensions and re-adds detekt, along with JUnit 5 support to all modules.
28 lines
1.2 KiB
Groovy
28 lines
1.2 KiB
Groovy
apply plugin: 'java-library'
|
|
|
|
description = 'Apollo Utilities'
|
|
|
|
dependencies {
|
|
api group: 'io.netty', name: 'netty-all', version: nettyVersion
|
|
|
|
implementation group: 'org.apache.commons', name: 'commons-compress', version: commonsCompressVersion
|
|
implementation group: 'com.google.guava', name: 'guava', version: guavaVersion
|
|
implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: bouncycastleVersion
|
|
|
|
test.useJUnitPlatform()
|
|
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junitJupiterVersion
|
|
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junitJupiterVersion
|
|
testImplementation group: 'org.junit.vintage', name: 'junit-vintage-engine', version: junitVintageVersion
|
|
testImplementation group: 'org.junit.platform', name: 'junit-platform-launcher', version: junitPlatformVersion
|
|
}
|
|
|
|
task(genRsa, dependsOn: classes, type: JavaExec) {
|
|
def utilSubproject = project(':util')
|
|
def utilClasspath = utilSubproject.sourceSets.main.runtimeClasspath
|
|
|
|
main = 'org.apollo.util.tools.RsaKeyGenerator'
|
|
classpath = utilClasspath
|
|
jvmArgs = ['-Xmx1024M']
|
|
workingDir = project.rootDir
|
|
}
|