-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
83 lines (68 loc) · 2 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
plugins {
id ("org.gradle.java")
id ("org.gradle.jacoco")
alias (libs.plugins.teamcity.server)
alias (libs.plugins.teamcity.environments)
alias (libs.plugins.sonarqube)
}
group = "com.github.rodm"
version = "1.3-SNAPSHOT"
base {
archivesName = "jmx-support"
}
dependencies {
testImplementation (platform(libs.junit.bom))
testImplementation (libs.junit.jupiter)
testImplementation (libs.mockito)
testRuntimeOnly (libs.junit.launcher)
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
tasks {
test {
useJUnitPlatform()
finalizedBy (jacocoTestReport)
}
jacocoTestReport {
reports {
xml.required = true
}
}
}
val teamcityVersion = project.findProperty("teamcity.api.version") as String? ?: "2018.1"
teamcity {
version = teamcityVersion
server {
descriptor {
name = "jmx-support"
displayName = "JMX support"
version = project.version as String
description = "Exposes Server, Agent and Project attributes and related build statistics via JMX."
vendorName = "Rod MacKenzie"
vendorUrl = "https://github.com/rodm"
email = "[email protected]"
useSeparateClassloader = true
minimumBuild = "58245"
}
publish {
token = findProperty("jetbrains.token") as String?
notes = "Fixes incompatibility with TeamCity 2023.05"
}
}
environments {
val java11Home = project.findProperty("java11.home") as String? ?: "/opt/jdk-11.0.2"
val serverDebugOptions = "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
register("teamcity2018.1") {
version = "2018.1.5"
serverOptions (serverDebugOptions)
}
register("teamcity2024.12") {
version = "2024.12.1"
javaHome = java11Home
serverOptions (serverDebugOptions)
}
}
}