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

63 lines
1.3 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'
2022-08-08 15:03:54 +02:00
id "com.github.johnrengelman.shadow" version "6.1.0"
2022-03-01 15:53:24 +01:00
}
group 'org.pgpainless'
repositories {
mavenCentral()
}
dependencies {
2022-04-26 00:52:29 +02:00
// Junit
2022-03-01 15:53:24 +01:00
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
// Logging
2022-08-08 15:03:54 +02:00
implementation ("org.slf4j:slf4j-nop:$slf4jVersion")
2022-03-01 15:53:24 +01:00
2022-04-26 00:52:29 +02:00
// pgp.cert.d using PGPainless
2022-03-01 15:53:24 +01:00
implementation project(":pgpainless-cert-d")
2022-04-26 00:52:29 +02:00
// SQL subkey table
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
2022-04-26 00:48:30 +02:00
implementation "info.picocli:picocli:$picocliVersion"
2022-03-01 15:53:24 +01:00
}
test {
useJUnitPlatform()
}
mainClassName = 'pgp.cert_d.cli.PGPCertDCli'
2022-08-08 15:03:54 +02:00
application {
mainClass = mainClassName
}
/*
2022-03-01 15:53:24 +01:00
jar {
2022-08-08 15:03:54 +02:00
dependsOn(":pgpainless-cert-d:jar")
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"
}
}
2022-08-08 15:03:54 +02:00
*/
2022-03-01 15:53:24 +01:00