-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.gradle
56 lines (48 loc) · 1.04 KB
/
build.gradle
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
plugins {
id 'java-library'
id 'maven-publish'
id 'jacoco'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
test {
useJUnitPlatform()
testLogging {
exceptionFormat = 'full'
}
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
}
}
dependencies {
api 'org.glassfish:javax.json:1.1.4'
api 'org.apache.commons:commons-lang3:3.13.0'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
publishing {
publications {
library(MavenPublication) {
version = findProperty('publishing.version')
from components.java
}
}
publishing {
repositories {
maven {
name = findProperty("publishing.name")
url = findProperty("publishing.url")
credentials {
username = System.getenv(findProperty("publishing.usernameEnvironmentVariable"))
password = System.getenv(findProperty("publishing.passwordEnvironmentVariable"))
}
}
}
}
}