forked from neo4j/neo4j-kafka-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMaven.kt
More file actions
47 lines (40 loc) · 1.11 KB
/
Maven.kt
File metadata and controls
47 lines (40 loc) · 1.11 KB
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
package builds
import jetbrains.buildServer.configs.kotlin.BuildType
import jetbrains.buildServer.configs.kotlin.buildFeatures.buildCache
import jetbrains.buildServer.configs.kotlin.toId
class Maven(
id: String,
name: String,
goals: String,
javaVersion: JavaVersion,
neo4jVersion: Neo4jVersion,
args: String? = null
) :
BuildType({
this.id(id.toId())
this.name = name
params {
text("env.JAVA_VERSION", javaVersion.version)
text("env.NEO4J_TEST_IMAGE", neo4jVersion.dockerImage)
}
steps {
if (neo4jVersion != Neo4jVersion.V_NONE) {
pullImage(neo4jVersion)
}
commonMaven(javaVersion) {
this.goals = goals
this.runnerArgs =
"$MAVEN_DEFAULT_ARGS -Djava.version=${javaVersion.version} ${args ?: ""}"
}
}
features {
buildCache {
this.name = "neo4j-kafka-connector"
publish = true
use = true
publishOnlyChanged = true
rules = ".m2/repository"
}
}
requirements { runOnLinux(LinuxSize.SMALL) }
})