2022-02-21 11:51:30 +01:00
|
|
|
// SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id 'application'
|
|
|
|
}
|
|
|
|
|
|
|
|
group 'org.pgpainless'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
|
|
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
|
|
|
|
|
2022-02-21 14:16:55 +01:00
|
|
|
// https://todd.ginsberg.com/post/testing-system-exit/
|
|
|
|
testImplementation 'com.ginsberg:junit5-system-exit:1.1.2'
|
|
|
|
testImplementation 'org.mockito:mockito-core:4.3.1'
|
|
|
|
|
|
|
|
implementation("org.pgpainless:pgpainless-core:1.1.0")
|
2022-02-21 11:51:30 +01:00
|
|
|
implementation project(':wkd-java')
|
2022-02-21 14:16:55 +01:00
|
|
|
implementation "info.picocli:picocli:4.6.3"
|
2022-02-21 11:51:30 +01:00
|
|
|
|
|
|
|
// Logging
|
|
|
|
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
|
2022-02-21 14:16:55 +01:00
|
|
|
implementation 'org.slf4j:slf4j-nop:1.7.36'
|
2022-02-21 11:51:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2022-02-21 14:16:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
mainClassName = 'pgp.wkd.cli.WKDCLI'
|
|
|
|
|
|
|
|
jar {
|
|
|
|
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
|
|
|
manifest {
|
|
|
|
attributes 'Main-Class': "$mainClassName"
|
|
|
|
}
|
|
|
|
|
|
|
|
from {
|
|
|
|
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
|
|
} {
|
|
|
|
exclude "META-INF/*.SF"
|
|
|
|
exclude "META-INF/*.DSA"
|
|
|
|
exclude "META-INF/*.RSA"
|
|
|
|
}
|
|
|
|
}
|