-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
51 lines (41 loc) · 1.51 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/5.0/userguide/tutorial_java_projects.html
*/
apply plugin: 'java'
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
group= "com.example.secrets"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
static String versionOf(String dependencySpec) {
return dependencySpec.split(':').last()
}
ext {
deps = [
gocdPluginApi: 'cd.go.plugin:go-plugin-api:25.1.0',
]
versions = project.ext.deps.collectEntries { lib, libGav -> [lib, versionOf(libGav)] }
}
dependencies {
implementation group: 'cd.go.plugin.base', name: 'gocd-plugin-base', version: '1.0.0'
compileOnly project.deps.gocdPluginApi
testImplementation platform('org.junit:junit-bom:5.11.4')
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine'
testRuntimeOnly group: 'org.junit.platform', name: 'junit-platform-launcher'
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.27.3'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.15.2'
testImplementation project.deps.gocdPluginApi
}
test {
useJUnitPlatform()
}