2019-03-15 18:15:28 +00:00
|
|
|
plugins {
|
2021-06-25 12:55:48 +00:00
|
|
|
id 'java-library'
|
2019-03-15 18:15:28 +00:00
|
|
|
}
|
|
|
|
|
|
2020-08-25 07:14:33 +00:00
|
|
|
tasks.withType(AbstractArchiveTask) {
|
|
|
|
|
preserveFileTimestamps = false
|
|
|
|
|
reproducibleFileOrder = true
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-02 11:40:23 +00:00
|
|
|
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 {
|
2025-04-01 12:59:37 +00:00
|
|
|
implementation ('org.bouncycastle:bcprov-jdk18on:1.80')
|
|
|
|
|
implementation('org.pgpainless:pgpainless-core:1.7.5') {
|
|
|
|
|
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-common'
|
|
|
|
|
}
|
2022-05-06 15:34:00 +00:00
|
|
|
implementation ('de.mkammerer:argon2-jvm:2.11') {
|
|
|
|
|
exclude group: 'net.java.dev.jna', module: 'jna'
|
2020-05-17 11:38:20 +00:00
|
|
|
}
|
2025-07-24 12:30:04 +00:00
|
|
|
implementation('dnsjava:dnsjava:3.6.3')
|
|
|
|
|
implementation('com.github.ben-manes.caffeine:caffeine:3.0.1')
|
|
|
|
|
implementation ('net.java.dev.jna:jna:5.16.0')
|
2025-04-01 12:59:37 +00:00
|
|
|
implementation ('ch.qos.logback:logback-classic:1.5.18') {
|
2021-06-10 10:07:20 +00:00
|
|
|
exclude group: 'org.slf4j'
|
2020-03-31 13:43:34 +00:00
|
|
|
}
|
2024-02-15 07:22:15 +00:00
|
|
|
implementation ('org.slf4j:slf4j-api:2.0.12')
|
|
|
|
|
testImplementation('org.junit.jupiter:junit-jupiter-api:5.10.0')
|
2024-02-15 08:26:05 +00:00
|
|
|
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.10.0')
|
|
|
|
|
testRuntimeOnly('org.junit.platform:junit-platform-launcher')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
test {
|
|
|
|
|
useJUnitPlatform()
|
2019-03-15 18:15:28 +00:00
|
|
|
}
|
|
|
|
|
|
2021-07-02 11:40:23 +00:00
|
|
|
processResources {
|
|
|
|
|
doLast {
|
|
|
|
|
delete fileTree("$buildDir/resources/main/native").matching {
|
|
|
|
|
exclude "${osName}/**"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|