mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-23 05:17:58 +01:00
51 lines
1.2 KiB
Groovy
51 lines
1.2 KiB
Groovy
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
plugins {
|
|
id 'application'
|
|
}
|
|
|
|
dependencies {
|
|
// JUnit
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
|
|
|
|
// Testing Exit Codes in JUnit
|
|
// https://todd.ginsberg.com/post/testing-system-exit/
|
|
testImplementation "com.ginsberg:junit5-system-exit:$junitSysExitVersion"
|
|
|
|
// Mocking Components
|
|
testImplementation "org.mockito:mockito-core:$mockitoVersion"
|
|
|
|
// SOP
|
|
implementation(project(":sop-java"))
|
|
|
|
// CLI
|
|
implementation "info.picocli:picocli:$picocliVersion"
|
|
|
|
// @Nonnull, @Nullable...
|
|
implementation "com.google.code.findbugs:jsr305:$jsrVersion"
|
|
}
|
|
|
|
mainClassName = 'sop.cli.picocli.SopCLI'
|
|
|
|
application {
|
|
mainClass = mainClassName
|
|
}
|
|
|
|
jar {
|
|
dependsOn(":sop-java: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"
|
|
}
|
|
}
|