-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forward compatibility with jenkinsci/jenkins#8503 #15
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,7 @@ | |||
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the latest archetype.
@@ -0,0 +1,2 @@ | |||
-Pconsume-incrementals |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the latest archetype.
@@ -0,0 +1,4 @@ | |||
buildPlugin(useContainerAgent: true, configurations: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the latest archetype.
@@ -5,21 +5,21 @@ | |||
<parent> | |||
<groupId>org.jenkins-ci.plugins</groupId> | |||
<artifactId>plugin</artifactId> | |||
<version>2.11</version> | |||
<version>4.73</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest version at the time of this writing.
<relativePath /> | ||
</parent> | ||
|
||
<name>VectorCAST Coverage</name> | ||
<description>Display VectorCAST coverage in Jenkins</description> | ||
<artifactId>vectorcast-coverage</artifactId> | ||
<version>0.22-SNAPSHOT</version> | ||
<version>${revision}${changelist}</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the latest archetype.
<dependency> | ||
<groupId>joda-time</groupId> | ||
<artifactId>joda-time</artifactId> | ||
<version>2.12.5</version> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A dependency consumed by this plugin but not previously declared.
pom.xml
Outdated
@@ -70,77 +90,21 @@ | |||
<dependency> | |||
<groupId>org.jenkins-ci.plugins</groupId> | |||
<artifactId>dashboard-view</artifactId> | |||
<version>2.16</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version now managed in the plugin BOM.
pom.xml
Outdated
<optional>true</optional> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jenkins-ci.main</groupId> | ||
<artifactId>maven-plugin</artifactId> | ||
<version>2.8</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version now managed in the plugin BOM.
pom.xml
Outdated
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>3.0.0-M1</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.3.2</version> | ||
<configuration> | ||
<source>1.7</source> | ||
<target>1.7</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>build-helper-maven-plugin</artifactId> | ||
<executions> | ||
|
||
<!-- Attention Eclipse users: if you see an error here, you have to install the M2E buildhelper plugin.--> | ||
<execution> | ||
<id>add-localizer-source-folder</id> | ||
<phase>generate-sources</phase> | ||
<goals> | ||
<goal>add-source</goal> | ||
</goals> | ||
<configuration> | ||
<sources> | ||
<source>${project.build.directory}/generated-sources/localizer</source> | ||
</sources> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>findbugs-maven-plugin</artifactId> | ||
<version>3.0.4</version> | ||
<configuration> | ||
<xmlOutput>true</xmlOutput> | ||
<failOnError>${findbugs.failOnError}</failOnError> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>run-findbugs</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>check</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
<pluginManagement> | ||
<plugins> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary; all present in the plugin parent POM.
@@ -183,7 +183,7 @@ public void testGetResultSummary() throws Exception { | |||
*/ | |||
static class CopyResourceToWorkspaceBuilder extends Builder { | |||
|
|||
private final InputStream content; | |||
private transient final InputStream content; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to fix test failures on Java 11/17.
@basil: it seems we've had some upstream changes since you opened-up this PR; could you please fix the merge conflicts, then we can take a look? Thanks for your contribution! |
At the time this PR was submitted, there were no conflicts. I have resolved the conflicts. |
Without dropping support for existing cores (where this library will simply be ignored in favor of core's copy), add forward compatibility for jenkinsci/jenkins#8503 by bundling XML Pull Parser 3rd Edition within this plugin's HPI file rather than relying on core's copy, thereby enabling us to remove this library from core.
Testing done
See jenkinsci/testng-plugin-plugin#246.