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

Use plugin parent POM #98

Merged
merged 3 commits into from
Dec 8, 2022
Merged

Use plugin parent POM #98

merged 3 commits into from
Dec 8, 2022

Conversation

basil
Copy link
Member

@basil basil commented Oct 27, 2022

Updates the parent POM to the latest version as well as adding a CODEOWNERS file and updating the .gitignore file to match the latest archetype. See self-review for details.

CC @dwnusbaum


<name>Groovy Sandbox</name>
<description>Executes untrusted Groovy script safely</description>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Copy link
Member Author

Choose a reason for hiding this comment

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

Part of the parent POM as of jenkinsci/pom#257.

Comment on lines -54 to -59
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<releaseProfiles>release</releaseProfiles>
</configuration>
</plugin>
Copy link
Member Author

Choose a reason for hiding this comment

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

The parent POM uses a profile named jenkins-release as of jenkinsci/pom#296.

@@ -94,18 +89,12 @@

<profiles>
<profile>
<id>release</id>
Copy link
Member Author

Choose a reason for hiding this comment

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

The parent POM uses a profile named jenkins-release as of jenkinsci/pom#296.

Comment on lines -103 to -108
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
Copy link
Member Author

Choose a reason for hiding this comment

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

The parent POM's jenkins-release profile includes this logic as of jenkinsci/pom#296. However, the logic to attach the test sources is still necessary. I tested this by running mvn clean verify -Pjenkins-release and verified that the sources and test sources still got generated.

Comment on lines -117 to -127
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
Copy link
Member Author

Choose a reason for hiding this comment

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

The parent POM's jenkins-release profile includes this logic as of jenkinsci/pom#296. I tested this by running mvn clean verify -Pjenkins-release and verified that the Javadoc still got generated.

@basil basil changed the title Update parent POM Use plugin parent POM Nov 1, 2022
@basil
Copy link
Member Author

basil commented Nov 1, 2022

Per dwnusbaum/groovy-cps#1 (comment) we actually want to use the plugin parent POM here.

@dwnusbaum dwnusbaum merged commit 598b7bb into jenkinsci:master Dec 8, 2022
@basil basil deleted the refresh branch December 8, 2022 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants