Skip to content

Commit

Permalink
workflows: Add back a settings.xml file to use OSSRH Snapshots
Browse files Browse the repository at this point in the history
This was working locally because I have it in my config, but we need it
when running in a  GitHub action.
  • Loading branch information
bertrand-lorentz committed Sep 9, 2024
1 parent db59151 commit 2a69efd
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
distribution: 'adopt'

- name: Build and analyze SDK
run: mvn clean install -Panalyze --no-transfer-progress
run: mvn clean install -Panalyze --no-transfer-progress -s .github/workflows/settings.xml
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
distribution: 'adopt'

- name: Run benchmark
run: mvn clean install -Pbenchmark --no-transfer-progress
run: mvn clean install -Pbenchmark --no-transfer-progress -s .github/workflows/settings.xml

# Download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>repositories</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>ossrh</id>
<name>OSSRH Snapshots</name>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
</settings>

0 comments on commit 2a69efd

Please sign in to comment.