Skip to content

Commit 1460bd6

Browse files
committed
Compile against client APIs only
1 parent a5e4d55 commit 1460bd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ java {
5555
ext {
5656
deps = [
5757
gocdPluginApi: 'cd.go.plugin:go-plugin-api:23.1.0',
58+
kubernetesClientApi: 'io.fabric8:kubernetes-client-api:6.5.1',
5859
]
5960

6061
versions = project.ext.deps.collectEntries { lib, libGav -> [lib, libGav.split(':').last()] }
@@ -63,7 +64,8 @@ ext {
6364
dependencies {
6465
compileOnly project.deps.gocdPluginApi
6566
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
66-
implementation group: 'io.fabric8', name: 'kubernetes-client', version: '6.5.1'
67+
implementation project.deps.kubernetesClientApi
68+
runtimeOnly group: 'io.fabric8', name: 'kubernetes-client', version: project.versions.kubernetesClientApi
6769
implementation group: 'com.github.spullara.mustache.java', name: 'compiler', version: '0.9.10'
6870
implementation group: 'org.freemarker', name: 'freemarker', version: '2.3.32'
6971

0 commit comments

Comments
 (0)