mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Set up maven-publish plugin
This commit is contained in:
parent
95d14ed73f
commit
ea8a53029c
@ -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"
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user