-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
100 lines (83 loc) · 2.53 KB
/
Copy pathbuild.gradle
File metadata and controls
100 lines (83 loc) · 2.53 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
plugins {
id 'java'
id 'tech.yanand.maven-central-publish' version '1.2.0'
id 'signing'
id 'maven-publish'
}
group = 'org.exploit'
version = '0.0.2'
repositories {
mavenCentral()
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
compileOnly 'org.projectlombok:lombok:1.18.38'
annotationProcessor 'org.projectlombok:lombok:1.18.38'
implementation 'org.exploit:jettyx:0.1.6'
implementation 'org.exploit:jettyx-jackson:0.1.6'
implementation 'org.exploit:jettyx-http2:0.1.6'
implementation 'com.auth0:auth0:2.20.0'
}
jar {
setDuplicatesStrategy(DuplicatesStrategy.EXCLUDE)
from(configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }) {
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
}
}
java {
withSourcesJar()
withJavadocJar()
}
tasks.withType(Javadoc).configureEach {
options.addStringOption("Xdoclint:none", "-quiet")
options.addBooleanOption("html5", true)
options.addBooleanOption("Xdoclint:-missing", true)
}
mavenCentral {
repoDir = layout.buildDirectory.dir('repos/bundles')
authToken = System.getenv("CENTRAL_MAVEN_TOKEN")
publishingType = 'USER_MANAGED'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'TSS Client'
description = 'TKeeper SDK'
url = 'https://github.com/exploit-org/TSSClient'
licenses {
license {
name = 'Apache License 2.0'
url = 'https://github.com/exploit-org/TSSClient/blob/main/LICENSE'
}
}
developers {
developer {
id = '0'
name = 'Martin Belov'
email = 'martin@exploit.org'
}
}
scm {
connection = 'scm:git:https://github.com/exploit-org/TSSClient.git'
developerConnection = 'scm:git:ssh://github.com/exploit-org/TSSClient.git'
url = 'https://github.com/exploit-org/TSSClient'
}
}
}
}
repositories {
maven {
name = "Local"
url = file("${buildDir}/repos/bundles")
}
}
signing {
sign publishing.publications.mavenJava
}
}
test {
useJUnitPlatform()
}