File tree 14 files changed +73
-18
lines changed
14 files changed +73
-18
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,33 @@ plugins {
20
20
id ' nebula.release'
21
21
}
22
22
23
+ // Required with spotless v6+
24
+ // See https://github.com/diffplug/spotless/issues/984 for details
25
+ spotless {
26
+ predeclareDepsFromBuildscript()
27
+ }
28
+
29
+ // Need to predeclare every configuration used with spotless
30
+ spotlessPredeclare {
31
+ java {
32
+ googleJavaFormat(" 1.9" )
33
+ }
34
+ groovyGradle {
35
+ greclipse()
36
+ }
37
+ }
38
+
23
39
// Format the root build too.
24
40
spotless {
25
41
groovyGradle {
26
42
target ' *.gradle' // default target of groovyGradle
27
43
greclipse()
28
44
licenseHeaderFile rootProject. file(' buildscripts/spotless.license.gradle' ), ' (import|pluginManagement)'
29
45
}
46
+ yaml {
47
+ target " *.yaml"
48
+ licenseHeaderFile rootProject. file(' buildscripts/spotless.license.yaml' ), ' ([a-zA-Z]*:)'
49
+ }
30
50
}
31
51
32
52
// Configure release mechanism.
@@ -90,6 +110,10 @@ subprojects {
90
110
greclipse()
91
111
licenseHeaderFile rootProject. file(' buildscripts/spotless.license.gradle' ), ' (import|plugins|description)'
92
112
}
113
+ yaml {
114
+ target " *.yaml"
115
+ licenseHeaderFile rootProject. file(' buildscripts/spotless.license.yaml' ), ' ([a-zA-Z]*:)'
116
+ }
93
117
}
94
118
95
119
// Make sure test failures include exception error messages for correction.
Original file line number Diff line number Diff line change
1
+ # Copyright 2023 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
+ # http://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.
Original file line number Diff line number Diff line change 1
- # Copyright 2022 Google
1
+ # Copyright 2023 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
-
15
14
steps :
16
15
# Generate shadowJar for the instrumented test server
17
16
- name : " gradle:8.0.2-jdk11"
Original file line number Diff line number Diff line change 1
- # Copyright 2022 Google
1
+ # Copyright 2023 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
-
15
14
steps :
16
15
# Wait for the image to exist
17
16
- name : " docker"
Original file line number Diff line number Diff line change 1
- # Copyright 2022 Google
1
+ # Copyright 2023 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
-
15
14
steps :
16
15
# Wait for the image to exist
17
16
- name : " docker"
Original file line number Diff line number Diff line change 1
- # Copyright 2021 Google
1
+ # Copyright 2023 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
-
15
14
steps :
16
15
# Wait for the image to exist
17
16
- name : " docker"
Original file line number Diff line number Diff line change 1
- # Copyright 2021 Google
1
+ # Copyright 2023 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.
5
5
# You may obtain a copy of the License at
6
6
#
7
- # http://www.apache.org/licenses/LICENSE-2.0 #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
8
9
# Unless required by applicable law or agreed to in writing, software
9
10
# distributed under the License is distributed on an "AS IS" BASIS,
10
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
12
# See the License for the specific language governing permissions and
12
13
# limitations under the License.
13
-
14
14
steps :
15
15
# Wait for the image to exist
16
16
- name : " docker"
Original file line number Diff line number Diff line change 1
- # Copyright 2021 Google
1
+ # Copyright 2023 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
-
15
14
steps :
16
15
# If the image doesn't exist, create a skip file for the next step to know
17
16
- name : " gcr.io/cloud-builders/gcloud"
Original file line number Diff line number Diff line change 1
- # Copyright 2021 Google
1
+ # Copyright 2023 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
-
15
14
steps :
16
15
# Wait for the image to exist
17
16
- name : " docker"
Original file line number Diff line number Diff line change
1
+ # Copyright 2023 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
+ # http://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.
1
14
apiVersion : batch/v1
2
15
kind : Job
3
16
metadata :
Original file line number Diff line number Diff line change 1
- #
2
1
# Copyright 2023 Google LLC
3
2
#
4
3
# Licensed under the Apache License, Version 2.0 (the "License");
12
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
12
# See the License for the specific language governing permissions and
14
13
# limitations under the License.
15
- #
16
14
apiVersion : apps/v1
17
15
kind : Deployment
18
16
metadata :
Original file line number Diff line number Diff line change
1
+ # Copyright 2023 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
+ # http://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.
1
14
apiVersion : batch/v1
2
15
kind : Job
3
16
metadata :
Original file line number Diff line number Diff line change 15
15
*/
16
16
pluginManagement {
17
17
plugins {
18
- id " com.diffplug.spotless" version " 5.9 .0"
18
+ id " com.diffplug.spotless" version " 6.18 .0"
19
19
id ' nebula.release' version ' 15.2.0'
20
20
id " com.github.johnrengelman.shadow" version " 8.1.1"
21
21
id ' com.google.cloud.tools.jib' version ' 3.1.4'
You can’t perform that action at this time.
0 commit comments