-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.gradle
102 lines (87 loc) · 3.2 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath group: 'com.github.rodm', name: 'gradle-teamcity-plugin', version: '0.9.1'
}
}
apply plugin: 'java'
apply plugin: 'com.github.rodm.teamcity-server'
group = 'ru.mail.teamcity'
version = '1.7.0'
repositories {
mavenCentral()
maven {
url "http://repository.jetbrains.com/all"
}
maven {
url "http://download.jetbrains.com/teamcity-repository"
}
mavenLocal()
}
ext {
teamcityVersion = System.properties['teamcity.version'] ?: '10.0.2'
teamcityDir = "${System.properties['user.home']}/.teamcity.d"
java8Home = project.hasProperty('java8.home') ? property('java8.home') : '/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home'
serverOpts = "-DTC.res.disableAll=true " +
"-Dteamcity.development.mode=true " +
"-Dteamcity.development.shadowCopyClasses=true " +
"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=50055"
}
test {
useTestNG()
}
dependencies {
provided "org.jetbrains.teamcity:server-api:${teamcityVersion}"
/* This dependency is not provided by JetBrains,
* so you have to install it manually from TeamCity distribution
* in order to be able to build plugin:
*
* mvn install:install-file -Dfile=webapps/ROOT/WEB-INF/lib/web.jar\
* -DgroupId=org.jetbrains.teamcity -DartifactId=web -Dversion=9.1.6 -Dpackaging=jar
*/
provided "org.jetbrains.teamcity:web:${teamcityVersion}"
provided "org.jetbrains.teamcity:server:${teamcityVersion}"
testRuntime "org.jetbrains.teamcity:tests-support:${teamcityVersion}"
compile "org.apache.httpcomponents:httpclient:4.3.4"
compile "com.fasterxml.jackson.core:jackson-core:2.2.2"
compile "com.fasterxml.jackson.core:jackson-databind:2.2.2"
compile "com.fasterxml.jackson.core:jackson-annotations:2.2.2"
compile "com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.4.1"
compile "com.bazaarvoice.jolt:jolt-core:0.0.24"
compile "com.bazaarvoice.jolt:json-utils:0.0.24"
}
teamcity {
version = teamcityVersion
server {
downloadsDir = "${teamcityDir}/_downloads"
descriptor = file("teamcity-plugin.xml")
tokens = [Version: project.version]
environments {
teamcity81 {
version = '8.1.5'
homeDir = file("$teamcityDir/TeamCity-${version}")
dataDir = file("$teamcityDir/data/8.1")
javaHome = file(java8Home)
serverOptions = serverOpts
}
teamcity91 {
version = '9.1.6'
homeDir = file("$teamcityDir/TeamCity-${version}")
dataDir = file("$teamcityDir/data/9.1")
javaHome = file(java8Home)
serverOptions = serverOpts
}
teamcity10 {
version = '10.0.2'
homeDir = file("$teamcityDir/TeamCity-${version}")
dataDir = file("$teamcityDir/data/${version}")
javaHome = file(java8Home)
serverOptions = serverOpts
}
}
}
}