-
Notifications
You must be signed in to change notification settings - Fork 43
/
build.gradle.kts
52 lines (45 loc) · 1.1 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
plugins {
idea
id("net.researchgate.release") version "3.0.2"
kotlin("jvm") version "1.9.24" apply false
}
allprojects {
group = "com.navercorp.scavenger"
repositories {
mavenCentral()
}
// setting for frontend build
apply(plugin = "idea")
idea {
module {
outputDir = file("build/classes/kotlin/main")
testOutputDir = file("build/classes/kotlin/test")
}
}
}
release {
val releaseVersion = if (hasProperty("release.releaseVersion")) {
property("release.releaseVersion")
} else {
version
}
pushReleaseVersionBranch.set("release/${releaseVersion}")
tagTemplate.set("v${releaseVersion}")
preTagCommitMessage.set("Release ")
newVersionCommitMessage.set("Update next development version after Release")
with(git) {
requireBranch.set("main")
}
}
subprojects {
tasks.withType<Test> {
useJUnitPlatform()
}
}
project(":scavenger-old-agent-java").afterEvaluate {
tasks.configureEach {
onlyIf {
project.hasProperty("oldAgent")
}
}
}