Skip to content

Commit

Permalink
fix: remove Maven prerequisites and unused release profile
Browse files Browse the repository at this point in the history
- Replace prerequisites with maven-enforcer-plugin
- Remove unused release profile activation
- Clean up Maven build warnings
  • Loading branch information
oblonski committed Feb 19, 2025
1 parent a253adf commit b1e66d1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
- name: Publish to GitHub Packages
if: startsWith(github.ref, 'refs/tags/')
run: mvn --batch-mode deploy -B --no-transfer-progress -DskipTests -P release
run: mvn --batch-mode deploy -B --no-transfer-progress -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

24 changes: 20 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@
</developer>
</developers>

<prerequisites>
<maven>3.3.0</maven>
</prerequisites>

<scm>
<connection>scm:git:git@github.com:graphhopper/jsprit.git</connection>
<developerConnection>scm:git:/~https://github.com/graphhopper/jsprit.git</developerConnection>
Expand Down Expand Up @@ -101,6 +97,26 @@


<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[3.6.0,)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down

0 comments on commit b1e66d1

Please sign in to comment.