-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild-extras.gradle
53 lines (49 loc) · 1.49 KB
/
build-extras.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
// This file
// * is referred to in an `apply from` command in `build.gradle`
// * can be used to customise `build.gradle`
// * is generated once and not overwritten in SDK generation updates
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.9.2'
testImplementation 'com.github.tomakehurst:wiremock:2.27.2'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
// Disable tests for publishing b/c we run tests in pipeline already
// TODO: Find better alternative
tasks.named('test') {
onlyIf {
project.hasProperty('runTests')
}
}
repositories {
maven {
url = layout.buildDirectory.dir('target/staging-deploy')
}
}
jreleaser {
signing {
active = 'ALWAYS'
armored = true
verify = false
passphrase = System.getenv("JRELEASER_GPG_PASSPHRASE")
secretKey = System.getenv("JRELEASER_GPG_SECRET_KEY")
}
deploy {
maven {
mavenCentral {
sonatype {
active = 'ALWAYS'
url = 'https://central.sonatype.com/api/v1/publisher'
username = System.getenv("JRELEASER_DEPLOY_MAVEN_MAVENCENTRAL_USERNAME")
password = System.getenv("JRELEASER_DEPLOY_MAVEN_MAVENCENTRAL_PASSWORD")
stagingRepository('target/staging-deploy')
}
}
}
}
}