-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathbuild.gradle
50 lines (38 loc) · 1003 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
39
40
41
42
43
44
45
46
47
48
49
50
repositories {
mavenCentral()
maven {
url "https://download.jetbrains.com/teamcity-repository/"
}
}
apply plugin: 'java'
sourceCompatibility = 1.8
version = '2023.2'
println("##teamcity[buildNumber '$version']")
configurations {
deploy
}
dependencies {
compile 'org.jetbrains.teamcity:server-api:2018.2+'
compile 'org.jetbrains.teamcity:common-api:2018.2+'
compile 'com.google.code.gson:gson:2.+'
compile 'org.jdom:jdom:1+'
compile 'joda-time:joda-time:2.3'
deploy 'com.google.code.gson:gson:2.+'
deploy 'joda-time:joda-time:2.3'
}
/**
*
* not using
apply plugin: 'distribution' and distributions closure as it makes a subfolder in zip which I do not want
*
* */
task buildZip(dependsOn:'jar' , type: Zip) {
from('.')
include('teamcity-plugin.xml')
into('server') {
from jar.outputs.files
include('*.jar')
from configurations.deploy
include('*.jar')
}
}