-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
81 lines (71 loc) · 2.24 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
plugins {
`java-library`
`maven-publish`
signing
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
group = "io.github.adessose"
version = "0.1.2"
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
implementation("com.augustcellars.cose:cose-java:1.1.0")
implementation("com.fasterxml.jackson.core:jackson-databind:2.14.0-rc2")
api("com.yubico:webauthn-server-core:2.1.0")
}
java {
withSourcesJar()
withJavadocJar()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}
tasks.javadoc {
(options as StandardJavadocDocletOptions).tags("apiNote:a:API Note:", "implNote:a:Implementation Note:")
}
publishing {
publications {
create<MavenPublication>("main") {
pom {
name.set("softauthn")
description.set("softauthn provides an implementation of the WebAuthn API and a software authenticator " +
"in Java, using the java-webauthn-server library for data models. It can be used to test " +
"WebAuthn backends.")
url.set("https://github.com/adessoSE/softauthn")
scm {
url.set("https://github.com/adessoSE/softauthn")
}
licenses {
license {
name.set("MIT")
url.set("https://mit-license.org")
}
}
developers {
developer {
organization.set("adesso SE")
organizationUrl.set("https://adesso.de")
}
}
}
from(components["java"])
}
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
signing {
useGpgCmd()
sign(publishing.publications)
}