Skip to content

Commit

Permalink
GH-659 - Run integration builds against commercial repositories.
Browse files Browse the repository at this point in the history
  • Loading branch information
odrotbohm committed Jun 17, 2024
1 parent 830cb6f commit 3c628ad
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ jobs:

- name: Build with Maven
env:
COMMERCIAL_USERNAME: ${{ secrets.COMMERCIAL_ARTIFACTORY_RO_USERNAME }}
COMMERCIAL_PASSWORD: ${{ secrets.COMMERCIAL_ARTIFACTORY_RO_PASSWORD }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
run: |
cd spring-modulith-examples
../mvnw -B versions:update-parent -DskipResolution=true -DparentVersion=${{ matrix.version }}
../mvnw -B clean verify -Pwith-preview-repos -Dspring-boot.version=${{ matrix.version }}
../mvnw -B versions:update-parent -s settings.xml -Pwith-preview-repos,with-commercial-repos -DskipResolution=true -DparentVersion=${{ matrix.version }}
../mvnw -B clean verify -s settings.xml -Pwith-preview-repos,with-commercial-repos -Dspring-boot.version=${{ matrix.version }}
20 changes: 20 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,26 @@ limitations under the License.
</repositories>
</profile>

<profile>
<id>with-commercial-repos</id>
<repositories>
<repository>
<id>spring-commercial-releases</id>
<url>https://repo.spring.vmware.com/spring-commercial-release</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>spring-commercial-snapshots</id>
<url>https://repo.spring.vmware.com/spring-commercial-snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
</profile>

<profile>

<id>prepare-release</id>
Expand Down
44 changes: 44 additions & 0 deletions spring-modulith-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,49 @@
<spring-boot.version>3.3.0</spring-boot.version>
</properties>

<profiles>
<profile>
<id>with-preview-repos</id>
<repositories>
<repository>
<id>spring-milestone</id>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>spring-snapshot</id>
<url>https://repo.spring.io/snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
</profile>

<profile>
<id>with-commercial-repos</id>
<repositories>
<repository>
<id>spring-commercial-releases</id>
<url>https://repo.spring.vmware.com/spring-commercial-release</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>spring-commercial-snapshots</id>
<url>https://repo.spring.vmware.com/spring-commercial-snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
</profile>

</profiles>

<build>
<defaultGoal>verify</defaultGoal>

Expand Down Expand Up @@ -143,4 +186,5 @@
</releases>
</pluginRepository>
</pluginRepositories>

</project>

0 comments on commit 3c628ad

Please sign in to comment.