Skip to content

Disabled Error Prone & SpotBugs, added incremental build#2

Open
opencode-agent[bot] wants to merge 1 commit intomain-crisfrom
opencode/issue1-20260301225353
Open

Disabled Error Prone & SpotBugs, added incremental build#2
opencode-agent[bot] wants to merge 1 commit intomain-crisfrom
opencode/issue1-20260301225353

Conversation

@opencode-agent
Copy link

@opencode-agent opencode-agent bot commented Mar 1, 2026

Build optimizations applied:

  1. Disabled Error Prone by default - Removed from default compiler config (was adding 2-10x slower compilation)
  2. Disabled SpotBugs by default - Set <skip>true</skip> (was running on every compile)
  3. Added incremental compilation - Enabled <useIncrementalCompilation>true</useIncrementalCompilation>
  4. Added static-analysis profile - Use -Pstatic-analysis to enable Error Prone and SpotBugs when needed

Usage:

  • Fast build: mvn clean compile (now ~30s expected)
  • With static analysis: mvn clean compile -Pstatic-analysis

Closes #1

New%20session%20-%202026-03-01T22%3A53%3A52.820Z
opencode session  |  github run

@opencode-agent opencode-agent bot mentioned this pull request Mar 1, 2026
@vins01-4science
Copy link
Owner

/oc check build failures

@opencode-agent
Copy link
Author

opencode-agent bot commented Mar 7, 2026

Build Status: SUCCESS

The build now compiles successfully with Java 21. The initial failure was due to using Java 17 instead of Java 21 (the project requires Java 21).

Summary:

  • Initial error: RequireJavaVersion failed - needed Java 21, found Java 17
  • Fixed by using: JAVA_HOME=/usr/lib/jvm/temurin-21-jdk-amd64 mvn clean compile
  • Build completes successfully with no errors

github run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Build Time

1 participant