From 77d0654a2947a721628ca054deb2405c2aa55b7a Mon Sep 17 00:00:00 2001 From: Sxtanna Date: Tue, 28 Jul 2020 12:58:06 -0400 Subject: [PATCH] updated build to use maven publish plugin --- build.gradle | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/build.gradle b/build.gradle index 3360cee..819a59e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { id "java" + id "maven-publish" id "net.minecrell.licenser" version "0.4.1" id "com.github.johnrengelman.shadow" version "6.0.0" } @@ -77,3 +78,17 @@ sourceSets { test.compileClasspath += configurations.compileOnly test.runtimeClasspath += configurations.compileOnly } + +publishing { + publications { + maven(MavenPublication) { + groupId = project.group + artifactId = project.name + version = project.version.toString() + + from(components.java) + } + } +} + +publishToMavenLocal.dependsOn clean, test, jar