File tree Expand file tree Collapse file tree 15 files changed +102
-109
lines changed
google-http-client-android-test/src/main/java/com/google/api/client/extensions/android/json
google-http-client-findbugs/google-http-client-findbugs-test/src/main/java/com/google/api/client/findbugs/test
main/java/com/example/json
test/java/com/example/json Expand file tree Collapse file tree 15 files changed +102
-109
lines changed Original file line number Diff line number Diff line change
1
+ docker :
2
+ digest : sha256:db1616f2f70823d8381d859835229e04371d14f59ac78063c5af73c55c3fffbb
3
+ image : gcr.io/repo-automation-bots/owlbot-java:latest
Original file line number Diff line number Diff line change 1
- # Copyright 2019 Google LLC
1
+ # Copyright 2021 Google LLC
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- """This script is used to synthesize generated parts of this library."""
15
14
16
- import synthtool .languages .java as java
17
-
18
- java .common_templates (excludes = [
19
- "README.md" ,
20
- "java.header" ,
21
- "checkstyle.xml" ,
22
- "license-checks.xml" ,
23
- ".github/workflows/samples.yaml" ,
24
- ])
15
+ docker :
16
+ image : " gcr.io/repo-automation-bots/owlbot-java:latest"
Original file line number Diff line number Diff line change 1
1
# Configuration for the Blunderbuss GitHub app. For more info see
2
- # https://github.com/googleapis/repo-automation-bots/tree/main /packages/blunderbuss
2
+ # https://github.com/googleapis/repo-automation-bots/tree/master /packages/blunderbuss
3
3
assign_prs_by :
4
4
- labels :
5
5
- samples
Original file line number Diff line number Diff line change 1
1
on :
2
2
push :
3
3
branches :
4
- - main
4
+ - master
5
5
pull_request :
6
6
name : ci
7
7
jobs :
8
8
units :
9
9
runs-on : ubuntu-latest
10
10
strategy :
11
11
matrix :
12
- java : [8, 11, 17 ]
12
+ java : [8, 11]
13
13
steps :
14
14
- uses : actions/checkout@v2
15
15
- uses : stCarolas/setup-maven@v4
16
16
with :
17
17
maven-version : 3.8.1
18
- - uses : actions/setup-java@v2
18
+ - uses : actions/setup-java@v1
19
19
with :
20
- distribution : zulu
21
20
java-version : ${{matrix.java}}
22
21
- run : java -version
23
22
- run : .kokoro/build.sh
30
29
- uses : stCarolas/setup-maven@v4
31
30
with :
32
31
maven-version : 3.8.1
33
- - uses : actions/setup-java@v2
32
+ - uses : actions/setup-java@v1
34
33
with :
35
- distribution : zulu
36
34
java-version : 8
37
35
- run : java -version
38
36
- run : .kokoro/build.bat
@@ -42,15 +40,14 @@ jobs:
42
40
runs-on : ubuntu-latest
43
41
strategy :
44
42
matrix :
45
- java : [8, 11, 17 ]
43
+ java : [8, 11]
46
44
steps :
47
45
- uses : actions/checkout@v2
48
46
- uses : stCarolas/setup-maven@v4
49
47
with :
50
48
maven-version : 3.8.1
51
- - uses : actions/setup-java@v2
49
+ - uses : actions/setup-java@v1
52
50
with :
53
- distribution : zulu
54
51
java-version : ${{matrix.java}}
55
52
- run : java -version
56
53
- run : .kokoro/dependencies.sh
61
58
- uses : stCarolas/setup-maven@v4
62
59
with :
63
60
maven-version : 3.8.1
64
- - uses : actions/setup-java@v2
61
+ - uses : actions/setup-java@v1
65
62
with :
66
- distribution : zulu
67
63
java-version : 8
68
64
- run : java -version
69
65
- run : .kokoro/build.sh
76
72
- uses : stCarolas/setup-maven@v4
77
73
with :
78
74
maven-version : 3.8.1
79
- - uses : actions/setup-java@v2
75
+ - uses : actions/setup-java@v1
80
76
with :
81
- distribution : zulu
82
77
java-version : 8
83
78
- run : java -version
84
79
- run : .kokoro/build.sh
Original file line number Diff line number Diff line change @@ -28,28 +28,7 @@ source ${scriptDir}/common.sh
28
28
java -version
29
29
echo $JOB_TYPE
30
30
31
- function determineMavenOpts() {
32
- local javaVersion=$(
33
- # filter down to the version line, then pull out the version between quotes,
34
- # then trim the version number down to its minimal number (removing any
35
- # update or suffix number).
36
- java -version 2>&1 | grep " version" \
37
- | sed -E ' s/^.*"(.*?)".*$/\1/g' \
38
- | sed -E ' s/^(1\.[0-9]\.0).*$/\1/g'
39
- )
40
-
41
- case $javaVersion in
42
- " 17" )
43
- # MaxPermSize is no longer supported as of jdk 17
44
- echo -n " -Xmx1024m"
45
- ;;
46
- * )
47
- echo -n " -Xmx1024m -XX:MaxPermSize=128m"
48
- ;;
49
- esac
50
- }
51
-
52
- export MAVEN_OPTS=$( determineMavenOpts)
31
+ export MAVEN_OPTS=" -Xmx1024m -XX:MaxPermSize=128m"
53
32
54
33
# this should run maven enforcer
55
34
retry_with_backoff 3 10 \
Original file line number Diff line number Diff line change 15
15
16
16
import com .google .api .client .json .JsonFactory ;
17
17
import com .google .api .client .test .json .AbstractJsonFactoryTest ;
18
-
19
18
import java .util .ArrayList ;
20
19
21
20
/**
24
23
* @author Yaniv Inbar
25
24
*/
26
25
public class AndroidJsonFactoryTest extends AbstractJsonFactoryTest {
27
-
26
+
28
27
private static final String GSON_LINE_SEPARATOR = "\n " ;
29
28
30
29
private static final String JSON_ENTRY_PRETTY =
31
30
"{" + GSON_LINE_SEPARATOR + " \" title\" : \" foo\" " + GSON_LINE_SEPARATOR + "}" ;
32
- private static final String JSON_FEED_PRETTY = "{" + GSON_LINE_SEPARATOR + " \" entries\" : ["
33
- + GSON_LINE_SEPARATOR + " {" + GSON_LINE_SEPARATOR + " \" title\" : \" foo\" "
34
- + GSON_LINE_SEPARATOR + " }," + GSON_LINE_SEPARATOR + " {"
35
- + GSON_LINE_SEPARATOR + " \" title\" : \" bar\" " + GSON_LINE_SEPARATOR + " }"
36
- + GSON_LINE_SEPARATOR + " ]" + GSON_LINE_SEPARATOR + "}" ;
31
+ private static final String JSON_FEED_PRETTY =
32
+ "{"
33
+ + GSON_LINE_SEPARATOR
34
+ + " \" entries\" : ["
35
+ + GSON_LINE_SEPARATOR
36
+ + " {"
37
+ + GSON_LINE_SEPARATOR
38
+ + " \" title\" : \" foo\" "
39
+ + GSON_LINE_SEPARATOR
40
+ + " },"
41
+ + GSON_LINE_SEPARATOR
42
+ + " {"
43
+ + GSON_LINE_SEPARATOR
44
+ + " \" title\" : \" bar\" "
45
+ + GSON_LINE_SEPARATOR
46
+ + " }"
47
+ + GSON_LINE_SEPARATOR
48
+ + " ]"
49
+ + GSON_LINE_SEPARATOR
50
+ + "}" ;
37
51
38
52
public AndroidJsonFactoryTest (String name ) {
39
53
super (name );
@@ -61,5 +75,4 @@ public final void testToPrettyString_Feed() throws Exception {
61
75
feed .entries .add (entryBar );
62
76
assertEquals (JSON_FEED_PRETTY , newFactory ().toPrettyString (feed ));
63
77
}
64
-
65
78
}
Original file line number Diff line number Diff line change @@ -26,6 +26,5 @@ public FakeTest(String name) {
26
26
super (name );
27
27
}
28
28
29
- public final void test () throws Exception {
30
- }
29
+ public final void test () throws Exception {}
31
30
}
Original file line number Diff line number Diff line change 17
17
*
18
18
* @author Yaniv Inbar
19
19
*/
20
-
21
20
package com .google .api .client .extensions .android .json ;
22
-
Original file line number Diff line number Diff line change 20
20
@ Beta
21
21
public class BetaClass {
22
22
23
- public void method () {
24
- }
23
+ public void method () {}
25
24
26
25
@ Beta
27
26
public void betaMethod () {
@@ -36,8 +35,7 @@ public BetaClass() {
36
35
37
36
int field ;
38
37
39
- @ Beta
40
- int betaField ;
38
+ @ Beta int betaField ;
41
39
42
40
@ Override
43
41
public String toString () {
Original file line number Diff line number Diff line change 19
19
/** A class which contains {@link Beta} fields. */
20
20
public class ClassWithBetaField {
21
21
22
- @ Beta
23
- public int betaField ;
22
+ @ Beta public int betaField ;
24
23
public int field ;
25
24
26
- @ Beta
27
- public static final int betaStaticField = 10 ;
25
+ @ Beta public static final int betaStaticField = 10 ;
28
26
public static final int staticField = 20 ;
29
27
30
28
public ClassWithBetaField () {
Original file line number Diff line number Diff line change 19
19
/** A class which contains {@link Beta} methods. */
20
20
public class ClassWithBetaMethod {
21
21
22
- @ Beta
23
- int betaField = 10 ;
22
+ @ Beta int betaField = 10 ;
24
23
25
24
@ Beta
26
25
public void betaMethod () {
Original file line number Diff line number Diff line change
1
+ # Copyright 2021 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ import synthtool as s
16
+ from synthtool .languages import java
17
+
18
+
19
+ for library in s .get_staging_dirs ():
20
+ # put any special-case replacements here
21
+ s .move (library )
22
+
23
+ s .remove_staging_dirs ()
24
+ java .common_templates (
25
+ excludes = [
26
+ "README.md" ,
27
+ "java.header" ,
28
+ "checkstyle.xml" ,
29
+ "license-checks.xml" ,
30
+ ".github/workflows/samples.yaml" ,
31
+ ]
32
+ )
Original file line number Diff line number Diff line change 70
70
}
71
71
],
72
72
"semanticCommits" : true ,
73
- "dependencyDashboard" : true
73
+ "dependencyDashboard" : true ,
74
+ "dependencyDashboardLabels" : [
75
+ " type: process"
76
+ ]
74
77
}
You can’t perform that action at this time.
0 commit comments