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()
|
2022-03-17 15:27:28 +01:00
|
|
|
mavenLocal()
|
2022-02-21 11:51:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-04-26 01:22:14 +02:00
|
|
|
// JUnit
|
2022-02-21 11:51:30 +01:00
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
|
|
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
|
|
|
|
|
2022-04-26 01:22:14 +02:00
|
|
|
// Test CLI Exit Codes
|
2022-02-21 14:16:55 +01:00
|
|
|
// https://todd.ginsberg.com/post/testing-system-exit/
|
2022-04-26 01:15:27 +02:00
|
|
|
testImplementation "com.ginsberg:junit5-system-exit:$junitSysExitVersion"
|
2022-04-26 01:22:14 +02:00
|
|
|
|
|
|
|
// Test using mocked components
|
2022-04-26 01:16:17 +02:00
|
|
|
testImplementation "org.mockito:mockito-core:$mockitoVersion"
|
2022-02-21 14:16:55 +01:00
|
|
|
|
2022-04-26 01:22:14 +02:00
|
|
|
// Certificates
|
2022-04-26 01:17:17 +02:00
|
|
|
implementation("org.pgpainless:pgpainless-cert-d:$pgpainlessCertDVersion")
|
2022-04-26 01:22:14 +02:00
|
|
|
|
|
|
|
// WKD
|
2022-02-21 11:51:30 +01:00
|
|
|
implementation project(':wkd-java')
|
2022-04-26 01:22:14 +02:00
|
|
|
|
|
|
|
// CLI
|
2022-04-26 01:18:01 +02:00
|
|
|
implementation "info.picocli:picocli:$picocliVersion"
|
2022-02-21 11:51:30 +01:00
|
|
|
|
|
|
|
// Logging
|
|
|
|
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
|
2022-04-26 01:19:13 +02:00
|
|
|
implementation "org.slf4j:slf4j-nop:$slf4jVersion"
|
2022-03-02 18:01:12 +01:00
|
|
|
|
2022-04-26 01:22:14 +02:00
|
|
|
// Test Suite
|
2022-03-02 18:01:12 +01:00
|
|
|
testImplementation project(":wkd-test-suite")
|
2022-02-21 11:51:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2022-02-21 14:16:55 +01:00
|
|
|
|
2022-03-13 16:23:18 +01:00
|
|
|
application {
|
|
|
|
mainClass = 'pgp.wkd.cli.WKDCLI'
|
|
|
|
}
|