-
Notifications
You must be signed in to change notification settings - Fork 3
feat(build): maven refactor for maven central #174
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
be40d47
Remove redundant deployment configurations
pflynn-virtru 1563596
Remove redundant Maven plugins and cleanup build configuration
pflynn-virtru 5e5dac8
Remove redundant Maven plugin and optimize GitHub workflow.
pflynn-virtru fc88bdf
Add build-helper-maven-plugin to include generated sources
pflynn-virtru dfe5f6a
Add maven central setup and update dependencies
pflynn-virtru 66c2a6f
Update POM files and add Clear BSD License
pflynn-virtru 05f910d
Add source, Javadoc, and checksum generation plugins
pflynn-virtru 918ecff
Update release workflow for tag-based Maven Central deployment
pflynn-virtru 41388f7
Merge branch 'main' into feature/maven-central
pflynn-virtru File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
The Clear BSD License | ||
|
||
Copyright (c) 2021-2022 Virtru Corporation | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) | ||
provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
* Neither the name of Virtru Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without | ||
specific prior written permission. | ||
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND | ||
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A | ||
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR | ||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,9 @@ | |
<groupId>io.opentdf.platform</groupId> | ||
<artifactId>sdk-pom</artifactId> | ||
<version>0.7.0-SNAPSHOT</version> | ||
<name>sdk-pom</name> | ||
<name>io.opentdf.platform:sdk-pom</name> | ||
<description>OpenTDF Java SDK</description> | ||
<url>https://github.com/opentdf/java-sdk</url> | ||
<packaging>pom</packaging> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
|
@@ -19,6 +21,18 @@ | |
<protobuf.version>3.25.3</protobuf.version> | ||
<sslcontext.version>8.3.5</sslcontext.version> | ||
</properties> | ||
<licenses> | ||
<license> | ||
<name>BSD 3-Clause Clear License</name> | ||
<url>https://spdx.org/licenses/BSD-3-Clause-Clear.html</url> | ||
</license> | ||
</licenses> | ||
<developers> | ||
<developer> | ||
<organization>Virtru</organization> | ||
<organizationUrl>https://www.virtru.com</organizationUrl> | ||
</developer> | ||
</developers> | ||
<scm> | ||
<connection>scm:git:https://github.com/opentdf/java-sdk.git</connection> | ||
<developerConnection>scm:git:[email protected]:opentdf/java-sdk.git</developerConnection> | ||
|
@@ -57,18 +71,6 @@ | |
<version>1.18.30</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-core</artifactId> | ||
<version>5.2.0</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-junit-jupiter</artifactId> | ||
<version>5.2.0</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.maven.plugin-tools</groupId> | ||
<artifactId>maven-plugin-annotations</artifactId> | ||
|
@@ -129,10 +131,6 @@ | |
</plugin> | ||
<!-- default lifecycle, jar packaging: see | ||
https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> | ||
<plugin> | ||
<artifactId>maven-resources-plugin</artifactId> | ||
<version>3.0.2</version> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.0</version> | ||
|
@@ -149,18 +147,10 @@ | |
<artifactId>maven-install-plugin</artifactId> | ||
<version>2.5.2</version> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<version>2.8.2</version> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>3.2.3</version> | ||
</plugin> | ||
<plugin> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>1.7.0</version> | ||
</plugin> | ||
<!-- site lifecycle, see | ||
https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> | ||
<plugin> | ||
|
@@ -208,23 +198,6 @@ | |
</gpgArguments> | ||
</configuration> | ||
</plugin> | ||
<!-- Plugin for Deploying --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
</plugin> | ||
<!-- Plugin for Nexus Staging --> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>1.7.0</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>ossrh</serverId> | ||
<nexusUrl>https://oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-enforcer-plugin</artifactId> | ||
|
@@ -264,44 +237,72 @@ | |
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- Exclude from lifecycle, phase none --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<version>3.1.1</version> | ||
<executions> | ||
<execution> | ||
<id>default-deploy</id> | ||
<phase>none</phase> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<profiles> | ||
<profile> | ||
<id>ghcr</id> | ||
<id>develop</id> | ||
<modules> | ||
<module>sdk</module> | ||
<module>cmdline</module> | ||
</modules> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
</profile> | ||
<profile> | ||
<id>stage</id> | ||
<modules> | ||
<module>sdk</module> | ||
</modules> | ||
<activation> | ||
<activeByDefault>false</activeByDefault> | ||
</activation> | ||
<distributionManagement> | ||
<repository> | ||
<id>github</id> | ||
<name>ghcr</name> | ||
<id>github-pkg</id> | ||
<name>GitHub opentdf Apache Maven Packages</name> | ||
<url>https://maven.pkg.github.com/opentdf/java-sdk</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>github</id> | ||
<name>ghcr</name> | ||
<url>https://maven.pkg.github.com/opentdf/java-sdk</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
</profile> | ||
<profile> | ||
<id>ossrh</id> | ||
<id>release</id> | ||
<modules> | ||
<module>sdk</module> | ||
</modules> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
<activeByDefault>false</activeByDefault> | ||
</activation> | ||
<distributionManagement> | ||
<repository> | ||
<id>ossrh</id> | ||
<name>sonatype</name> | ||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<name>sonatype</name> | ||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
<build> | ||
<plugins> | ||
<!-- Publish to Maven Central Deploy --> | ||
<plugin> | ||
<groupId>org.sonatype.central</groupId> | ||
<artifactId>central-publishing-maven-plugin</artifactId> | ||
<version>0.6.0</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<autoPublish>true</autoPublish> | ||
<waitUntil>published</waitUntil> | ||
<!-- defined in settings.xml --> | ||
<publishingServerId>central</publishingServerId> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.