Skip to content

Commit f1a2b37

Browse files
On Demand Rides and Deliveriescopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 814806439
1 parent afde78b commit f1a2b37

File tree

1 file changed

+31
-75
lines changed

1 file changed

+31
-75
lines changed

build.gradle

Lines changed: 31 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript { // Configuration for building
77
plugins {
88
id 'java-library'
99
id 'maven-publish'
10-
id 'signing'
10+
id "com.vanniktech.maven.publish" version "0.34.0"
1111
}
1212

1313
apply plugin: 'java' // standard Java tasks
@@ -29,53 +29,38 @@ repositories { // repositories for Jar's you access in your code
2929
mavenCentral()
3030
}
3131

32-
publishing {
33-
publications {
34-
authLib(MavenPublication) {
35-
pom {
36-
name = 'Fleet Engine Auth Library'
37-
description = 'Provides a set of tools to simplify the Fleet Engine setup process.'
38-
url = 'https://github.com/googlemaps/java-fleetengine-auth'
39-
licenses {
40-
license {
41-
name = 'The Apache License, Version 2.0'
42-
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
43-
}
44-
}
45-
organization {
46-
name = 'Google, Inc.'
47-
url = 'http://www.google.com'
48-
}
49-
issueManagement {
50-
system = 'GitHub Issues'
51-
url = 'http://github.com/googlemaps/java-fleetengine-auth/issues'
52-
}
53-
scm {
54-
connection = 'scm:git:git://github.com/googlemaps/java-fleetengine-auth.git'
55-
developerConnection = 'scm:git:ssh://github.com/googlemaps/java-fleetengine-auth.git'
56-
url = 'http://github.com/googlemaps/java-fleetengine-auth/'
57-
tag = 'HEAD'
58-
}
59-
developers {
60-
developer {
61-
id = 'danielfbright'
62-
name = 'Daniel Bright'
63-
}
64-
}
32+
mavenPublishing {
33+
publishToMavenCentral()
34+
signAllPublications()
35+
pom {
36+
name = "Fleet Engine Auth Library"
37+
description = "Provides a set of tools to simplify the Fleet Engine setup process."
38+
url = "https://github.com/googlemaps/java-fleetengine-auth"
39+
licenses {
40+
license {
41+
name = "The Apache License, Version 2.0"
42+
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
43+
distribution = "http://www.apache.org/licenses/LICENSE-2.0.txt"
6544
}
66-
groupId group
67-
artifactId project.ext.artifactId
68-
version version
69-
from components.java
7045
}
71-
}
72-
repositories {
73-
maven {
74-
name = "mavencentral"
75-
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
76-
credentials {
77-
username sonatypeUsername
78-
password sonatypePassword
46+
organization {
47+
name = 'Google, Inc.'
48+
url = 'http://www.google.com'
49+
}
50+
issueManagement {
51+
system = 'GitHub Issues'
52+
url = 'http://github.com/googlemaps/java-fleetengine-auth/issues'
53+
}
54+
scm {
55+
connection = 'scm:git:git://github.com/googlemaps/java-fleetengine-auth.git'
56+
developerConnection = 'scm:git:ssh://github.com/googlemaps/java-fleetengine-auth.git'
57+
url = 'http://github.com/googlemaps/java-fleetengine-auth/'
58+
tag = 'HEAD'
59+
}
60+
developers {
61+
developer {
62+
id.set("google")
63+
name.set("Google Inc.")
7964
}
8065
}
8166
}
@@ -100,32 +85,3 @@ dependencies {
10085
testImplementation 'com.google.truth:truth:1.1'
10186
testImplementation 'org.mockito:mockito-core:3.12.4'
10287
}
103-
104-
signing {
105-
sign publishing.publications.authLib
106-
}
107-
108-
task javadocJar(type: Jar, dependsOn: javadoc) {
109-
archiveClassifier = 'javadoc'
110-
from 'build/docs/javadoc'
111-
}
112-
113-
task sourcesJar(type: Jar) {
114-
from sourceSets.main.allSource
115-
archiveClassifier = 'sources'
116-
}
117-
118-
artifacts {
119-
archives jar
120-
archives javadocJar
121-
archives sourcesJar
122-
}
123-
124-
java {
125-
withJavadocJar()
126-
withSourcesJar()
127-
}
128-
129-
130-
compileJava.options.encoding = 'UTF-8'
131-
javadoc.options.encoding = 'UTF-8'

0 commit comments

Comments
 (0)