Repository navigation
Expand file tree
/
Copy pathpom.xml
More file actions
302 lines (283 loc) · 11.2 KB
/
Copy pathpom.xml
File metadata and controls
302 lines (283 loc) · 11.2 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>6.2116.v7501b_67dc517</version>
<relativePath></relativePath>
</parent>
<groupId>io.jenkins.plugins</groupId>
<artifactId>openmfa</artifactId>
<version>${changelist}</version>
<packaging>hpi</packaging>
<name>OpenMFA</name>
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/license/mit/</url>
</license>
</licenses>
<scm child.scm.connection.inherit.append.path="false" child.scm.developerConnection.inherit.append.path="false" child.scm.url.inherit.append.path="false">
<connection>scm:git:https://github.com/${gitHubRepo}</connection>
<developerConnection>scm:git:https://github.com/${gitHubRepo}</developerConnection>
<tag>${scmTag}</tag>
<url>https://github.com/${gitHubRepo}</url>
</scm>
<properties>
<changelist>999999-SNAPSHOT</changelist>
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
<jenkins.baseline>2.528</jenkins.baseline>
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<spotless.check.skip>false</spotless.check.skip>
<ban-junit4-imports.skip>false</ban-junit4-imports.skip>
<!--
| hpi.strictBundledArtifacts ensures that only explicitly
| declared dependencies are bundled with the plugin HPI file.
| Setting this to 'true' can help prevent unexpected or
| unwanted libraries from being packaged, resulting in leaner,
| safer plugins.
-->
<hpi.bundledArtifacts>cbor,core,datautilities,httpclient5,httpcore5,httpcore5-h2,jai-imageio-core,javase,jcommander,numbers,webauthn-server-core,yubico-util</hpi.bundledArtifacts>
<hpi.strictBundledArtifacts>true</hpi.strictBundledArtifacts>
<lombok.version>1.18.42</lombok.version>
<webauthn.version>2.7.0</webauthn.version>
<zxing.version>3.5.3</zxing.version>
<!--
| help prevent accidental usage of the deprecated commons-lang-2 library
| that is included in core.
-->
<ban-commons-lang-2.skip>false</ban-commons-lang-2.skip>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-${jenkins.baseline}.x</artifactId>
<version>6055.v35edb_dc8d0f9</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- Google ZXing for QR Code generation -->
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>${zxing.version}</version>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>${zxing.version}</version>
</dependency>
<!--
| Jackson is supplied by the jackson2-api plugin rather than bundled:
| it already ships every Jackson artifact java-webauthn-server needs
| (databind, core, annotations, dataformat-cbor, datatype-jdk8,
| datatype-jsr310) at a compatible 2.22.x, so the Yubico dependencies
| below exclude their own copies. Declared first so its versions win
| the dependency mediation.
-->
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>jackson2-api</artifactId>
</dependency>
<!-- Yubico java-webauthn-server for WebAuthn ceremonies -->
<dependency>
<groupId>com.yubico</groupId>
<artifactId>webauthn-server-core</artifactId>
<version>${webauthn.version}</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-cbor</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jdk8</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</exclusion>
<!--
| Jenkins core 2.568.3 declares Guava directly, at exactly the
| 33.6.0-jre this library resolves to, so core's copy serves it and
| bundling a second one would only shadow it (the same reasoning
| that keeps SLF4J out). Excluding Guava takes its build-time
| annotation jars with it, which also settles the
| RequireUpperBoundDeps clash between Guava's error_prone 2.47.0
| and the 2.18.0 the Jenkins parent manages.
-->
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
<!-- Jenkins core owns the SLF4J API; never bundle a second copy -->
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Ionicons API (icons in UI) -->
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>ionicons-api</artifactId>
</dependency>
<!-- Lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<!-- JUnit 5 Platform -->
<!-- Versions are managed by the Jenkins BOM. -->
<!-- These are needed for the JUnit 5 platform -->
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-commons</artifactId>
<scope>test</scope>
</dependency>
<!-- Provides ConfigurationParamaters and other engine interfaces/classes-->
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>
<!-- Spring Test for MockHttpServletRequest/Session -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>6.2.3</version>
<scope>test</scope>
</dependency>
<!-- Configuration as Code, to verify JCasC binding of global config -->
<dependency>
<groupId>io.jenkins</groupId>
<artifactId>configuration-as-code</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>repo.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/public/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration combine.self="override">
<java>
<eclipse>
<file>${project.basedir}/fmt.xml</file>
<!-- Optional: Enable the Sort Members feature globally. (default: false) -->
<sortMembersEnabled>true</sortMembersEnabled>
<!-- Optional: Specify the sort order of the member categories. (default:
T,SF,SI,SM,F,I,C,M)
SF,SI,SM,F,I,C,M,T =
Static Fields,
Static Initializers,
Static Methods,
Fields,
Initializers,
Constructors,
Methods,
(Nested) Types -->
<sortMembersOrder>SF,SI,SM,F,I,C,M,T</sortMembersOrder>
<!-- Optional: Enable the reordering of fields, enum constants, and initializers.
(default: true) -->
<sortMembersDoNotSortFields>false</sortMembersDoNotSortFields>
<!-- Optional: Enable reordering of members of the same category by the visibility
within the category. (default: false) -->
<sortMembersVisibilityOrderEnabled>true</sortMembersVisibilityOrderEnabled>
<!-- Optional: Specify the ordering of members of the same category by the visibility
within the category. (default: B,V,R,D)
B,R,D,V = Public, Protected, Package, Private -->
<sortMembersVisibilityOrder>B,R,D,V</sortMembersVisibilityOrder>
</eclipse>
<importOrder></importOrder>
<removeUnusedImports></removeUnusedImports>
<trimTrailingWhitespace></trimTrailingWhitespace>
<endWithNewline></endWithNewline>
<!-- yell if any import ends with '*' -->
<forbidWildcardImports></forbidWildcardImports>
<!-- yell if any module imports are found (Java 25+) -->
<forbidModuleImports></forbidModuleImports>
<toggleOffOn></toggleOffOn>
</java>
<pom>
<includes>
<include>pom.xml</include>
</includes>
<sortPom>
<encoding>UTF-8</encoding>
<lineSeparator>${line.separator}</lineSeparator>
<expandEmptyElements>true</expandEmptyElements>
<spaceBeforeCloseEmptyElement>false</spaceBeforeCloseEmptyElement>
<keepBlankLines>true</keepBlankLines>
<endWithNewline>true</endWithNewline>
<nrOfIndentSpace>2</nrOfIndentSpace>
<indentBlankLines>false</indentBlankLines>
<indentSchemaLocation>false</indentSchemaLocation>
<indentAttribute></indentAttribute>
<predefinedSortOrder>recommended_2008_06</predefinedSortOrder>
<sortOrderFile></sortOrderFile>
<sortDependencies></sortDependencies>
<sortDependencyManagement></sortDependencyManagement>
<sortDependencyExclusions></sortDependencyExclusions>
<sortPlugins></sortPlugins>
<sortProperties>false</sortProperties>
<sortModules>false</sortModules>
<sortExecutions>false</sortExecutions>
</sortPom>
</pom>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>cd</id>
<activation>
<property>
<name>env.BUILD_NUMBER</name>
</property>
</activation>
<properties>
<changelist>999999-SNAPSHOT</changelist>
</properties>
</profile>
</profiles>
</project>