Skip to content

Commit da24a8a

Browse files
authored
Adds CI test for mvn dependency:analyze and fixes missing deps (#289)
* Add CI test for dependency:analyze * Remove unused dependencies * Fix path in dependency test file * Fix typo
1 parent 0521dbc commit da24a8a

8 files changed

Lines changed: 51 additions & 36 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
7+
}
8+
9+
env_vars: {
10+
key: "TRAMPOLINE_BUILD_FILE"
11+
value: "github/google-auth-library-java/.kokoro/dependencies.sh"
12+
}

‎google-auth-library-java/.kokoro/continuous/java10.cfg‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎google-auth-library-java/.kokoro/continuous/java9.cfg‎

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
# Copyright 2019 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
set -eo pipefail
17+
18+
cd github/google-auth-library-java/
19+
20+
# Print out Java
21+
java -version
22+
echo $JOB_TYPE
23+
24+
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
25+
26+
mvn install -DskipTests=true -B -V
27+
mvn -B dependency:analyze -DfailOnWarning=true
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
7+
}
8+
9+
env_vars: {
10+
key: "TRAMPOLINE_BUILD_FILE"
11+
value: "github/google-auth-library-java/.kokoro/dependencies.sh"
12+
}

‎google-auth-library-java/.kokoro/presubmit/java10.cfg‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎google-auth-library-java/.kokoro/presubmit/java9.cfg‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎google-auth-library-java/appengine/pom.xml‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,6 @@
4747
<groupId>com.google.auth</groupId>
4848
<artifactId>google-auth-library-oauth2-http</artifactId>
4949
</dependency>
50-
<dependency>
51-
<groupId>com.google.http-client</groupId>
52-
<artifactId>google-http-client</artifactId>
53-
</dependency>
54-
<dependency>
55-
<groupId>com.google.http-client</groupId>
56-
<artifactId>google-http-client-jackson2</artifactId>
57-
</dependency>
5850
<dependency>
5951
<groupId>com.google.appengine</groupId>
6052
<artifactId>appengine-api-1.0-sdk</artifactId>

0 commit comments

Comments
 (0)
Sponsor
SponsoredKunjungi sekarang
Promo