forked from JetBrains/teamcity-bazel-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (34 loc) · 1.08 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.9.22"
}
ext {
def correctVersion = project.hasProperty('versionNumber') && property('versionNumber') ==~ /\d+\.\d+\.\d+.*/
versionNumber = correctVersion ? property('versionNumber') : 'SNAPSHOT-' + new Date().format('yyyyMMddHHmmss')
projectIds = ['group': 'teamcity-bazel-plugin', 'version': versionNumber]
teamcityVersion = project.hasProperty('teamcityVersion') ? property('teamcityVersion') : '2022.04'
}
group = projectIds.group
version = projectIds.version
allprojects {
group = projectIds.group
version = projectIds.version
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: "kotlin"
compileKotlin {
kotlinOptions.allWarningsAsErrors = true
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.allWarningsAsErrors = true
kotlinOptions.jvmTarget = "1.8"
}
test.useTestNG()
jar.version = null
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
def teamcityVersion = teamcityVersion
}