forked from JetBrains/teamcity-google-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
38 lines (30 loc) · 896 Bytes
/
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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.0"
}
ext {
def correctVersion = project.hasProperty('versionNumber') && property('versionNumber') ==~ /\d+\.\d+\.\d+.*/
versionNumber = correctVersion ? property('versionNumber') : 'SNAPSHOT-' + new Date().format('yyyyMMddHHmmss')
projectIds = ['group': 'teamcity-google-agent', 'version': versionNumber]
teamcityVersion = findProperty('teamcityVersion') ?: '2018.1'
}
group = projectIds.group
version = projectIds.version
repositories {
mavenCentral()
}
allprojects {
group = projectIds.group
version = projectIds.version
}
subprojects {
apply plugin: "kotlin"
test.useTestNG()
jar.version = null
compileKotlin {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.9'
}