drongo/build.gradle

68 lines
1.8 KiB
Groovy
Raw Normal View History

buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
2019-03-15 18:15:28 +00:00
plugins {
id 'java-library'
id 'extra-java-module-info'
2019-03-15 18:15:28 +00:00
}
2020-08-25 07:14:33 +00:00
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
def os = org.gradle.internal.os.OperatingSystem.current()
def osName = os.getFamilyName()
if(os.macOsX) {
osName = "osx"
}
2019-03-15 18:15:28 +00:00
repositories {
mavenCentral()
}
dependencies {
2020-03-31 13:43:34 +00:00
implementation ('com.googlecode.json-simple:json-simple:1.1.1') {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
exclude group: 'junit', module: 'junit'
}
implementation ('org.bouncycastle:bcprov-jdk18on:1.77') {
2020-03-31 13:43:34 +00:00
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
2022-05-06 15:34:00 +00:00
implementation ('de.mkammerer:argon2-jvm:2.11') {
2020-05-17 11:38:20 +00:00
exclude group: 'org.hamcrest', module: 'hamcrest-core'
exclude group: 'junit', module: 'junit'
2022-05-06 15:34:00 +00:00
exclude group: 'net.java.dev.jna', module: 'jna'
2020-05-17 11:38:20 +00:00
}
2022-05-06 15:34:00 +00:00
implementation ('net.java.dev.jna:jna:5.8.0')
implementation ('ch.qos.logback:logback-classic:1.4.14') {
2020-03-31 13:43:34 +00:00
exclude group: 'org.hamcrest', module: 'hamcrest-core'
2021-06-10 10:07:20 +00:00
exclude group: 'org.slf4j'
2020-03-31 13:43:34 +00:00
}
implementation ('org.slf4j:slf4j-api:2.0.12')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.10.0')
testImplementation('org.junit.vintage:junit-vintage-engine:5.10.0')
2019-03-15 18:15:28 +00:00
}
processResources {
doLast {
delete fileTree("$buildDir/resources/main/native").matching {
exclude "${osName}/**"
}
}
}
extraJavaModuleInfo {
module('json-simple-1.1.1.jar', 'json.simple', '1.1.1') {
exports('org.json.simple')
exports('org.json.simple.parser')
}
module('jnacl-1.0.0.jar', 'eu.neilalexander.jnacl', '1.0.0')
module('hamcrest-core-1.3.jar', 'org.hamcrest.core', '1.3')
}