86 lines
2.7 KiB
Groovy
86 lines
2.7 KiB
Groovy
/*
|
|
* Copyright 2018 dorkbox, llc
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
plugins {
|
|
id 'java'
|
|
id 'maven'
|
|
}
|
|
|
|
ext {
|
|
bcVersion = '1.59'
|
|
jnaVersion = '4.5.1'
|
|
}
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
setSrcDirs Collections.singletonList('src')
|
|
}
|
|
}
|
|
test {
|
|
java {
|
|
setSrcDirs Collections.singletonList('test')
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
|
|
|
|
implementation group: 'com.github.jponge', name: 'lzma-java', version: '1.3'
|
|
implementation group: 'com.fasterxml.uuid', name: 'java-uuid-generator', version: '3.1.5'
|
|
|
|
implementation group: 'com.esotericsoftware', name: 'kryo', version: '4.0.2'
|
|
implementation group: 'io.netty', name: 'netty-all', version: '4.1.24.Final'
|
|
|
|
implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: bcVersion
|
|
implementation group: 'org.bouncycastle', name: 'bcpg-jdk15on', version: bcVersion
|
|
implementation group: 'org.bouncycastle', name: 'bcmail-jdk15on', version: bcVersion
|
|
// implementation group: 'org.bouncycastle', name: 'bctls-jdk15on', version: bcVersion
|
|
|
|
implementation group: 'org.lwjgl', name: 'lwjgl-xxhash', version: '3.1.6'
|
|
implementation group: 'org.javassist', name: 'javassist', version: '3.23.0-GA'
|
|
|
|
implementation group: 'com.dorkbox', name: 'ShellExecutor', version: '1.1+'
|
|
|
|
implementation group: 'net.java.dev.jna', name: 'jna', version: jnaVersion
|
|
implementation group: 'net.java.dev.jna', name: 'jna-platform', version: jnaVersion
|
|
|
|
// unit testing
|
|
testImplementation group: 'junit', name: 'junit', version: '4.12'
|
|
testRuntime group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.6'
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
options.incremental = true
|
|
options.fork = true
|
|
options.forkOptions.executable = 'javac'
|
|
|
|
// setup compile options. we specifically want to suppress usage of "Unsafe"
|
|
options.compilerArgs += ['-XDignore.symbol.file', '-Xlint:deprecation']
|
|
}
|
|
|
|
|