From a0540c005d2e28d349142b4fc683a3d4d742e106 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 16 Oct 2024 00:41:05 +0200 Subject: [PATCH] Configured publishing --- .gitmodules | 3 +++ EpcQrCode/build.gradle.kts | 7 ++++++- build.gradle.kts | 26 ++++++++++++++++++++++---- gradle/scripts | 1 + 4 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 .gitmodules create mode 160000 gradle/scripts diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6c85881 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "gradle/scripts"] + path = gradle/scripts + url = git@github.com:dankito/GradleScripts.git diff --git a/EpcQrCode/build.gradle.kts b/EpcQrCode/build.gradle.kts index 73b5c21..eabb631 100644 --- a/EpcQrCode/build.gradle.kts +++ b/EpcQrCode/build.gradle.kts @@ -60,4 +60,9 @@ kotlin { } } -} \ No newline at end of file +} + + +ext["customArtifactId"] = "epc-qr-code" + +apply(from = "../gradle/scripts/publish-codinux-repo.gradle.kts") \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 0ea5e4b..9d82c07 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -11,13 +11,31 @@ buildscript { } -group = "net.codinux.banking.epcqrcode" -version = "1.0.0-SNAPSHOT" - - allprojects { + group = "net.codinux.banking.epcqrcode" + version = "1.0.0-SNAPSHOT" + repositories { mavenCentral() google() + maven { setUrl("https://maven.dankito.net/api/packages/codinux/maven") } } + + + ext["projectDescription"] = "Generate or parse EPC QR Codes" + + ext["sourceCodeRepositoryBaseUrl"] = "git.dankito.net/codinux/EpcQrCode" +} + + +tasks.register("publishAllToMavenLocal") { + dependsOn( + ":EpcQrCode:publishToMavenLocal" + ) +} + +tasks.register("publishAll") { + dependsOn( + ":EpcQrCode:publish" + ) } diff --git a/gradle/scripts b/gradle/scripts new file mode 160000 index 0000000..88f1b01 --- /dev/null +++ b/gradle/scripts @@ -0,0 +1 @@ +Subproject commit 88f1b01167e6a34b5b91f8797845bca0b7e4d3ab