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" group "com.djrapitops"
version "4.6.2-SNAPSHOT" version "4.6.2-SNAPSHOT"
configurations {
annotationProcessor
testAnnotationProcessor
}
compileJava {
options.annotationProcessorPath = configurations.annotationProcessor
}
compileTestJava {
options.annotationProcessorPath = configurations.testAnnotationProcessor
}
test { test {
// useJUnitPlatform() // useJUnitPlatform()
testLogging { testLogging {
@ -31,7 +44,7 @@ allprojects {
subprojects { subprojects {
// Build plugins // Build plugins
apply plugin: "java" apply plugin: "java"
apply plugin: "maven" apply plugin: "maven-publish"
apply plugin: "net.ltgt.apt" // Annotation processing plugin apply plugin: "net.ltgt.apt" // Annotation processing plugin
apply plugin: "net.ltgt.apt-idea" // Annotation processing IntelliJ IDEA configuration plugin apply plugin: "net.ltgt.apt-idea" // Annotation processing IntelliJ IDEA configuration plugin
apply plugin: "com.github.johnrengelman.shadow" apply plugin: "com.github.johnrengelman.shadow"

View File

@ -19,4 +19,16 @@ shadowJar {
destinationDir = file("$rootDir/builds/") destinationDir = file("$rootDir/builds/")
baseName = "Plan" baseName = "Plan"
classifier = null classifier = null
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.djrapitops'
artifactId = 'Plan-plugin'
version = project.version
artifact shadowJar
}
}
} }