changeset 35:80e46acfd82a version-0.4.6 tip

Add publishing configuration for publishToMavenLocal task :
author Kyle Miller <kyle.miller@mcoecn.org>
date Tue, 09 Aug 2022 13:05:45 +0100
parents 30f522dca380
children
files build.gradle
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Mon Aug 08 15:04:01 2022 +0100
+++ b/build.gradle	Tue Aug 09 13:05:45 2022 +0100
@@ -25,6 +25,19 @@
     maven { url 'https://docker.ssdt.io/artifactory/ssdt-repo' }
 }
 
+// Called by Gradle task publishToMavenLocal
+// POM file gets published to:  $USER_HOME\.m2\repository\org\ssdt_ohio\ssdt.gradle\$version
+publishing {
+    publications {
+        maven(MavenPublication) {
+            groupId = "${group}"
+            artifactId = "ssdt.gradle"
+            version = "${version}"
+            from components.java
+        }
+    }
+}
+
 dependencies {
     implementation localGroovy()
     implementation gradleApi()