This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch main-with-gradle-wrapper in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/main-with-gradle-wrapper by this push: new cd6f6b44b1 Move repository declaration to the right location for enabling publication. cd6f6b44b1 is described below commit cd6f6b44b1a5df92e5dd53843c2a5910ec56d655 Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Fri Sep 15 16:48:53 2023 +0200 Move repository declaration to the right location for enabling publication. --- endorsed/build.gradle.kts | 17 +++++++++++++++++ incubator/build.gradle.kts | 17 +++++++++++++++++ optional/build.gradle.kts | 17 +++++++++++++++++ settings.gradle.kts | 14 -------------- 4 files changed, 51 insertions(+), 14 deletions(-) diff --git a/endorsed/build.gradle.kts b/endorsed/build.gradle.kts index d2399933a3..293b169713 100644 --- a/endorsed/build.gradle.kts +++ b/endorsed/build.gradle.kts @@ -392,4 +392,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 = System.getProperty("asfNexusUsername") + val asfNexusPassword = System.getProperty("asfNexusPassword") + if (asfNexusUsername != null && asfNexusPassword != null) { + username = asfNexusUsername + password = asfNexusPassword + } + } + } + } } diff --git a/incubator/build.gradle.kts b/incubator/build.gradle.kts index 797f762d10..7d1b756819 100644 --- a/incubator/build.gradle.kts +++ b/incubator/build.gradle.kts @@ -129,4 +129,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 = System.getProperty("asfNexusUsername") + val asfNexusPassword = System.getProperty("asfNexusPassword") + if (asfNexusUsername != null && asfNexusPassword != null) { + username = asfNexusUsername + password = asfNexusPassword + } + } + } + } } diff --git a/optional/build.gradle.kts b/optional/build.gradle.kts index eddd8473fa..599a179eef 100644 --- a/optional/build.gradle.kts +++ b/optional/build.gradle.kts @@ -165,4 +165,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 = System.getProperty("asfNexusUsername") + val asfNexusPassword = System.getProperty("asfNexusPassword") + if (asfNexusUsername != null && asfNexusPassword != null) { + username = asfNexusUsername + password = asfNexusPassword + } + } + } + } } diff --git a/settings.gradle.kts b/settings.gradle.kts index 4ca1c0b860..a007dae0a1 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -48,20 +48,6 @@ dependencyResolutionManagement { releasesOnly() } } - maven { - name = "Snapshots" - url = uri("https://repository.apache.org/content/repositories/snapshots") - credentials { - println("Looking for properties") - val asfNexusUsername = System.getProperty("asfNexusUsername") - val asfNexusPassword = System.getProperty("asfNexusPassword") - if (asfNexusUsername != null && asfNexusPassword != null) { - println("Properties found") - username = asfNexusUsername - password = asfNexusPassword - } - } - } } /* * All dependencies used by sub-projects, together with their versions.