Polish repository declarations

This commit is contained in:
Andy Wilkinson
2024-09-24 09:37:39 +01:00
parent 5348b4b32d
commit f9d575f319
6 changed files with 41 additions and 13 deletions

View File

@@ -6,6 +6,7 @@ plugins {
repositories {
maven {
name "Spring Commercial Snapshot"
url "https://repo.spring.io/artifactory/spring-commercial-snapshot-remote"
credentials {
username System.env['REPO_SPRING_IO_USERNAME']
@@ -18,6 +19,7 @@ repositories {
}
}
maven {
name "Spring Commercial Release"
url "https://repo.spring.io/artifactory/spring-commercial-release-remote"
credentials {
username System.env['REPO_SPRING_IO_USERNAME']
@@ -31,7 +33,7 @@ repositories {
}
maven {
name "Maven Central Mirror"
url "https://repo.spring.io/repo1"
url "https://repo.spring.io/artifactory/repo1"
credentials {
username System.env['REPO_SPRING_IO_USERNAME']
password System.env['REPO_SPRING_IO_PASSWORD']
@@ -41,13 +43,15 @@ repositories {
}
}
maven {
url "https://repo.spring.io/snapshot"
name "Spring Snapshot"
url "https://repo.spring.io/artifactory/snapshot"
mavenContent {
snapshotsOnly()
}
}
maven {
url "https://repo.spring.io/milestone"
name "Spring Milestone"
url "https://repo.spring.io/artifactory/milestone"
mavenContent {
releasesOnly()
}

View File

@@ -6,7 +6,13 @@ plugins {
}
repositories {
maven { url "https://artifactory-oss.prod.netflix.net/artifactory/maven-oss-candidates" }
maven {
name "Netflix Release Candidate"
url "https://artifactory-oss.prod.netflix.net/artifactory/maven-oss-candidates"
mavenContent {
releasesOnly()
}
}
}
dependencies {

View File

@@ -6,6 +6,7 @@ plugins {
repositories {
maven {
name "Spring Commercial Snapshot"
url "https://repo.spring.io/artifactory/spring-commercial-snapshot-remote"
credentials {
username System.env['REPO_SPRING_IO_USERNAME']
@@ -18,6 +19,7 @@ repositories {
}
}
maven {
name "Spring Commercial Release"
url "https://repo.spring.io/artifactory/spring-commercial-release-remote"
credentials {
username System.env['REPO_SPRING_IO_USERNAME']
@@ -31,7 +33,7 @@ repositories {
}
maven {
name "Maven Central Mirror"
url "https://repo.spring.io/repo1"
url "https://repo.spring.io/artifactory/repo1"
credentials {
username System.env['REPO_SPRING_IO_USERNAME']
password System.env['REPO_SPRING_IO_PASSWORD']
@@ -41,13 +43,15 @@ repositories {
}
}
maven {
url "https://repo.spring.io/snapshot"
name "Spring Snapshot"
url "https://repo.spring.io/artifactory/snapshot"
mavenContent {
snapshotsOnly()
}
}
maven {
url "https://repo.spring.io/milestone"
name "Spring Milestone"
url "https://repo.spring.io/artifactory/milestone"
mavenContent {
releasesOnly()
}

View File

@@ -14,7 +14,7 @@ pluginManagement {
repositories {
maven {
name "Maven Central Mirror"
url "https://repo.spring.io/repo1"
url "https://repo.spring.io/artifactory/repo1"
credentials {
username System.env['REPO_SPRING_IO_USERNAME']
password System.env['REPO_SPRING_IO_PASSWORD']
@@ -23,7 +23,6 @@ pluginManagement {
releasesOnly()
}
}
gradlePluginPortal()
}
}

View File

@@ -142,12 +142,12 @@ public class AotSmokeTestPlugin implements Plugin<Project> {
});
project.getRepositories().maven((repo) -> {
repo.setName("Spring Snapshot");
repo.setUrl("https://repo.spring.io/snapshot");
repo.setUrl("https://repo.spring.io/artifactory/snapshot");
repo.mavenContent((mavenContent) -> mavenContent.snapshotsOnly());
});
project.getRepositories().maven((repo) -> {
repo.setName("Spring Milestone");
repo.setUrl("https://repo.spring.io/milestone");
repo.setUrl("https://repo.spring.io/artifactory/milestone");
repo.mavenContent((mavenContent) -> mavenContent.releasesOnly());
});
configureAppTests(project, extension, appTest);

View File

@@ -2,6 +2,7 @@ pluginManagement {
includeBuild "gradle/plugins/aot-smoke-test-plugin"
repositories {
maven {
name "Spring Commercial Snapshot"
url "https://repo.spring.io/artifactory/spring-commercial-snapshot-remote"
credentials {
username System.env['REPO_SPRING_IO_USERNAME']
@@ -13,6 +14,7 @@ pluginManagement {
}
}
maven {
name "Spring Commercial Release"
url "https://repo.spring.io/artifactory/spring-commercial-release-remote"
credentials {
username System.env['REPO_SPRING_IO_USERNAME']
@@ -23,15 +25,28 @@ pluginManagement {
includeGroupByRegex("org.springframework.*")
}
}
maven {
name "Maven Central Mirror"
url "https://repo.spring.io/artifactory/repo1"
credentials {
username System.env['REPO_SPRING_IO_USERNAME']
password System.env['REPO_SPRING_IO_PASSWORD']
}
mavenContent {
releasesOnly()
}
}
gradlePluginPortal()
maven {
url "https://repo.spring.io/snapshot"
name "Spring Snapshot"
url "https://repo.spring.io/artifactory/snapshot"
mavenContent {
snapshotsOnly()
}
}
maven {
url "https://repo.spring.io/milestone"
name "Spring Milestone"
url "https://repo.spring.io/artifactory/milestone"
mavenContent {
releasesOnly()
}