@@ -13,9 +13,8 @@ buildscript {
1313
1414plugins {
1515 id ' com.github.ben-manes.versions' version ' 0.51.0'
16- id ' com.github.sherter.google-java-format' version ' 0.8'
17- id " de.marcphilipp.nexus-publish" version " 0.4.0"
18- id ' io.codearte.nexus-staging' version ' 0.30.0'
16+ id ' com.github.sherter.google-java-format' version ' 0.9'
17+ id " io.github.gradle-nexus.publish-plugin" version " 1.3.0"
1918}
2019
2120apply plugin : ' java'
@@ -34,14 +33,18 @@ repositories {
3433 mavenCentral()
3534}
3635
36+ googleJavaFormat {
37+ toolVersion = " 1.1"
38+ }
39+
3740task javadocJar (type : Jar , dependsOn : javadoc) {
38- classifier = ' javadoc'
41+ archiveClassifier = ' javadoc'
3942 from ' build/docs/javadoc'
4043}
4144
4245task sourcesJar (type : Jar ) {
4346 from sourceSets. main. allSource
44- classifier = ' sources'
47+ archiveClassifier = ' sources'
4548}
4649
4750artifacts {
@@ -104,8 +107,8 @@ jacoco {
104107
105108jacocoTestReport {
106109 reports {
107- xml. enabled = true // coveralls plugin depends on xml format report
108- html. enabled = true
110+ xml. required = true // coveralls plugin depends on xml format report
111+ html. required = true
109112 }
110113}
111114
@@ -184,6 +187,7 @@ publishing {
184187}
185188
186189nexusPublishing {
190+ packageGroup = " com.google.maps"
187191 repositories {
188192 sonatype {
189193 username = sonatypeUsername
@@ -193,12 +197,6 @@ nexusPublishing {
193197 }
194198}
195199
196- nexusStaging {
197- username = sonatypeUsername
198- password = sonatypePassword
199- packageGroup = " com.google.maps"
200- }
201-
202200signing {
203201 sign publishing.publications.MapsJavaUtils
204202}
0 commit comments