Skip to content

Upgrade Groovy to 5.0.5 (Java 11+ required) - #79

Merged
royteeuwen merged 6 commits into
mainfrom
feature/upgrade-groovy-5
Jun 12, 2026
Merged

Upgrade Groovy to 5.0.5 (Java 11+ required)#79
royteeuwen merged 6 commits into
mainfrom
feature/upgrade-groovy-5

Conversation

@royteeuwen

Copy link
Copy Markdown
Contributor
  • Bump groovy.version 4.0.31 -> 5.0.5
  • Raise maven.compiler.source/target from 1.8 to 11 (Groovy 5 requires JDK 11+)
  • Bump exported API package versions to 20.0.0 to satisfy bnd-baseline
  • Update README compatibility section: 20.x requires Java 11/17/21, 19.x remains the line for Java 8 environments
  • Bump project version to 20.0.0-SNAPSHOT

@royteeuwen
royteeuwen requested a review from bdhoine May 4, 2026 06:05
Base automatically changed from feature/upgrade-groovy-4.0.30 to main May 4, 2026 19:06
@royteeuwen
royteeuwen force-pushed the feature/upgrade-groovy-5 branch 5 times, most recently from 08d8aa2 to 91f23ed Compare May 5, 2026 20:18
royteeuwen added 4 commits May 5, 2026 22:31
- Bump groovy.version 4.0.31 -> 5.0.5
- Raise maven.compiler.source/target from 1.8 to 11 (Groovy 5
  requires JDK 11+)
- Bump exported API package versions to 20.0.0
- Update README compatibility section: 20.x requires Java 11/17/21,
  19.x remains the line for Java 8 environments
- Bump project version to 20.0.0-SNAPSHOT
Sling Starter ships a singleton config for
org.apache.felix.hc.generalchecks.ServicesCheck (the systemalive check).
Felix Configurator rejects mixing singleton + factory configs for the
same base PID, so our factory config (~groovyconsole) was never
materialized as an HC instance — silently failing to provide a
groovyconsole-tagged health check at all.

Removing the broken config. Bundle consumers that want a Groovy Console
readiness check can register their own HealthCheck service in
their environment if needed.
Sling Starter 14 hits an upstream NPE in Felix HTTP Jetty12 1.1.8
(WhiteboardContextHandler.getRegistry() null during a config update
mid-startup) that intermittently corrupts the whiteboard registry,
returning 404 for /system/health.json and any other whiteboard-managed
servlets. Polling Felix HC for readiness is therefore unreliable.

Switching the @BeforeAll wait to a no-op script POST against
/bin/groovyconsole/post (Sling Engine routing, unaffected by the bug)
plus a 15s stability window so we don't fire tests during the bundle
refresh cascade. 300s overall timeout covers the slow-install variant
where bundle resolution retries before the groovy host gets refreshed
to 5.0.5.
@royteeuwen
royteeuwen force-pushed the feature/upgrade-groovy-5 branch from 91f23ed to ac60ee4 Compare May 5, 2026 20:31
@sonarqubecloud

sonarqubecloud Bot commented May 5, 2026

Copy link
Copy Markdown

Sling Starter 14 ships org.apache.felix.http.jetty12 1.1.8, which
intermittently fails IT startup. Add a jetty12 feature file pinning
1.2.0 and an artifactsOverrides HIGHEST rule so it wins the clash.
Remove once we move to Sling Starter 15.
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@royteeuwen
royteeuwen merged commit 2127872 into main Jun 12, 2026
4 checks passed
@royteeuwen
royteeuwen deleted the feature/upgrade-groovy-5 branch June 12, 2026 19:38
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.

1 participant