Skip to content

Commit dda04f5

Browse files
authored
[supervisor-api] don't generate java typings separately (#18426)
to avoid ditry changes
1 parent 8a8b148 commit dda04f5

File tree

4 files changed

+3
-17
lines changed

4 files changed

+3
-17
lines changed

.gitpod.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ tasks:
5252
(cd install/installer && make deps)
5353
exit 0
5454
- name: Java
55-
init: leeway run components/supervisor-api:generate-java
5655
command: |
5756
if [ -z "$RUN_GRADLE_TASK" ]; then
5857
read -r -p "Press enter to continue Java gradle task"

components/supervisor-api/BUILD.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,3 @@ packages:
77
config:
88
commands:
99
- ["echo"]
10-
- name: java
11-
type: generic
12-
srcs:
13-
- "*.proto"
14-
- "third_party/**/*.proto"
15-
- "generate-java.sh"
16-
config:
17-
commands:
18-
- ["./generate-java.sh"]
19-
scripts:
20-
- name: generate-java
21-
description: Generate Java files from Surpervisor API proto files
22-
script: ./generate-java.sh

components/supervisor-api/generate.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ local_go_protoc "$COMPONENTS_DIR"
4747
go_protoc_gateway "$COMPONENTS_DIR"
4848
./generate-java.sh
4949
update_license
50+
51+
# remove trailing whitespace
52+
find "$COMPONENTS_DIR/supervisor-api/java" -name "*.java" -type f -print0 | xargs -0 pre-commit run trailing-whitespace --files
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
packages:
22
- name: lib
33
type: generic
4-
deps:
5-
- components/supervisor-api:java
64
srcs:
75
- "**/*.java"
86
- "build.gradle"
@@ -12,5 +10,4 @@ packages:
1210
- "settings.gradle"
1311
config:
1412
commands:
15-
- ["cp", "-r", "components-supervisor-api--java/java/src/main/java", "src/main"]
1613
- ["./gradlew", "build"]

0 commit comments

Comments
 (0)