2021-10-07 15:48:52 +02:00
|
|
|
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-07-15 16:55:13 +02:00
|
|
|
plugins {
|
|
|
|
id 'application'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
|
|
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
|
2021-10-29 20:28:14 +02:00
|
|
|
|
2021-07-15 16:55:13 +02:00
|
|
|
// https://todd.ginsberg.com/post/testing-system-exit/
|
|
|
|
testImplementation 'com.ginsberg:junit5-system-exit:1.1.1'
|
|
|
|
testImplementation "org.mockito:mockito-core:3.11.2"
|
|
|
|
|
2021-09-17 18:16:58 +02:00
|
|
|
implementation(project(":sop-java"))
|
|
|
|
implementation "info.picocli:picocli:$picocliVersion"
|
|
|
|
|
2021-07-15 16:55:13 +02:00
|
|
|
// https://mvnrepository.com/artifact/com.google.code.findbugs/jsr305
|
|
|
|
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
|
|
|
|
}
|
|
|
|
|
|
|
|
mainClassName = 'sop.cli.picocli.SopCLI'
|
|
|
|
|
|
|
|
jar {
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|