Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,32 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B verify --file pom.xml
run: mvn -B -V verify --file pom.xml

snapshot:
if: |
github.repository == 'eclipse/packager' &&
github.event_name == 'push' && github.ref == 'refs/heads/master' &&
!contains(github.event.head_commit.message, '[maven-release-plugin] prepare release')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
# https://github.com/marketplace/actions/maven-setings-action
- name: Maven Settings
uses: s4u/[email protected]
with:
sonatypeSnapshots: true
githubServer: false
servers: |
[{
"id": "central",
"username": "${{ secrets.SONATYPE_USERNAME }}",
"password": "${{ secrets.SONATYPE_PASSWORD }}"
}]
- name: Deploy Snapshot
run: mvn -B -V deploy
23 changes: 10 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,6 @@
<system>GitHub</system>
</issueManagement>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<modules>
<module>core</module>
<module>deb</module>
Expand Down Expand Up @@ -107,7 +96,6 @@

<dependencyManagement>
<dependencies>

<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
Expand Down Expand Up @@ -215,6 +203,7 @@

</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.assertj</groupId>
Expand Down Expand Up @@ -351,7 +340,15 @@
</pluginManagement>

<plugins>

<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.7.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
Expand Down