Skip to content

Commit 4a7c172

Browse files
committed
Use new 'maven-publish' plugin
1 parent 8919a53 commit 4a7c172

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

build.gradle

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
allprojects {
22
apply plugin: 'java-library'
3-
apply plugin: 'maven'
3+
apply plugin: 'maven-publish'
44

55
compileJava.options.encoding = 'UTF-8'
66
compileTestJava.options.encoding = 'UTF-8'
@@ -16,6 +16,16 @@ allprojects {
1616
maven { url "https://jitpack.io" }
1717
}
1818

19+
afterEvaluate {
20+
publishing {
21+
publications {
22+
mavenJava(MavenPublication) {
23+
from components.java
24+
}
25+
}
26+
}
27+
}
28+
1929
ext {
2030
nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
2131
spotbugsVersion = "4.2.3"
@@ -59,7 +69,7 @@ task aggregatedJavadocs(type: Javadoc, group: 'Documentation') {
5969
"apiNote:a:API Note:",
6070
"implSpec:a:Implementation Requirements:",
6171
"implNote:a:Implementation Note:"
62-
]
72+
]
6373

6474
subprojects.each { project ->
6575
project.tasks.withType(Javadoc).each { javadocTask ->

0 commit comments

Comments
 (0)