Skip to content

Commit a70439e

Browse files
authored
Merge pull request #290 from jenkinsci/responsive-priority
Add responsive priority as optional column parameter
2 parents 7fa75f0 + 62f6e43 commit a70439e

File tree

13 files changed

+510
-102
lines changed

13 files changed

+510
-102
lines changed

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<extension>
33
<groupId>io.jenkins.tools.incrementals</groupId>
44
<artifactId>git-changelist-maven-extension</artifactId>
5-
<version>1.3</version>
5+
<version>1.2</version>
66
</extension>
77
</extensions>

Jenkinsfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
def configurations = [
2-
[ platform: "linux", jdk: "11" ]
2+
[ platform: "linux", jdk: "11" ],
3+
[ platform: "windows", jdk: "11" ]
34
]
45

5-
buildPlugin(failFast: false, configurations: configurations)
6+
buildPlugin(failFast: false, configurations: configurations,
7+
checkstyle: [qualityGates: [[threshold: 1, type: 'NEW', unstable: true]]],
8+
pmd: [qualityGates: [[threshold: 1, type: 'NEW', unstable: true]]] )

pom.xml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<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">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34

45
<parent>
@@ -245,6 +246,27 @@
245246
</execution>
246247
</executions>
247248
</plugin>
249+
<plugin>
250+
<groupId>org.revapi</groupId>
251+
<artifactId>revapi-maven-plugin</artifactId>
252+
<configuration>
253+
<skip>true</skip>
254+
<analysisConfiguration>
255+
<revapi.differences>
256+
<justification>Not relevant changes that are safe to ignore</justification>
257+
<criticality>allowed</criticality>
258+
<differences combine.children="append">
259+
<item>
260+
<regex>true</regex>
261+
<code>java.annotation.*</code>
262+
<annotationType>edu.umd.cs.findbugs.annotations.*</annotationType>
263+
<justification>Annotation should be safe to change</justification>
264+
</item>
265+
</differences>
266+
</revapi.differences>
267+
</analysisConfiguration>
268+
</configuration>
269+
</plugin>
248270
</plugins>
249271
</build>
250272

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package io.jenkins.plugins.datatables;
2+
3+
/**
4+
* A table cell that provides a {@code display} and {@code sort} property so that a JQuery data table can use different
5+
* properties to sort and display a column. In order to use such a cell the {@link TableColumn} has to be configured using the
6+
*
7+
* @param <T>
8+
* the type of the sort column
9+
*/
10+
public class DetailedCell<T> {
11+
private final String display;
12+
private final T sort;
13+
14+
/**
15+
* Creates a new {@link DetailedCell}.
16+
*
17+
* @param display
18+
* the value that should be used to display the cell
19+
* @param sort
20+
* the value that should be used to sort the cell
21+
*
22+
* @see <a href="https://datatables.net/reference/option/columns.type">DataTables Column Types</a>
23+
*/
24+
public DetailedCell(final String display, final T sort) {
25+
this.display = display;
26+
this.sort = sort;
27+
}
28+
29+
public String getDisplay() {
30+
return display;
31+
}
32+
33+
public T getSort() {
34+
return sort;
35+
}
36+
}

0 commit comments

Comments
 (0)