This repository was archived by the owner on Jun 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathbuild.gradle
More file actions
119 lines (107 loc) · 4.7 KB
/
build.gradle
File metadata and controls
119 lines (107 loc) · 4.7 KB
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
/*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'net.ltgt.apt' version '0.8'
}
configurations {
include
compile.extendsFrom include
}
jar {
from {
configurations.include.collect { it.isDirectory() ? it : zipTree(it) }
}
}
def annotations = [
"AnnotationBoolean.java",
"Api.java",
"ApiAuth.java",
"ApiCacheControl.java",
"ApiClass.java",
"ApiFrontendLimitRule.java",
"ApiFrontendLimits.java",
"ApiIssuer.java",
"ApiIssuerAudience.java",
"ApiMethod.java",
"ApiMethodCacheControl.java",
"ApiNamespace.java",
"ApiReference.java",
"ApiResourceProperty.java",
"ApiTransformer.java",
"Authenticator.java",
"DefaultValue.java",
"PeerAuthenticator.java",
"AuthLevel.java",
"Transformer.java",
]
def apiTypes = [
"DataAndTime.java",
"SimpleData.java",
]
// Generates a Javadoc for types meant to be used by API producers
task siteJavadoc(type: Javadoc) {
source = annotations.collect({ "src/main/java/com/google/api/server/spi/config/${it}" }) +
apiTypes.collect({ "src/main/java/com/google/api/server/spi/types" })
destinationDir = file("${project.docsDir}/site-docs")
}
configureMaven(project, 'Endpoints Framework', 'A framework for building RESTful web APIs.')
task copyTestResources(type: Copy) {
from "${projectDir}/src/test/resources"
into "${buildDir}/classes/test"
}
processTestResources.dependsOn copyTestResources
dependencies {
include(project(":discovery-client")) {
// We already include all of the dependencies needed for the discovery
// client, and they are often newer versions. Leaving this out can cause
// Android Studio to confuse different versions of Jackson 2 and Guava,
// leading to test failures.
transitive = false
}
compile group: 'com.google.guava', name: 'guava', version: guavaVersion
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: jacksonVersion
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: jacksonVersion
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jacksonVersion
compile group: 'com.google.appengine', name: 'appengine-api-1.0-sdk', version: appengineVersion
compile group: 'com.google.flogger', name: 'flogger', version: floggerVersion
runtime group: 'com.google.flogger', name: 'flogger-system-backend', version: floggerVersion
compile(group: 'com.google.http-client', name: 'google-http-client-jackson2', version: apiclientVersion) {
exclude group: 'com.google.guava', module: 'guava-jdk5'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
}
compile(group: 'com.google.api-client', name: 'google-api-client', version: apiclientVersion) {
exclude group: 'com.google.guava', module: 'guava-jdk5'
}
compile(group: 'com.google.api-client', name: 'google-api-client-appengine', version: apiclientVersion) {
exclude group: 'com.google.guava', module: 'guava-jdk5'
}
compile group: 'com.google.code.findbugs', name: 'jsr305', version: findbugsVersion
compile group: 'commons-fileupload', name: 'commons-fileupload', version: fileUploadVersion
compile group: 'io.swagger', name: 'swagger-models', version: swaggerVersion
compile group: 'io.swagger', name: 'swagger-core', version: swaggerVersion
compile group: 'org.slf4j', name: 'slf4j-nop', version: slf4jVersion
compileOnly group: 'javax.servlet', name: 'servlet-api', version: servletVersion
compileOnly "com.google.auto.value:auto-value:1.2"
apt "com.google.auto.value:auto-value:1.2"
testCompile project(':test-utils')
testCompile group: 'junit', name: 'junit', version: junitVersion
testCompile group: 'org.mockito', name: 'mockito-core', version: mockitoVersion
testCompile group: 'com.google.truth', name: 'truth', version: truthVersion
testCompile group: 'com.google.appengine', name: 'appengine-testing', version: appengineVersion
testCompile group: 'com.google.appengine', name: 'appengine-api-stubs', version: appengineVersion
testCompile group: 'org.springframework', name: 'spring-test', version: springtestVersion
testCompile group: 'com.google.guava', name: 'guava-testlib', version: guavaVersion
}