Use new 'maven-publish' plugin

This commit is contained in:
TacoTheDank 2021-08-07 17:51:32 -04:00
parent 8919a53d95
commit 4a7c1723a6
1 changed files with 12 additions and 2 deletions

View File

@ -1,6 +1,6 @@
allprojects {
apply plugin: 'java-library'
apply plugin: 'maven'
apply plugin: 'maven-publish'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
@ -16,6 +16,16 @@ allprojects {
maven { url "https://jitpack.io" }
}
afterEvaluate {
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
}
ext {
nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
spotbugsVersion = "4.2.3"
@ -59,7 +69,7 @@ task aggregatedJavadocs(type: Javadoc, group: 'Documentation') {
"apiNote:a:API Note:",
"implSpec:a:Implementation Requirements:",
"implNote:a:Implementation Note:"
]
]
subprojects.each { project ->
project.tasks.withType(Javadoc).each { javadocTask ->