Skip to content
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

Modernize plugin build #204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Modernize plugin build #204

wants to merge 1 commit into from

Conversation

basil
Copy link
Member

@basil basil commented Mar 14, 2024

https://www.jenkins.io/doc/developer/tutorial-improve/

Testing done

mvn clean verify -Dtest=InjectedTest

@basil basil added the internal label Mar 14, 2024
Comment on lines +1 to +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">
<extension>
<groupId>io.jenkins.tools.incrementals</groupId>
<artifactId>git-changelist-maven-extension</artifactId>
<version>1.7</version>
</extension>
</extensions>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +1 to +2
-Pconsume-incrementals
-Pmight-produce-incrementals
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +3 to +4
[platform: 'linux', jdk: 21],
[platform: 'windows', jdk: 17],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest recommendation from the archetype.

<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">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.52</version>
<version>4.79</version>
Copy link
Member Author

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.

</parent>

<artifactId>p4</artifactId>
<version>1.15.2-SNAPSHOT</version>
<version>${revision}${changelist}</version>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -129,7 +164,6 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>structs</artifactId>
<version>324.va_f5d6774f3a_d</version>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version managed in BOM.

@@ -169,7 +203,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>multiple-scms</artifactId>
<version>0.6</version>
<version>0.8</version>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest version.

Comment on lines +256 to +257
<groupId>io.jenkins.plugins</groupId>
<artifactId>json-api</artifactId>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -35,7 +35,7 @@ static public ListBoxModel doFillCredentialItems() {
acl, domain);

if (credentials.isEmpty()) {
list.add("Select credential...", null);
list.add("Select credential...", "");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing a serious SpotBugs warning:

[ERROR] High: Null passed for non-null parameter of hudson.util.ListBoxModel.add(String, String) in org.jenkinsci.plugins.p4.credentials.P4CredentialsImpl.doFillCredentialItems() [org.jenkinsci.plugins.p4.credentials.P4CredentialsImpl] At P4CredentialsImpl.java:[line 38] NP_NONNULL_PARAM_VIOLATION

import com.gargoylesoftware.htmlunit.html.HtmlForm;
import com.gargoylesoftware.htmlunit.html.HtmlInput;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import org.htmlunit.html.HtmlForm;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adapting to upstream package rename.

@basil basil requested a review from a team March 14, 2024 00:33
@skumar7322
Copy link
Contributor

Thanks @basil for enhancing the plugin. We will add these changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants