cert-d-pgpainless/pgpainless-cert-d-cli/build.gradle

52 lines
1.1 KiB
Groovy
Raw Permalink Normal View History

2022-03-01 16:29:10 +01:00
// SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org>
2022-03-01 15:53:24 +01:00
//
// 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"
// Logging
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
implementation project(":pgpainless-cert-d")
2022-03-01 16:26:33 +01:00
implementation "org.pgpainless:pgp-cert-d-java-jdbc-sqlite-lookup:$pgpCertDJavaVersion"
2022-03-01 15:53:24 +01:00
// picocli for cli
implementation "info.picocli:picocli:4.6.2"
}
test {
useJUnitPlatform()
}
mainClassName = 'pgp.cert_d.cli.PGPCertDCli'
jar {
2022-03-01 16:26:33 +01:00
dependsOn(":pgpainless-cert-d:assemble")
2022-03-01 15:53:24 +01:00
manifest {
attributes 'Main-Class': "$mainClassName"
}
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
}