From 7fb5bcb0ba1760dbfa8e98b9072eb748f6a634cd Mon Sep 17 00:00:00 2001 From: "Nuffer-Rodriguez, Frankie L" Date: Thu, 26 Feb 2026 07:38:57 -0700 Subject: [PATCH] moved publishing repo to conventions file --- build.gradle | 18 +++--------------- .../groovy/wtmp.publishing-conventions.gradle | 13 +++++++++++++ 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/build.gradle b/build.gradle index 0feeefb..5bb81bb 100644 --- a/build.gradle +++ b/build.gradle @@ -83,21 +83,9 @@ artifacts { publishing { publications { - maven(MavenPublication) { - artifactId = "usbr-actionpanel-python" - artifact source: tasks.named("zipPython"), extension: 'zip' - } - } - - // publish to github packages - repositories { - maven { - name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/DOI-BOR/WTMP-Python-Plotting") - credentials { - username = System.getenv("GITHUB_ACTOR") - password = System.getenv("GITHUB_TOKEN") - } + maven(MavenPublication) { + artifactId = "usbr-actionpanel-python" + artifact source: tasks.named("zipPython"), extension: 'zip' } } } \ No newline at end of file diff --git a/buildSrc/src/main/groovy/wtmp.publishing-conventions.gradle b/buildSrc/src/main/groovy/wtmp.publishing-conventions.gradle index 3513e59..19a9be8 100644 --- a/buildSrc/src/main/groovy/wtmp.publishing-conventions.gradle +++ b/buildSrc/src/main/groovy/wtmp.publishing-conventions.gradle @@ -2,3 +2,16 @@ plugins { id "maven-publish" } +publishing{ +// publish to github packages + repositories { + maven { + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/DOI-BOR/WTMP-Python-Plotting") + credentials { + username = System.getenv("GITHUB_ACTOR") + password = System.getenv("GITHUB_TOKEN") + } + } + } +} \ No newline at end of file