Skip to content

Commit

Permalink
fix pom settings
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentleseigneur committed Jun 26, 2024
1 parent 2a06bdf commit 040384b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ jobs:
]
- name: Build and Test
run: ./mvnw clean verify
run: ./mvnw --batch-mode --no-transfer-progress clean verify

- name: Publish to Github Package
run: ./mvnw --batch-mode deploy
run: ./mvnw --batch-mode --no-transfer-progress deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

48 changes: 20 additions & 28 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.bonitasoft.presales</groupId>
Expand Down Expand Up @@ -43,36 +44,15 @@
</developers>

<scm>
<connection>scm:git:https://github.com/Devskiller/jfairy</connection>
<developerConnection>scm:git:[email protected]:Devskiller/jfairy</developerConnection>
<url>https://github.com/Devskiller/jfairy</url>
<url>https://github.com/${github.owner}/${github.repo}</url>
<developerConnection>scm:git:${project.scm.url}.git</developerConnection>
<connection>scm:git:${project.scm.url}.git</connection>
<tag>HEAD</tag>
</scm>

<distributionManagement>
<snapshotRepository>
<id>oss</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>oss</id>
<name>Nexus Release Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/Devskiller/jfairy/issues</url>
</issueManagement>

<ciManagement>
<system>Travis</system>
<url>https://travis-ci.org/Devskiller/jfairy</url>
</ciManagement>

<properties>
<github.owner>bonitasoft-presales</github.owner>
<github.repo>jfairy</github.repo>

<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -303,4 +283,16 @@
</profile>
</profiles>

<distributionManagement>
<snapshotRepository>
<id>github</id>
<name>Github Package</name>
<url>https://maven.pkg.github.com/${github.owner}/${github.repo}</url>
</snapshotRepository>
<repository>
<id>github</id>
<name>Github Package</name>
<url>https://maven.pkg.github.com/${github.owner}/${github.repo}</url>
</repository>
</distributionManagement>
</project>

0 comments on commit 040384b

Please sign in to comment.