Use repo.spring.io to resolve commercial dependencies

Closes gh-229
This commit is contained in:
Andy Wilkinson
2024-07-11 09:33:36 +01:00
parent 9c823464bc
commit 309e05843c
5 changed files with 26 additions and 26 deletions

View File

@@ -15,8 +15,8 @@ Please read and follow the link:CONTRIBUTING.adoc[contributing guide].
== Initial Setup
The smoke tests resolve dependencies from https://repo.spring.vmware.com which requires authentication.
Use the `REPO_SPRING_VMWARE_COM_USERNAME` and `REPO_SPRING_VMWARE_COM_PASSWORD` environment variables to provide the necessary credentials.
The smoke tests resolve commercial dependencies from https://repo.spring.io which requires authentication.
Use the `REPO_SPRING_IO_USERNAME` and `REPO_SPRING_IO_PASSWORD` environment variables to provide the necessary credentials.
== How to

View File

@@ -6,10 +6,10 @@ plugins {
repositories {
maven {
url "https://repo.spring.vmware.com/artifactory/spring-commercial-snapshot-local"
url "https://repo.spring.io/artifactory/spring-commercial-snapshot-remote"
credentials {
username System.env['REPO_SPRING_VMWARE_COM_USERNAME']
password System.env['REPO_SPRING_VMWARE_COM_PASSWORD']
username System.env['REPO_SPRING_IO_USERNAME']
password System.env['REPO_SPRING_IO_PASSWORD']
}
mavenContent {
snapshotsOnly()
@@ -18,10 +18,10 @@ repositories {
}
}
maven {
url "https://repo.spring.vmware.com/artifactory/spring-commercial-release-local"
url "https://repo.spring.io/artifactory/spring-commercial-release-remote"
credentials {
username System.env['REPO_SPRING_VMWARE_COM_USERNAME']
password System.env['REPO_SPRING_VMWARE_COM_PASSWORD']
username System.env['REPO_SPRING_IO_USERNAME']
password System.env['REPO_SPRING_IO_PASSWORD']
}
mavenContent {
releasesOnly()

View File

@@ -6,10 +6,10 @@ plugins {
repositories {
maven {
url "https://repo.spring.vmware.com/artifactory/spring-commercial-snapshot-local"
url "https://repo.spring.io/artifactory/spring-commercial-snapshot-remote"
credentials {
username System.env['REPO_SPRING_VMWARE_COM_USERNAME']
password System.env['REPO_SPRING_VMWARE_COM_PASSWORD']
username System.env['REPO_SPRING_IO_USERNAME']
password System.env['REPO_SPRING_IO_PASSWORD']
}
mavenContent {
snapshotsOnly()
@@ -18,10 +18,10 @@ repositories {
}
}
maven {
url "https://repo.spring.vmware.com/artifactory/spring-commercial-release-local"
url "https://repo.spring.io/artifactory/spring-commercial-release-remote"
credentials {
username System.env['REPO_SPRING_VMWARE_COM_USERNAME']
password System.env['REPO_SPRING_VMWARE_COM_PASSWORD']
username System.env['REPO_SPRING_IO_USERNAME']
password System.env['REPO_SPRING_IO_PASSWORD']
}
mavenContent {
releasesOnly()

View File

@@ -101,10 +101,10 @@ public class AotSmokeTestPlugin implements Plugin<Project> {
}
project.getRepositories().maven((repo) -> {
repo.setName("Spring Commercial Snapshot");
repo.setUrl("https://repo.spring.vmware.com/artifactory/spring-commercial-snapshot-local");
repo.setUrl("https://repo.spring.io/artifactory/spring-commercial-snapshot-remote");
repo.credentials((credentials) -> {
credentials.setUsername(System.getenv().get("REPO_SPRING_VMWARE_COM_USERNAME"));
credentials.setPassword(System.getenv().get("REPO_SPRING_VMWARE_COM_PASSWORD"));
credentials.setUsername(System.getenv().get("REPO_SPRING_IO_USERNAME"));
credentials.setPassword(System.getenv().get("REPO_SPRING_IO_PASSWORD"));
});
repo.mavenContent((mavenContent) -> {
mavenContent.snapshotsOnly();
@@ -114,10 +114,10 @@ public class AotSmokeTestPlugin implements Plugin<Project> {
});
project.getRepositories().maven((repo) -> {
repo.setName("Spring Commercial Release");
repo.setUrl("https://repo.spring.vmware.com/artifactory/spring-commercial-release-local");
repo.setUrl("https://repo.spring.io/artifactory/spring-commercial-release-remote");
repo.credentials((credentials) -> {
credentials.setUsername(System.getenv().get("REPO_SPRING_VMWARE_COM_USERNAME"));
credentials.setPassword(System.getenv().get("REPO_SPRING_VMWARE_COM_PASSWORD"));
credentials.setUsername(System.getenv().get("REPO_SPRING_IO_USERNAME"));
credentials.setPassword(System.getenv().get("REPO_SPRING_IO_PASSWORD"));
});
repo.mavenContent((mavenContent) -> {
mavenContent.releasesOnly();

View File

@@ -2,10 +2,10 @@ pluginManagement {
includeBuild "gradle/plugins/aot-smoke-test-plugin"
repositories {
maven {
url "https://repo.spring.vmware.com/artifactory/spring-commercial-snapshot-local"
url "https://repo.spring.io/artifactory/spring-commercial-snapshot-remote"
credentials {
username System.env['REPO_SPRING_VMWARE_COM_USERNAME']
password System.env['REPO_SPRING_VMWARE_COM_PASSWORD']
username System.env['REPO_SPRING_IO_USERNAME']
password System.env['REPO_SPRING_IO_PASSWORD']
}
mavenContent {
snapshotsOnly()
@@ -13,10 +13,10 @@ pluginManagement {
}
}
maven {
url "https://repo.spring.vmware.com/artifactory/spring-commercial-release-local"
url "https://repo.spring.io/artifactory/spring-commercial-release-remote"
credentials {
username System.env['REPO_SPRING_VMWARE_COM_USERNAME']
password System.env['REPO_SPRING_VMWARE_COM_PASSWORD']
username System.env['REPO_SPRING_IO_USERNAME']
password System.env['REPO_SPRING_IO_PASSWORD']
}
mavenContent {
releasesOnly()