-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
131 lines (113 loc) · 3.68 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
buildscript { // Configuration for building
repositories {
mavenCentral()
}
}
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
apply plugin: 'java' // standard Java tasks
def props = new Properties()
file("version.properties").withInputStream { props.load(it) }
group 'com.google.maps'
version props.libVersion
ext.artifactId = 'fleetengine-auth'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories { // repositories for Jar's you access in your code
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots' // SNAPSHOT repository (if needed)
}
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'
}
}
}
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
}
}
}
}
dependencies {
compile 'jstl:jstl:1.2'
annotationProcessor 'com.google.auto.value:auto-value:1.6.2'
// Add dependencies here
implementation 'com.auth0:java-jwt:3.10.2'
implementation 'com.google.api:gax:1.65.1'
implementation 'com.google.api:gax-grpc:1.65.1'
implementation 'com.google.auth:google-auth-library-oauth2-http:0.26.0'
implementation 'com.google.auto.value:auto-value-annotations:1.6.2'
implementation 'com.google.guava:guava:31.0.1-jre'
implementation 'javax.annotation:javax.annotation-api:1.2'
implementation 'io.grpc:grpc-core:1.9.1'
testImplementation 'junit:junit:4.13.1'
testImplementation 'com.google.truth:truth:1.1'
testImplementation 'org.mockito:mockito-core:3.12.4'
}
signing {
sign publishing.publications.authLib
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
java {
withJavadocJar()
withSourcesJar()
}
compileJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8'