mirror of
https://codeberg.org/PGPainless/wkd-java.git
synced 2024-11-22 07:12:05 +01:00
52 lines
No EOL
1.2 KiB
Groovy
52 lines
No EOL
1.2 KiB
Groovy
// 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"
|
|
|
|
// 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")
|
|
implementation project(':wkd-java')
|
|
implementation "info.picocli:picocli:4.6.3"
|
|
|
|
// Logging
|
|
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
|
|
implementation 'org.slf4j:slf4j-nop:1.7.36'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
|
|
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"
|
|
}
|
|
} |