Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pcalouche committed Aug 25, 2024
1 parent f468b5c commit 5c32003
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Run Maven
run: mvn -B -s ./.mvn/settings.xml clean verify
run: make mvn-verify-ci
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ github.token }}
44 changes: 39 additions & 5 deletions .mvn/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,45 @@
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
<server>
<id>github-pcalouche-spring-forge-skeleton</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>

<profiles>
<profile>
<id>additional-spring-repositories</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
</repository>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
</pluginRepository>
<pluginRepository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

</settings>
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ mvn-verify: format
mvn-verify-skip-tests: format
mvn clean verify -DskipTests

.PHONY: mvn-verify-ci
mvn-verify-ci:
mvn -B -s ./.mvn/settings.xml verify

# Run tests and install locally
.PHONY: mvn-install
mvn-install: format
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

<distributionManagement>
<repository>
<id>github-pcalouche-spring-forge-skeleton</id>
<name>Spring Forge Skeleton</name>
<url>https://maven.pkg.github.com/pcalouche/spring-forge-skeleton</url>
<id>github-pcalouche-spring-forge-service-template</id>
<name>Spring Forge Service Template</name>
<url>https://maven.pkg.github.com/pcalouche/spring-forge-service-template</url>
</repository>
</distributionManagement>

Expand Down

0 comments on commit 5c32003

Please sign in to comment.