How to skip spotlessJava task in gradlew build

I am in the latest origin/master, no code changes except adding a port for databse.

git diff
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 303954df58..8efa6e1b3d 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -35,6 +35,8 @@ services:
   db:
     image: airbyte/db:${VERSION}
     logging: *default-logging
+    ports:
+      - "8011:5432"
     container_name: airbyte-db
     restart: unless-stopped
     environment:

But I am not able to build.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spotlessJava'.
> java.lang.reflect.InvocationTargetException

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 31s
124 actionable tasks: 95 executed, 9 from cache, 20 up-to-date

java version

java -version
openjdk version "18.0.1" 2022-04-19
OpenJDK Runtime Environment Homebrew (build 18.0.1+0)
OpenJDK 64-Bit Server VM Homebrew (build 18.0.1+0, mixed mode, sharing)

Why are you trying to build the project locally if you only edited the docker-compose file?
You should be able to run docker-compose up with your change.
Airbyte uses Java 17.

I edited docker-compose because I want to access the database and learn more about schema.

Currently, I want to make a code change, I guess I need to get a build firstly. I can run git reset --hard, but it’s not necessary. I listed out git diff is to show that my local version is aligned the master, the only change is irrelevant to the build failure.

I switched to java 17, it’s the same.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spotlessJava'.
> java.lang.reflect.InvocationTargetException

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 26s
131 actionable tasks: 92 executed, 17 from cache, 22 up-to-date
java -version                           
openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment Homebrew (build 17.0.3+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.3+0, mixed mode, sharing)
> Task :spotlessJava FAILED
Step 'removeUnusedImports' found problem in 'airbyte-analytics/src/main/java/io/airbyte/analytics/SegmentTrackingClient.java':
null
java.lang.reflect.InvocationTargetException

I guess it refers to the import of import io.airbyte.config.StandardWorkspace;.

Can you help me?

What OS are you using? Are you even with master branch? Also read our docs about the tech stack and how to develop locally: https://docs.airbyte.com/contributing-to-airbyte/developing-locally

Hi there from the Community Assistance team.
We’re letting you know about an issue we discovered with the back-end process we use to handle topics and responses on the forum. If you experienced a situation where you posted the last message in a topic that did not receive any further replies, please open a new topic to continue the discussion. In addition, if you’re having a problem and find a closed topic on the subject, go ahead and open a new topic on it and we’ll follow up with you. We apologize for the inconvenience, and appreciate your willingness to work with us to provide a supportive community.