-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
72 lines (62 loc) · 2.03 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.github.rodm:gradle-teamcity-plugin:1.4"
}
}
apply plugin: 'java'
apply plugin: 'com.github.rodm.teamcity-server'
group 'org.jetbrains.teamcity'
version = "$System.env.BUILD_NUMBER"
if (version.length() == 0) {
version = "SNAPSHOT"
}
dependencies {
implementation 'com.google.code.gson:gson:2.3.1'
implementation 'org.apache.httpcomponents:httpclient:4.5.2'
testImplementation 'org.springframework:spring-test:4.3.2.RELEASE'
testImplementation 'org.mockito:mockito-core:2.1.0-RC.1'
provided(group: 'org.jetbrains.teamcity', name: 'oauth', version: "${TeamCityVersion}")
}
test {
useTestNG()
}
ext {
teamcityDir = "$rootDir/servers/TeamCity-${TeamCityVersion}"
teamcityDataDir = "$rootDir/data/" + (
(TeamCityVersion ==~ /(\d+\.\d+).*/) ?
((TeamCityVersion =~ /(\d+\.\d+).*/)[0][1])
: TeamCityVersion
)
teamcityJavaHome = System.properties['java.home']
}
teamcity {
version = TeamCityVersion
server {
descriptor {
name = project.name
displayName = 'TeamCity GitHub Auth'
version = project.version
vendorName = 'JetBrains, s.r.o.'
vendorUrl = 'https://www.jetbrains.com/'
description = 'Allows authenticating using GitHub OAuth'
useSeparateClassloader = true
}
environments {
teamcityDev {
version = TeamCityVersion
homeDir = file(teamcityDir)
dataDir = file(teamcityDataDir)
javaHome = file(teamcityJavaHome)
serverOptions '-Xdebug'
serverOptions '-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5500'
serverOptions '-Dteamcity.development.mode=true'
serverOptions '-Dteamcity.development.shadowCopyClasses=true'
}
}
}
}