|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
1 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
2 | 3 | <modelVersion>4.0.0</modelVersion> |
3 | 4 | <parent> |
4 | 5 | <groupId>org.jenkins-ci.plugins</groupId> |
5 | 6 | <artifactId>plugin</artifactId> |
6 | 7 | <version>4.75</version> |
7 | | - <relativePath/> |
| 8 | + <relativePath /> |
8 | 9 | </parent> |
9 | 10 |
|
10 | 11 | <groupId>org.csanchez.jenkins.plugins</groupId> |
11 | 12 | <artifactId>kubernetes</artifactId> |
12 | 13 | <version>${changelist}</version> |
| 14 | + <packaging>hpi</packaging> |
13 | 15 | <name>Kubernetes plugin</name> |
14 | 16 | <description>Jenkins plugin to run dynamic agents in a Kubernetes cluster</description> |
15 | | - <packaging>hpi</packaging> |
16 | 17 | <url>https://github.com/jenkinsci/${project.artifactId}-plugin</url> |
17 | 18 |
|
18 | | - <scm> |
19 | | - <connection>scm:git:https://github.com/${gitHubRepo}.git</connection> |
20 | | - <developerConnection>scm:git:https://github.com/${gitHubRepo}.git</developerConnection> |
21 | | - <url>https://github.com/${gitHubRepo}</url> |
22 | | - <tag>${scmTag}</tag> |
23 | | - </scm> |
24 | | - |
25 | 19 | <licenses> |
26 | 20 | <license> |
27 | 21 | <name>Apache License 2.0</name> |
|
38 | 32 | </developer> |
39 | 33 | </developers> |
40 | 34 |
|
| 35 | + <scm> |
| 36 | + <connection>scm:git:https://github.com/${gitHubRepo}.git</connection> |
| 37 | + <developerConnection>scm:git:https://github.com/${gitHubRepo}.git</developerConnection> |
| 38 | + <tag>${scmTag}</tag> |
| 39 | + <url>https://github.com/${gitHubRepo}</url> |
| 40 | + </scm> |
| 41 | + |
41 | 42 | <properties> |
42 | 43 | <changelist>999999-SNAPSHOT</changelist> |
43 | 44 | <!-- in minikube |
|
53 | 54 | <gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo> |
54 | 55 | <spotbugs.effort>Max</spotbugs.effort> |
55 | 56 | <spotbugs.threshold>Low</spotbugs.threshold> |
| 57 | + <spotless.check.skip>false</spotless.check.skip> |
56 | 58 | </properties> |
57 | 59 |
|
| 60 | + <dependencyManagement> |
| 61 | + <dependencies> |
| 62 | + <dependency> |
| 63 | + <groupId>io.jenkins.tools.bom</groupId> |
| 64 | + <artifactId>bom-${bom}</artifactId> |
| 65 | + <version>${bom.version}</version> |
| 66 | + <type>pom</type> |
| 67 | + <scope>import</scope> |
| 68 | + </dependency> |
| 69 | + <dependency> |
| 70 | + <groupId>com.squareup.okhttp3</groupId> |
| 71 | + <artifactId>mockwebserver</artifactId> |
| 72 | + <version>4.9.3</version> |
| 73 | + <!-- should be aligned with the version provided by okhttp-api-plugin --> |
| 74 | + </dependency> |
| 75 | + </dependencies> |
| 76 | + </dependencyManagement> |
| 77 | + |
58 | 78 | <dependencies> |
59 | 79 | <dependency> |
60 | | - <groupId>org.jenkins-ci.plugins</groupId> |
61 | | - <artifactId>kubernetes-client-api</artifactId> |
| 80 | + <groupId>io.jenkins.plugins</groupId> |
| 81 | + <artifactId>caffeine-api</artifactId> |
62 | 82 | </dependency> |
63 | 83 | <dependency> |
64 | 84 | <groupId>org.jenkins-ci.plugins</groupId> |
65 | | - <artifactId>jackson2-api</artifactId> |
| 85 | + <artifactId>authentication-tokens</artifactId> |
66 | 86 | </dependency> |
| 87 | + |
67 | 88 | <dependency> |
| 89 | + <!-- Requires Permission --> |
68 | 90 | <groupId>org.jenkins-ci.plugins</groupId> |
69 | | - <artifactId>structs</artifactId> |
| 91 | + <artifactId>cloudbees-folder</artifactId> |
70 | 92 | </dependency> |
71 | 93 | <dependency> |
72 | 94 | <groupId>org.jenkins-ci.plugins</groupId> |
73 | 95 | <artifactId>credentials</artifactId> |
74 | 96 | </dependency> |
75 | 97 | <dependency> |
76 | 98 | <groupId>org.jenkins-ci.plugins</groupId> |
77 | | - <artifactId>plain-credentials</artifactId> |
| 99 | + <artifactId>credentials-binding</artifactId> |
78 | 100 | </dependency> |
| 101 | + |
79 | 102 | <dependency> |
80 | | - <groupId>org.jenkinsci.plugins</groupId> |
81 | | - <artifactId>kubernetes-credentials</artifactId> |
| 103 | + <groupId>org.jenkins-ci.plugins</groupId> |
| 104 | + <artifactId>durable-task</artifactId> |
82 | 105 | </dependency> |
83 | 106 | <dependency> |
84 | 107 | <groupId>org.jenkins-ci.plugins</groupId> |
85 | | - <artifactId>authentication-tokens</artifactId> |
| 108 | + <artifactId>jackson2-api</artifactId> |
86 | 109 | </dependency> |
87 | | - |
88 | | - <dependency> <!-- Requires Permission --> |
| 110 | + <dependency> |
89 | 111 | <groupId>org.jenkins-ci.plugins</groupId> |
90 | | - <artifactId>cloudbees-folder</artifactId> |
| 112 | + <artifactId>kubernetes-client-api</artifactId> |
91 | 113 | </dependency> |
92 | | - |
93 | 114 | <dependency> |
94 | 115 | <groupId>org.jenkins-ci.plugins</groupId> |
95 | | - <artifactId>durable-task</artifactId> |
| 116 | + <artifactId>metrics</artifactId> |
96 | 117 | </dependency> |
97 | 118 | <dependency> |
98 | 119 | <groupId>org.jenkins-ci.plugins</groupId> |
99 | | - <artifactId>variant</artifactId> |
| 120 | + <artifactId>plain-credentials</artifactId> |
100 | 121 | </dependency> |
101 | 122 | <dependency> |
102 | | - <groupId>org.jenkins-ci.plugins.workflow</groupId> |
103 | | - <artifactId>workflow-step-api</artifactId> |
| 123 | + <groupId>org.jenkins-ci.plugins</groupId> |
| 124 | + <artifactId>structs</artifactId> |
| 125 | + </dependency> |
| 126 | + <dependency> |
| 127 | + <groupId>org.jenkins-ci.plugins</groupId> |
| 128 | + <artifactId>variant</artifactId> |
104 | 129 | </dependency> |
105 | 130 | <dependency> |
106 | 131 | <groupId>org.jenkins-ci.plugins.workflow</groupId> |
107 | 132 | <artifactId>workflow-api</artifactId> |
108 | 133 | </dependency> |
109 | | - <dependency> <!-- DeclarativeAgent --> |
110 | | - <groupId>org.jenkinsci.plugins</groupId> |
111 | | - <artifactId>pipeline-model-extensions</artifactId> |
112 | | - <optional>true</optional> |
113 | | - </dependency> |
114 | | - <dependency> <!-- DeclarativeGeneratorTester --> |
115 | | - <groupId>org.jenkinsci.plugins</groupId> |
116 | | - <artifactId>pipeline-model-definition</artifactId> |
117 | | - <classifier>tests</classifier> |
118 | | - <scope>test</scope> |
119 | | - </dependency> |
120 | 134 | <dependency> |
121 | 135 | <groupId>org.jenkins-ci.plugins.workflow</groupId> |
122 | 136 | <artifactId>workflow-cps</artifactId> |
123 | 137 | <optional>true</optional> |
124 | 138 | </dependency> |
125 | 139 | <dependency> |
126 | | - <groupId>org.jenkins-ci.plugins</groupId> |
127 | | - <artifactId>metrics</artifactId> |
| 140 | + <groupId>org.jenkins-ci.plugins.workflow</groupId> |
| 141 | + <artifactId>workflow-durable-task-step</artifactId> |
128 | 142 | </dependency> |
129 | 143 | <dependency> |
130 | | - <groupId>io.jenkins.plugins</groupId> |
131 | | - <artifactId>caffeine-api</artifactId> |
| 144 | + <groupId>org.jenkins-ci.plugins.workflow</groupId> |
| 145 | + <artifactId>workflow-step-api</artifactId> |
132 | 146 | </dependency> |
133 | 147 | <dependency> |
134 | | - <groupId>org.jenkins-ci.plugins</groupId> |
135 | | - <artifactId>credentials-binding</artifactId> |
| 148 | + <groupId>org.jenkinsci.plugins</groupId> |
| 149 | + <artifactId>kubernetes-credentials</artifactId> |
136 | 150 | </dependency> |
137 | 151 | <dependency> |
138 | | - <groupId>org.jenkins-ci.plugins.workflow</groupId> |
139 | | - <artifactId>workflow-durable-task-step</artifactId> |
| 152 | + <!-- DeclarativeAgent --> |
| 153 | + <groupId>org.jenkinsci.plugins</groupId> |
| 154 | + <artifactId>pipeline-model-extensions</artifactId> |
| 155 | + <optional>true</optional> |
140 | 156 | </dependency> |
141 | | - |
142 | | - <!-- for testing --> |
143 | 157 | <dependency> |
144 | | - <groupId>org.jenkins-ci.plugins.workflow</groupId> |
145 | | - <artifactId>workflow-job</artifactId> |
| 158 | + <groupId>io.fabric8</groupId> |
| 159 | + <artifactId>kubernetes-server-mock</artifactId> |
| 160 | + <version>6.8.1</version> |
146 | 161 | <scope>test</scope> |
147 | 162 | </dependency> |
148 | 163 | <dependency> |
149 | | - <groupId>org.jenkins-ci.plugins.workflow</groupId> |
150 | | - <artifactId>workflow-basic-steps</artifactId> |
| 164 | + <groupId>io.jenkins</groupId> |
| 165 | + <artifactId>configuration-as-code</artifactId> |
151 | 166 | <scope>test</scope> |
152 | 167 | </dependency> |
153 | | - <dependency> <!-- SemaphoreStep --> |
154 | | - <groupId>org.jenkins-ci.plugins.workflow</groupId> |
155 | | - <artifactId>workflow-support</artifactId> |
156 | | - <classifier>tests</classifier> |
| 168 | + <dependency> |
| 169 | + <groupId>io.jenkins.configuration-as-code</groupId> |
| 170 | + <artifactId>test-harness</artifactId> |
157 | 171 | <scope>test</scope> |
158 | 172 | </dependency> |
159 | 173 | <dependency> |
160 | | - <groupId>org.jenkinsci.plugins</groupId> |
161 | | - <artifactId>pipeline-model-definition</artifactId> |
| 174 | + <groupId>org.awaitility</groupId> |
| 175 | + <artifactId>awaitility</artifactId> |
| 176 | + <version>4.2.0</version> |
162 | 177 | <scope>test</scope> |
163 | 178 | </dependency> |
164 | | - <dependency> <!-- SnippetizerTest --> |
165 | | - <groupId>org.jenkins-ci.plugins.workflow</groupId> |
166 | | - <artifactId>workflow-cps</artifactId> |
167 | | - <classifier>tests</classifier> |
| 179 | + <dependency> |
| 180 | + <groupId>org.jenkins-ci.plugins</groupId> |
| 181 | + <artifactId>bouncycastle-api</artifactId> |
168 | 182 | <scope>test</scope> |
169 | 183 | </dependency> |
170 | 184 | <dependency> |
171 | | - <groupId>org.mockito</groupId> |
172 | | - <artifactId>mockito-core</artifactId> |
| 185 | + <groupId>org.jenkins-ci.plugins</groupId> |
| 186 | + <artifactId>docker-workflow</artifactId> |
173 | 187 | <scope>test</scope> |
174 | 188 | </dependency> |
175 | 189 | <dependency> |
|
184 | 198 | <scope>test</scope> |
185 | 199 | </dependency> |
186 | 200 | <dependency> |
| 201 | + <!-- Required to test run src/main/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/samples/maven.groovy --> |
187 | 202 | <groupId>org.jenkins-ci.plugins</groupId> |
188 | | - <artifactId>scm-api</artifactId> |
| 203 | + <artifactId>junit</artifactId> |
189 | 204 | <scope>test</scope> |
| 205 | + </dependency> |
| 206 | + <dependency> |
| 207 | + <groupId>org.jenkins-ci.plugins</groupId> |
| 208 | + <artifactId>scm-api</artifactId> |
190 | 209 | <classifier>tests</classifier> |
| 210 | + <scope>test</scope> |
191 | 211 | </dependency> |
192 | 212 | <!-- for ContainerExecDecoratorPipelineTest --> |
193 | 213 | <dependency> |
|
201 | 221 | <scope>test</scope> |
202 | 222 | </dependency> |
203 | 223 | <dependency> |
204 | | - <groupId>org.jenkins-ci.plugins</groupId> |
205 | | - <artifactId>bouncycastle-api</artifactId> |
| 224 | + <groupId>org.jenkins-ci.plugins.workflow</groupId> |
| 225 | + <artifactId>workflow-basic-steps</artifactId> |
206 | 226 | <scope>test</scope> |
207 | 227 | </dependency> |
208 | 228 | <dependency> |
209 | | - <groupId>pl.pragmatists</groupId> |
210 | | - <artifactId>JUnitParams</artifactId> |
211 | | - <version>1.1.1</version> |
| 229 | + <!-- SnippetizerTest --> |
| 230 | + <groupId>org.jenkins-ci.plugins.workflow</groupId> |
| 231 | + <artifactId>workflow-cps</artifactId> |
| 232 | + <classifier>tests</classifier> |
212 | 233 | <scope>test</scope> |
213 | 234 | </dependency> |
| 235 | + |
| 236 | + <!-- for testing --> |
214 | 237 | <dependency> |
215 | | - <groupId>io.jenkins</groupId> |
216 | | - <artifactId>configuration-as-code</artifactId> |
| 238 | + <groupId>org.jenkins-ci.plugins.workflow</groupId> |
| 239 | + <artifactId>workflow-job</artifactId> |
217 | 240 | <scope>test</scope> |
218 | 241 | </dependency> |
219 | 242 | <dependency> |
220 | | - <groupId>io.jenkins.configuration-as-code</groupId> |
221 | | - <artifactId>test-harness</artifactId> |
| 243 | + <!-- SemaphoreStep --> |
| 244 | + <groupId>org.jenkins-ci.plugins.workflow</groupId> |
| 245 | + <artifactId>workflow-support</artifactId> |
| 246 | + <classifier>tests</classifier> |
222 | 247 | <scope>test</scope> |
223 | 248 | </dependency> |
224 | 249 | <dependency> |
225 | | - <groupId>org.jenkins-ci.plugins</groupId> |
226 | | - <artifactId>docker-workflow</artifactId> |
| 250 | + <!-- DeclarativeGeneratorTester --> |
| 251 | + <groupId>org.jenkinsci.plugins</groupId> |
| 252 | + <artifactId>pipeline-model-definition</artifactId> |
| 253 | + <classifier>tests</classifier> |
227 | 254 | <scope>test</scope> |
228 | 255 | </dependency> |
229 | 256 | <dependency> |
230 | | - <!-- Required to test run src/main/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/samples/maven.groovy --> |
231 | | - <groupId>org.jenkins-ci.plugins</groupId> |
232 | | - <artifactId>junit</artifactId> |
| 257 | + <groupId>org.jenkinsci.plugins</groupId> |
| 258 | + <artifactId>pipeline-model-definition</artifactId> |
233 | 259 | <scope>test</scope> |
234 | 260 | </dependency> |
235 | 261 | <dependency> |
236 | | - <groupId>io.fabric8</groupId> |
237 | | - <artifactId>kubernetes-server-mock</artifactId> |
238 | | - <version>6.8.1</version> |
| 262 | + <groupId>org.mockito</groupId> |
| 263 | + <artifactId>mockito-core</artifactId> |
239 | 264 | <scope>test</scope> |
240 | 265 | </dependency> |
241 | 266 | <dependency> |
242 | | - <groupId>org.awaitility</groupId> |
243 | | - <artifactId>awaitility</artifactId> |
244 | | - <version>4.2.0</version> |
| 267 | + <groupId>pl.pragmatists</groupId> |
| 268 | + <artifactId>JUnitParams</artifactId> |
| 269 | + <version>1.1.1</version> |
245 | 270 | <scope>test</scope> |
246 | 271 | </dependency> |
247 | 272 | </dependencies> |
248 | 273 |
|
| 274 | + <!-- get every artifact through repo.jenkins-ci.org, which proxies all the artifacts that we need --> |
| 275 | + <repositories> |
| 276 | + <repository> |
| 277 | + <id>repo.jenkins-ci.org</id> |
| 278 | + <url>https://repo.jenkins-ci.org/public/</url> |
| 279 | + </repository> |
| 280 | + </repositories> |
249 | 281 |
|
250 | | - <dependencyManagement> |
251 | | - <dependencies> |
252 | | - <dependency> |
253 | | - <groupId>io.jenkins.tools.bom</groupId> |
254 | | - <artifactId>bom-${bom}</artifactId> |
255 | | - <version>${bom.version}</version> |
256 | | - <scope>import</scope> |
257 | | - <type>pom</type> |
258 | | - </dependency> |
259 | | - <dependency> |
260 | | - <groupId>com.squareup.okhttp3</groupId> |
261 | | - <artifactId>mockwebserver</artifactId> |
262 | | - <version>4.9.3</version><!-- should be aligned with the version provided by okhttp-api-plugin --> |
263 | | - </dependency> |
264 | | - </dependencies> |
265 | | - </dependencyManagement> |
| 282 | + <pluginRepositories> |
| 283 | + <pluginRepository> |
| 284 | + <id>repo.jenkins-ci.org</id> |
| 285 | + <url>https://repo.jenkins-ci.org/public/</url> |
| 286 | + </pluginRepository> |
| 287 | + </pluginRepositories> |
266 | 288 |
|
267 | 289 | <build> |
268 | 290 | <plugins> |
|
298 | 320 | </plugins> |
299 | 321 | </build> |
300 | 322 |
|
301 | | - <!-- get every artifact through repo.jenkins-ci.org, which proxies all the artifacts that we need --> |
302 | | - <repositories> |
303 | | - <repository> |
304 | | - <id>repo.jenkins-ci.org</id> |
305 | | - <url>https://repo.jenkins-ci.org/public/</url> |
306 | | - </repository> |
307 | | - </repositories> |
308 | | - |
309 | | - <pluginRepositories> |
310 | | - <pluginRepository> |
311 | | - <id>repo.jenkins-ci.org</id> |
312 | | - <url>https://repo.jenkins-ci.org/public/</url> |
313 | | - </pluginRepository> |
314 | | - </pluginRepositories> |
315 | | - |
316 | 323 | <profiles> |
317 | 324 | <profile> |
318 | 325 | <id>docker</id> |
|
0 commit comments