-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
89 lines (84 loc) · 2.3 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
82
83
84
85
86
87
88
89
import org.jreleaser.model.Active
plugins {
kotlin("jvm") version ("2.0.0") apply (false)
id("jacoco-report-aggregation")
id("org.jreleaser") version ("1.13.1")
}
tasks.wrapper {
gradleVersion = "8.8"
distributionType = Wrapper.DistributionType.BIN
}
allprojects {
group = "io.github.wakingrufus"
}
dependencies {
subprojects.forEach {
jacocoAggregation(project(":" + it.name))
}
}
repositories {
mavenCentral()
}
reporting {
reports {
val testCodeCoverageReport by creating(JacocoCoverageReport::class) {
testType = TestSuiteType.UNIT_TEST
}
}
}
project.description = "A framework for declarative DSL configuration for Spring Boot"
jreleaser {
signing {
active = Active.ALWAYS
armored = true
publicKey = System.getenv("PUBLIC_KEY")
secretKey = System.getenv("PRIVATE_KEY")
passphrase = System.getenv("PASSPHRASE")
}
release {
github {
repoOwner = "wakingrufus"
host = "github.com"
username = "wakingrufus"
apiEndpoint = "https://api.github.com"
token = System.getenv("GITHUB_TOKEN")
enabled = true
releaseName = "{{tagName}}"
releaseNotes {
enabled = true
}
changelog {
enabled = false
}
skipTag = true
sign = false
}
}
deploy {
maven {
mavenCentral {
create("sonatype") {
active = Active.ALWAYS
url = "https://central.sonatype.com/api/v1/publisher"
stagingRepository("build/staging-deploy")
applyMavenCentralRules = true
username = System.getenv("SONATYPE_USER")
password = System.getenv("SONATYPE_PASS")
namespace.set("io.github.wakingrufus")
retryDelay = 20
maxRetries = 100
}
}
}
}
}
project.tasks.named("jreleaserFullRelease") {
dependsOn(
subprojects
.filter { it.name != "test-application" }
.map { it.tasks.named("publish") }
)
}
tasks.create<Delete>("clean") {
setDelete(layout.buildDirectory)
}