Skip to content

Commit 508cb08

Browse files
committed
Prepare pom for JCasC
1 parent f5fcfdd commit 508cb08

File tree

1 file changed

+32
-43
lines changed

1 file changed

+32
-43
lines changed

pom.xml

Lines changed: 32 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.jenkins-ci.plugins</groupId>
77
<artifactId>plugin</artifactId>
8-
<version>3.43</version>
8+
<version>4.2</version>
99
<relativePath />
1010
</parent>
1111

@@ -34,11 +34,10 @@
3434
<properties>
3535
<revision>1.17</revision>
3636
<changelist>-SNAPSHOT</changelist>
37-
<jenkins.version>2.150.1</jenkins.version>
37+
<jenkins.version>2.222.4</jenkins.version>
3838
<java.level>8</java.level>
39-
<workflow-step-api.version>2.19</workflow-step-api.version>
40-
<workflow-cps.version>2.67</workflow-cps.version>
41-
<workflow-support.version>3.3</workflow-support.version>
39+
<pipeline-model-definition-version>1.3.8</pipeline-model-definition-version>
40+
<jcasc.version>1.41</jcasc.version>
4241
</properties>
4342

4443
<repositories>
@@ -59,12 +58,10 @@
5958
<dependency>
6059
<groupId>org.jenkins-ci.plugins</groupId>
6160
<artifactId>credentials</artifactId>
62-
<version>2.1.18</version>
6361
</dependency>
6462
<dependency>
6563
<groupId>org.jenkins-ci.plugins</groupId>
6664
<artifactId>credentials-binding</artifactId>
67-
<version>1.18</version>
6865
</dependency>
6966
<dependency>
7067
<groupId>org.jenkins-ci.plugins</groupId>
@@ -74,7 +71,7 @@
7471
<dependency>
7572
<groupId>org.jenkinsci.plugins</groupId>
7673
<artifactId>pipeline-model-extensions</artifactId>
77-
<version>1.3.8</version>
74+
<version>${pipeline-model-definition-version}</version>
7875
<!-- optional because the dependency subtree is quite large -->
7976
<optional>true</optional>
8077
</dependency>
@@ -84,115 +81,107 @@
8481
<artifactId>multiline-secrets-ui</artifactId>
8582
<version>1.0</version>
8683
</dependency>
87-
88-
<!-- for Pipeline-based unit tests -->
8984
<dependency>
9085
<groupId>org.jenkins-ci.plugins</groupId>
91-
<artifactId>scm-api</artifactId>
92-
<version>2.4.1</version>
93-
<scope>test</scope>
86+
<artifactId>structs</artifactId>
9487
</dependency>
88+
89+
<!-- for Pipeline-based unit tests -->
9590
<dependency>
9691
<groupId>org.jenkins-ci.plugins</groupId>
97-
<artifactId>structs</artifactId>
98-
<version>1.18</version>
92+
<artifactId>scm-api</artifactId>
9993
<scope>test</scope>
10094
</dependency>
10195
<dependency>
10296
<groupId>org.jenkins-ci.plugins.workflow</groupId>
10397
<artifactId>workflow-api</artifactId>
104-
<version>2.33</version>
10598
<scope>test</scope>
10699
</dependency>
107100
<dependency>
108101
<groupId>org.jenkins-ci.plugins.workflow</groupId>
109102
<artifactId>workflow-step-api</artifactId>
110-
<version>${workflow-step-api.version}</version>
111103
<scope>test</scope>
112104
</dependency>
113105
<dependency>
114106
<groupId>org.jenkins-ci.plugins.workflow</groupId>
115107
<artifactId>workflow-step-api</artifactId>
116-
<version>${workflow-step-api.version}</version>
117108
<classifier>tests</classifier>
118109
<scope>test</scope>
119110
</dependency>
120111
<dependency>
121112
<groupId>org.jenkins-ci.plugins.workflow</groupId>
122113
<artifactId>workflow-cps</artifactId>
123-
<version>${workflow-cps.version}</version>
124114
<scope>test</scope>
125115
</dependency>
126116
<dependency>
127117
<groupId>org.jenkins-ci.plugins.workflow</groupId>
128118
<artifactId>workflow-cps</artifactId>
129-
<version>${workflow-cps.version}</version>
130119
<classifier>tests</classifier>
131120
<scope>test</scope>
132121
</dependency>
133122
<dependency>
134123
<groupId>org.jenkins-ci.plugins.workflow</groupId>
135124
<artifactId>workflow-job</artifactId>
136-
<version>2.32</version>
137125
<scope>test</scope>
138126
</dependency>
139127
<dependency>
140128
<groupId>org.jenkins-ci.plugins.workflow</groupId>
141129
<artifactId>workflow-durable-task-step</artifactId>
142-
<version>2.30</version>
143130
<scope>test</scope>
144131
</dependency>
145132
<dependency>
146133
<groupId>org.jenkins-ci.plugins.workflow</groupId>
147134
<artifactId>workflow-basic-steps</artifactId>
148-
<version>2.15</version>
149135
<scope>test</scope>
150136
</dependency>
151137
<dependency>
152138
<groupId>org.jenkins-ci.plugins.workflow</groupId>
153139
<artifactId>workflow-support</artifactId>
154-
<version>${workflow-support.version}</version>
155140
<scope>test</scope>
156141
</dependency>
157142
<dependency>
158143
<groupId>org.jenkins-ci.plugins.workflow</groupId>
159144
<artifactId>workflow-support</artifactId>
160-
<version>${workflow-support.version}</version>
161145
<classifier>tests</classifier>
162146
<scope>test</scope>
163147
</dependency>
164148
<dependency>
165149
<groupId>org.jenkinsci.plugins</groupId>
166150
<artifactId>pipeline-model-definition</artifactId>
167-
<version>1.3.8</version>
168-
<scope>test</scope>
169-
</dependency>
170-
<!-- these dependencies are added to satisfy the enforcer rules -->
171-
<dependency>
172-
<groupId>org.apache.commons</groupId>
173-
<artifactId>commons-lang3</artifactId>
174-
<version>3.7</version>
151+
<version>${pipeline-model-definition-version}</version>
175152
<scope>test</scope>
176153
</dependency>
154+
<!-- Dependencies for testing JCasC compatibility-->
177155
<dependency>
178-
<groupId>org.jenkins-ci.plugins</groupId>
179-
<artifactId>mailer</artifactId>
180-
<version>1.20</version>
156+
<groupId>io.jenkins</groupId>
157+
<artifactId>configuration-as-code</artifactId>
158+
<version>${jcasc.version}</version>
181159
<scope>test</scope>
182160
</dependency>
183161
<dependency>
184-
<groupId>org.jenkins-ci.plugins</groupId>
185-
<artifactId>ssh-credentials</artifactId>
186-
<version>1.13</version>
162+
<groupId>io.jenkins.configuration-as-code</groupId>
163+
<artifactId>test-harness</artifactId>
164+
<version>${jcasc.version}</version>
187165
<scope>test</scope>
188166
</dependency>
167+
<!-- these dependencies are added to satisfy the enforcer rules -->
189168
<dependency>
190-
<groupId>org.jenkins-ci.plugins.workflow</groupId>
191-
<artifactId>workflow-scm-step</artifactId>
192-
<version>2.6</version>
169+
<groupId>org.apache.commons</groupId>
170+
<artifactId>commons-lang3</artifactId>
171+
<version>3.9</version>
193172
<scope>test</scope>
194173
</dependency>
195-
196174
</dependencies>
175+
<dependencyManagement>
176+
<dependencies>
177+
<dependency>
178+
<groupId>io.jenkins.tools.bom</groupId>
179+
<artifactId>bom-2.222.x</artifactId>
180+
<version>11</version>
181+
<scope>import</scope>
182+
<type>pom</type>
183+
</dependency>
184+
</dependencies>
185+
</dependencyManagement>
197186

198187
</project>

0 commit comments

Comments
 (0)