Skip to content

Commit 3d32b20

Browse files
committed
GH-659 - Run integration builds against commercial repositories.
1 parent 830cb6f commit 3d32b20

File tree

3 files changed

+68
-2
lines changed

3 files changed

+68
-2
lines changed

.github/workflows/integration.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ jobs:
3232

3333
- name: Build with Maven
3434
env:
35+
COMMERCIAL_USERNAME: ${{ secrets.COMMERCIAL_ARTIFACTORY_RO_USERNAME }}
36+
COMMERCIAL_PASSWORD: ${{ secrets.COMMERCIAL_ARTIFACTORY_RO_PASSWORD }}
3537
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
3638
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
3739
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
3840
run: |
3941
cd spring-modulith-examples
40-
../mvnw -B versions:update-parent -DskipResolution=true -DparentVersion=${{ matrix.version }}
41-
../mvnw -B clean verify -Pwith-preview-repos -Dspring-boot.version=${{ matrix.version }}
42+
../mvnw -B versions:update-parent -s ../settings.xml -Pwith-preview-repos,with-commercial-repos -DskipResolution=true -DparentVersion=${{ matrix.version }}
43+
../mvnw -B clean verify -s ../settings.xml -Pwith-preview-repos,with-commercial-repos -Dspring-boot.version=${{ matrix.version }}

pom.xml

+20
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,26 @@ limitations under the License.
123123
</repositories>
124124
</profile>
125125

126+
<profile>
127+
<id>with-commercial-repos</id>
128+
<repositories>
129+
<repository>
130+
<id>spring-commercial-releases</id>
131+
<url>https://repo.spring.vmware.com/artifactory/spring-commercial-release-local</url>
132+
<snapshots>
133+
<enabled>false</enabled>
134+
</snapshots>
135+
</repository>
136+
<repository>
137+
<id>spring-commercial-snapshots</id>
138+
<url>https://repo.spring.vmware.com/artifactory/spring-commercial-snapshot-local</url>
139+
<releases>
140+
<enabled>false</enabled>
141+
</releases>
142+
</repository>
143+
</repositories>
144+
</profile>
145+
126146
<profile>
127147

128148
<id>prepare-release</id>

spring-modulith-examples/pom.xml

+44
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,49 @@
2929
<spring-boot.version>3.3.0</spring-boot.version>
3030
</properties>
3131

32+
<profiles>
33+
<profile>
34+
<id>with-preview-repos</id>
35+
<repositories>
36+
<repository>
37+
<id>spring-milestone</id>
38+
<url>https://repo.spring.io/milestone</url>
39+
<snapshots>
40+
<enabled>false</enabled>
41+
</snapshots>
42+
</repository>
43+
<repository>
44+
<id>spring-snapshot</id>
45+
<url>https://repo.spring.io/snapshot</url>
46+
<releases>
47+
<enabled>false</enabled>
48+
</releases>
49+
</repository>
50+
</repositories>
51+
</profile>
52+
53+
<profile>
54+
<id>with-commercial-repos</id>
55+
<repositories>
56+
<repository>
57+
<id>spring-commercial-releases</id>
58+
<url>https://repo.spring.vmware.com/artifactory/spring-commercial-release-local</url>
59+
<snapshots>
60+
<enabled>false</enabled>
61+
</snapshots>
62+
</repository>
63+
<repository>
64+
<id>spring-commercial-snapshots</id>
65+
<url>https://repo.spring.vmware.com/artifactory/spring-commercial-snapshot-local</url>
66+
<releases>
67+
<enabled>false</enabled>
68+
</releases>
69+
</repository>
70+
</repositories>
71+
</profile>
72+
73+
</profiles>
74+
3275
<build>
3376
<defaultGoal>verify</defaultGoal>
3477

@@ -143,4 +186,5 @@
143186
</releases>
144187
</pluginRepository>
145188
</pluginRepositories>
189+
146190
</project>

0 commit comments

Comments
 (0)