-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
70 lines (58 loc) · 1.66 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id 'io.spring.dependency-management' version '1.1.7'
id 'maven-publish'
id 'distribution'
}
group 'com.octopus.teamcity'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
vendor = JvmVendorSpec.ADOPTOPENJDK
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'
// Provided configuration allows compile-time only dependencies to NOT
// be included in the final distributions.
configurations {
provided
}
sourceSets {
all {
compileClasspath += configurations.provided
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set("sources")
from sourceSets.main.allSource
}
version = rootProject.version
sourceCompatibility = 17
targetCompatibility = 17
repositories {
mavenCentral()
maven { url "https://download.jetbrains.com/teamcity-repository" }
maven { url "https://packages.jetbrains.team/maven/p/teamcity-rest-client/teamcity-rest-client" }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
}
apply plugin: "distribution"
distZip {
archiveFileName = "Octopus.TeamCity.OpenTelemetry." + rootProject.version + ".zip"
}
distributions {
all {
contents {
from file("teamcity-plugin.xml"), {
filter ReplaceTokens, tokens: [version: rootProject.version]
}
into('server/') {
from tasks.findByPath(":server:installDist")
}
into '/'
}
}
}