From 683857009e7bdbb964ce2be58ef609717befea21 Mon Sep 17 00:00:00 2001 From: Ignas Mikalajunas Date: Sat, 23 Dec 2023 01:43:51 +0200 Subject: [PATCH] Added publishing target --- build.gradle | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/build.gradle b/build.gradle index 279b92e..ee994c2 100644 --- a/build.gradle +++ b/build.gradle @@ -4,6 +4,7 @@ plugins { id 'groovy' id 'com.github.spotbugs' id 'idea' + id 'maven-publish' id 'com.ryandens.javaagent-application' version "0.4.2" } @@ -129,3 +130,21 @@ test { environment("TESTCONTAINERS_RYUK_DISABLED", "true") } } + +publishing { + publications { + maven(MavenPublication) { + from(components.java) + } + } + repositories { + maven { + name = "GitHubPackages" + url = "https://maven.pkg.github.com/Ignas/nukagit" + credentials { + username = System.getenv("GITHUB_ACTOR") + password = System.getenv("GITHUB_TOKEN") + } + } + } +} \ No newline at end of file