-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
111 lines (97 loc) · 3.3 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
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
101
102
103
104
105
106
107
108
109
110
111
plugins {
id 'java'
id 'application'
id 'checkstyle'
id 'maven-publish'
id 'signing'
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
}
group = 'ch.geowerkstatt.interlis.testbed.runner'
repositories {
mavenCentral()
}
dependencies {
implementation platform('org.apache.logging.log4j:log4j-bom:2.22.0')
implementation 'org.apache.logging.log4j:log4j-api'
testImplementation 'org.apache.logging.log4j:log4j-core'
runtimeOnly 'org.apache.logging.log4j:log4j-core'
implementation 'commons-cli:commons-cli:1.6.0'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.xmlunit:xmlunit-core:2.9.1'
testImplementation "org.mockito:mockito-core:5.+"
}
application {
mainClass = 'ch.geowerkstatt.interlis.testbed.runner.Main'
}
java {
withSourcesJar()
withJavadocJar()
}
jar {
manifest {
attributes(
'Main-Class': application.mainClass,
'Class-Path': configurations.runtimeClasspath.collect { file -> file.getName() }.join(' ')
)
}
}
test {
useJUnitPlatform()
}
publishing {
publications {
GeowerkstattTestbedRunner(MavenPublication) {
from components.java
pom {
name = 'interlis-testbed-runner'
description = 'Testbed runner to test INTERLIS constraint definitions.'
url = 'https://github.com/GeoWerkstatt/interlis-testbed-runner'
licenses {
license {
name = 'MIT License'
url = 'https://github.com/GeoWerkstatt/interlis-testbed-runner/blob/master/LICENSE'
}
}
developers {
developer {
id = 'GeoWerkstatt'
name = 'GeoWerkstatt GmbH'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git:https://github.com/GeoWerkstatt/interlis-testbed-runner.git'
developerConnection = 'scm:git:git:https://github.com/GeoWerkstatt/interlis-testbed-runner.git'
url = 'https://github.com/GeoWerkstatt/interlis-testbed-runner/'
}
}
}
}
repositories {
maven {
name = 'GitHubPackages'
url = uri('https://maven.pkg.github.com/GeoWerkstatt/interlis-testbed-runner')
credentials {
username = findProperty("GITHUB_ACTOR")
password = findProperty("GITHUB_TOKEN")
}
}
}
}
nexusPublishing {
repositories {
sonatype { //only for users registered in Sonatype after 24 Feb 2021
username = findProperty("OSSRH_USER")
password = findProperty("OSSRH_PASSWORD")
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
signing {
def key = findProperty("SIGNING_KEY")
def password = findProperty("SIGNING_PASSWORD")
useInMemoryPgpKeys(key, password)
sign(publishing.publications.GeowerkstattTestbedRunner)
}