Set up maven-publish plugin

This commit is contained in:
Rsl1122 2019-02-02 10:42:29 +02:00
parent 95d14ed73f
commit ea8a53029c
2 changed files with 26 additions and 1 deletions

View File

@ -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"

View File

@ -20,3 +20,15 @@ shadowJar {
baseName = "Plan"
classifier = null
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.djrapitops'
artifactId = 'Plan-plugin'
version = project.version
artifact shadowJar
}
}
}