From bd98bdf9649af14b3f78b42d809020546286ce16 Mon Sep 17 00:00:00 2001 From: On Demand Rides and Deliveries Date: Mon, 6 Oct 2025 08:51:13 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 815746145 --- build.gradle | 106 +++++++++++++++------------------------------------ 1 file changed, 31 insertions(+), 75 deletions(-) diff --git a/build.gradle b/build.gradle index 478e38e..cdef633 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { // Configuration for building plugins { id 'java-library' id 'maven-publish' - id 'signing' + id "com.vanniktech.maven.publish" version "0.34.0" } apply plugin: 'java' // standard Java tasks @@ -29,53 +29,38 @@ repositories { // repositories for Jar's you access in your code mavenCentral() } -publishing { - publications { - authLib(MavenPublication) { - pom { - name = 'Fleet Engine Auth Library' - description = 'Provides a set of tools to simplify the Fleet Engine setup process.' - url = 'https://github.com/googlemaps/java-fleetengine-auth' - licenses { - license { - name = 'The Apache License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - organization { - name = 'Google, Inc.' - url = 'http://www.google.com' - } - issueManagement { - system = 'GitHub Issues' - url = 'http://github.com/googlemaps/java-fleetengine-auth/issues' - } - scm { - connection = 'scm:git:git://github.com/googlemaps/java-fleetengine-auth.git' - developerConnection = 'scm:git:ssh://github.com/googlemaps/java-fleetengine-auth.git' - url = 'http://github.com/googlemaps/java-fleetengine-auth/' - tag = 'HEAD' - } - developers { - developer { - id = 'danielfbright' - name = 'Daniel Bright' - } - } +mavenPublishing { + publishToMavenCentral() + signAllPublications() + pom { + name = "Fleet Engine Auth Library" + description = "Provides a set of tools to simplify the Fleet Engine setup process." + url = "https://github.com/googlemaps/java-fleetengine-auth" + licenses { + license { + name = "The Apache License, Version 2.0" + url = "http://www.apache.org/licenses/LICENSE-2.0.txt" + distribution = "http://www.apache.org/licenses/LICENSE-2.0.txt" } - groupId group - artifactId project.ext.artifactId - version version - from components.java } - } - repositories { - maven { - name = "mavencentral" - url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" - credentials { - username sonatypeUsername - password sonatypePassword + organization { + name = 'Google, Inc.' + url = 'http://www.google.com' + } + issueManagement { + system = 'GitHub Issues' + url = 'http://github.com/googlemaps/java-fleetengine-auth/issues' + } + scm { + connection = 'scm:git:git://github.com/googlemaps/java-fleetengine-auth.git' + developerConnection = 'scm:git:ssh://github.com/googlemaps/java-fleetengine-auth.git' + url = 'http://github.com/googlemaps/java-fleetengine-auth/' + tag = 'HEAD' + } + developers { + developer { + id.set("google") + name.set("Google Inc.") } } } @@ -100,32 +85,3 @@ dependencies { testImplementation 'com.google.truth:truth:1.1' testImplementation 'org.mockito:mockito-core:3.12.4' } - -signing { - sign publishing.publications.authLib -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - archiveClassifier = 'javadoc' - from 'build/docs/javadoc' -} - -task sourcesJar(type: Jar) { - from sourceSets.main.allSource - archiveClassifier = 'sources' -} - -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} - -java { - withJavadocJar() - withSourcesJar() -} - - -compileJava.options.encoding = 'UTF-8' -javadoc.options.encoding = 'UTF-8'