This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git
commit 0c022f2f1f71fc4fdac2d0e1a63d57cc9490a157 Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Fri Sep 15 15:25:06 2023 +0200 Define Maven repositories for snapshots and release deployments. --- endorsed/build.gradle.kts | 17 +++++++++++++++++ incubator/build.gradle.kts | 17 +++++++++++++++++ optional/build.gradle.kts | 17 +++++++++++++++++ settings.gradle.kts | 1 + 4 files changed, 52 insertions(+) diff --git a/endorsed/build.gradle.kts b/endorsed/build.gradle.kts index c4806ce7ed..abf77b66cc 100644 --- a/endorsed/build.gradle.kts +++ b/endorsed/build.gradle.kts @@ -444,6 +444,23 @@ publishing { } } } + /* Following block is currently repeated in all sub-projects. */ + repositories { + maven { + name = "Apache" + url = uri(if (version.toString().endsWith("SNAPSHOT")) + "https://repository.apache.org/content/repositories/snapshots" else + "https://repository.apache.org/service/local/staging/deploy/maven2") + credentials { + val asfNexusUsername = providers.gradleProperty("asfNexusUsername") + val asfNexusPassword = providers.gradleProperty("asfNexusPassword") + if (asfNexusUsername.isPresent() && asfNexusPassword.isPresent()) { + username = asfNexusUsername.get() + password = asfNexusPassword.get() + } + } + } + } } signing { diff --git a/incubator/build.gradle.kts b/incubator/build.gradle.kts index e2e76b96bd..b2a0c48eb0 100644 --- a/incubator/build.gradle.kts +++ b/incubator/build.gradle.kts @@ -151,4 +151,21 @@ publishing { } } } + /* Following block is currently repeated in all sub-projects. */ + repositories { + maven { + name = "Apache" + url = uri(if (version.toString().endsWith("SNAPSHOT")) + "https://repository.apache.org/content/repositories/snapshots" else + "https://repository.apache.org/service/local/staging/deploy/maven2") + credentials { + val asfNexusUsername = providers.gradleProperty("asfNexusUsername") + val asfNexusPassword = providers.gradleProperty("asfNexusPassword") + if (asfNexusUsername.isPresent() && asfNexusPassword.isPresent()) { + username = asfNexusUsername.get() + password = asfNexusPassword.get() + } + } + } + } } diff --git a/optional/build.gradle.kts b/optional/build.gradle.kts index a96990dfa5..a819cfed16 100644 --- a/optional/build.gradle.kts +++ b/optional/build.gradle.kts @@ -175,6 +175,23 @@ publishing { } } } + /* Following block is currently repeated in all sub-projects. */ + repositories { + maven { + name = "Apache" + url = uri(if (version.toString().endsWith("SNAPSHOT")) + "https://repository.apache.org/content/repositories/snapshots" else + "https://repository.apache.org/service/local/staging/deploy/maven2") + credentials { + val asfNexusUsername = providers.gradleProperty("asfNexusUsername") + val asfNexusPassword = providers.gradleProperty("asfNexusPassword") + if (asfNexusUsername.isPresent() && asfNexusPassword.isPresent()) { + username = asfNexusUsername.get() + password = asfNexusPassword.get() + } + } + } + } } signing { diff --git a/settings.gradle.kts b/settings.gradle.kts index 6f5cf90996..c938ca4576 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -41,6 +41,7 @@ dependencyResolutionManagement { mavenCentral() mavenLocal() // For GeoAPI SNAPSHOT only, which are built locally. maven { + name = "UCAR" url = uri("https://artifacts.unidata.ucar.edu/repository/unidata-releases") content { includeGroup("edu.ucar") // Restrict usage to those dependencies.