From ea8a53029c2bc7ec0135ca6eeed9214a098bb5a0 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Sat, 2 Feb 2019 10:42:29 +0200 Subject: [PATCH] Set up maven-publish plugin --- Plan/build.gradle | 15 ++++++++++++++- Plan/plugin/build.gradle | 12 ++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/Plan/build.gradle b/Plan/build.gradle index 61711155d..b2ea6e0d3 100644 --- a/Plan/build.gradle +++ b/Plan/build.gradle @@ -14,6 +14,19 @@ allprojects { group "com.djrapitops" version "4.6.2-SNAPSHOT" + configurations { + annotationProcessor + testAnnotationProcessor + } + + compileJava { + options.annotationProcessorPath = configurations.annotationProcessor + } + + compileTestJava { + options.annotationProcessorPath = configurations.testAnnotationProcessor + } + test { // useJUnitPlatform() testLogging { @@ -31,7 +44,7 @@ allprojects { subprojects { // Build plugins apply plugin: "java" - apply plugin: "maven" + apply plugin: "maven-publish" apply plugin: "net.ltgt.apt" // Annotation processing plugin apply plugin: "net.ltgt.apt-idea" // Annotation processing IntelliJ IDEA configuration plugin apply plugin: "com.github.johnrengelman.shadow" diff --git a/Plan/plugin/build.gradle b/Plan/plugin/build.gradle index 35b9ed850..19261fdf0 100644 --- a/Plan/plugin/build.gradle +++ b/Plan/plugin/build.gradle @@ -19,4 +19,16 @@ shadowJar { destinationDir = file("$rootDir/builds/") baseName = "Plan" classifier = null +} + +publishing { + publications { + mavenJava(MavenPublication) { + groupId = 'com.djrapitops' + artifactId = 'Plan-plugin' + version = project.version + + artifact shadowJar + } + } } \ No newline at end of file