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"
|
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"
|
||||||
|
@ -20,3 +20,15 @@ shadowJar {
|
|||||||
baseName = "Plan"
|
baseName = "Plan"
|
||||||
classifier = null
|
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