This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy-geb.git


The following commit(s) were added to refs/heads/master by this push:
     new 838898bc prepare for publication to Apache repo
838898bc is described below

commit 838898bcf46e9541f1d527c981e26dbb4456db09
Author: Paul King <[email protected]>
AuthorDate: Fri Dec 20 00:09:20 2024 +1000

    prepare for publication to Apache repo
---
 .../src/main/groovy/geb.published-groovy-module.gradle   | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/buildSrc/src/main/groovy/geb.published-groovy-module.gradle 
b/buildSrc/src/main/groovy/geb.published-groovy-module.gradle
index 097ce541..8fbdfd71 100644
--- a/buildSrc/src/main/groovy/geb.published-groovy-module.gradle
+++ b/buildSrc/src/main/groovy/geb.published-groovy-module.gradle
@@ -32,6 +32,22 @@ java {
 }
 
 publishing {
+    repositories {
+        maven {
+            name "LocalFile"
+            url 
rootProject.layout.buildDirectory.dir("repo").get().asFile.absolutePath
+        }
+        maven {
+            name "Apache"
+            url  gebModule.isSnapshot()
+                ? 
'https://repository.apache.org/content/repositories/snapshots'
+                : 
'https://repository.apache.org/service/local/staging/deploy/maven2'
+            credentials {
+                username gebModule.isSnapshot() ? 
findProperty('asfNexusUsername') : findProperty('apacheUser')
+                password gebModule.isSnapshot() ? 
findProperty('asfNexusPassword') : findProperty('apachePassword')
+            }
+        }
+    }
     publications {
         main(MavenPublication) {
             from components.java

Reply via email to