mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-01-06 01:20:32 +05:30
Use new 'maven-publish' plugin
This commit is contained in:
parent
8919a53d95
commit
4a7c1723a6
14
build.gradle
14
build.gradle
@ -1,6 +1,6 @@
|
|||||||
allprojects {
|
allprojects {
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
compileJava.options.encoding = 'UTF-8'
|
compileJava.options.encoding = 'UTF-8'
|
||||||
compileTestJava.options.encoding = 'UTF-8'
|
compileTestJava.options.encoding = 'UTF-8'
|
||||||
@ -16,6 +16,16 @@ allprojects {
|
|||||||
maven { url "https://jitpack.io" }
|
maven { url "https://jitpack.io" }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
mavenJava(MavenPublication) {
|
||||||
|
from components.java
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
|
nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
|
||||||
spotbugsVersion = "4.2.3"
|
spotbugsVersion = "4.2.3"
|
||||||
@ -59,7 +69,7 @@ task aggregatedJavadocs(type: Javadoc, group: 'Documentation') {
|
|||||||
"apiNote:a:API Note:",
|
"apiNote:a:API Note:",
|
||||||
"implSpec:a:Implementation Requirements:",
|
"implSpec:a:Implementation Requirements:",
|
||||||
"implNote:a:Implementation Note:"
|
"implNote:a:Implementation Note:"
|
||||||
]
|
]
|
||||||
|
|
||||||
subprojects.each { project ->
|
subprojects.each { project ->
|
||||||
project.tasks.withType(Javadoc).each { javadocTask ->
|
project.tasks.withType(Javadoc).each { javadocTask ->
|
||||||
|
Loading…
Reference in New Issue
Block a user