Skip to content

Commit

Permalink
chore: enable maven repo
Browse files Browse the repository at this point in the history
  • Loading branch information
vpa1977 committed Oct 18, 2024
1 parent ca08d2d commit 3a004f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
java-version: '8'
- name: Publish to Github
run: |
mvn deploy -Pgithub "-Dgpr.repo=${{ vars.GHP_REPO }}"
./gradlew publish -i "-Pgpr.repo=${{ vars.GHP_REPO }}"
mvn deploy -Pgithub "-DaltDeploymentRepository=releaseRepository::default::${{ vars.GHP_REPO }}"
shell: bash
env:
GHP_USERNAME: ${{ secrets.GHP_USERNAME }}
Expand Down
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<maven.compiler.source>8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.outputTimestamp>2023-01-01T00:00:00Z</project.build.outputTimestamp>
<gpr.repo>https://maven.pkg.github.com/rockcrafters/java-rockcraft-plugins</gpr.repo>
</properties>


Expand Down Expand Up @@ -57,6 +58,16 @@
</plugins>
</build>
<profiles>
<profile>
<id>github</id>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>${gpr.repo}</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>release</id>
<build>
Expand Down

0 comments on commit 3a004f4

Please sign in to comment.