mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 16:49:11 +00:00
57fc49a42b
Prevent bytecode generation related test failures in tests that rely on PowerMock by updating to PowerMock 2.
29 lines
1.3 KiB
Groovy
29 lines
1.3 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: 'junit', name: 'junit', version: junitVersion
|
|
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
|
|
}
|