From e0fe404832b87f2cecf790fac43d2f4a622256c0 Mon Sep 17 00:00:00 2001 From: bvn13 Date: Sat, 29 Jan 2022 01:26:15 +0300 Subject: [PATCH] add publishing to github packages --- build.gradle | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/build.gradle b/build.gradle index cf4b97e..e6cac96 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java' id 'idea' + id 'maven-publish' } group 'me.bvn13' @@ -34,4 +35,22 @@ test { tasks.withType(Test).configureEach { maxParallelForks = 1 +} + +publishing { + repositories { + maven { + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/bvn13/sewy") + credentials { + username = project.findProperty("gpr.user") ?: System.getenv("USERNAME") + password = project.findProperty("gpr.key") ?: System.getenv("TOKEN") + } + } + } + publications { + gpr(MavenPublication) { + from(components.java) + } + } } \ No newline at end of file