You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2026/08/29 10:27:12 UTC
(groovy-website) branch asf-site updated: add hero-cards to release notes
This is an automated email from the ASF dual-hosted git repository.
paulk-asert pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new c5bab42 add hero-cards to release notes
c5bab42 is described below
commit c5bab426aad7da9ed1041e4685f6f1a3a3265abd
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sat Aug 29 20:26:55 2026 +1000
add hero-cards to release notes
---
site/src/site/releasenotes/card-src/README.md | 29 +++++++
site/src/site/releasenotes/card-src/async.html | 61 +++++++++++++++
site/src/site/releasenotes/card-src/batteries.html | 82 ++++++++++++++++++++
site/src/site/releasenotes/card-src/native.html | 60 +++++++++++++++
.../src/site/releasenotes/card-src/nullsafety.html | 85 +++++++++++++++++++++
site/src/site/releasenotes/card-src/summary.html | 72 +++++++++++++++++
site/src/site/releasenotes/groovy-6.0.adoc | 12 ++-
site/src/site/releasenotes/img/groovy6_async.png | Bin 0 -> 189915 bytes
.../site/releasenotes/img/groovy6_batteries.png | Bin 0 -> 302773 bytes
site/src/site/releasenotes/img/groovy6_native.png | Bin 0 -> 205478 bytes
site/src/site/releasenotes/img/groovy6_null.png | Bin 0 -> 273609 bytes
site/src/site/releasenotes/img/groovy6_summary.png | Bin 0 -> 309567 bytes
12 files changed, 400 insertions(+), 1 deletion(-)
diff --git a/site/src/site/releasenotes/card-src/README.md b/site/src/site/releasenotes/card-src/README.md
new file mode 100644
index 0000000..02015a4
--- /dev/null
+++ b/site/src/site/releasenotes/card-src/README.md
@@ -0,0 +1,29 @@
+# Release-notes card sources
+
+The four `groovy6_*.png` cards in the parent directory are HTML pages
+screenshotted with headless Chrome:
+
+ "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless=new \
+ --disable-gpu --screenshot=../groovy6_summary.png \
+ --window-size=1176,648 --force-device-scale-factor=2 --hide-scrollbars \
+ file://$PWD/summary.html
+
+Window sizes differ per card (each is trimmed to its content), so use the
+height that matches:
+
+| source | png | window size |
+| ---------------- | ----------------------- | ----------- |
+| `summary.html` | `groovy6_summary.png` | 1176x648 |
+| `async.html` | `groovy6_async.png` | 1176x500 |
+| `batteries.html` | `groovy6_batteries.png` | 1176x672 |
+| `native.html` | `groovy6_native.png` | 1176x486 |
+| `nullsafety.html`| `groovy6_null.png` | 1176x576 |
+
+Palette matches the blog cards: background `#10141d`, panel `#161b26`,
+border `#2a3140`, accent `#6cb6ff`, good `#7ee787`/`#4caf7d`,
+warn `#f0b35e`, bad `#ffa198`/`#c26049`.
+
+Stats on the summary card are counted, not estimated -- 8 new optional
+modules and 13 incubating features from the headings in `groovy-6.0.adoc`,
+and 250+ from `@since 6.0.0` markers on public static methods in the
+runtime GDK classes. Re-check them if the release notes change.
diff --git a/site/src/site/releasenotes/card-src/async.html b/site/src/site/releasenotes/card-src/async.html
new file mode 100644
index 0000000..c3edb00
--- /dev/null
+++ b/site/src/site/releasenotes/card-src/async.html
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html><head><meta charset="utf-8"><style>
+ * { margin:0; padding:0; box-sizing:border-box; }
+ body { width:1176px; height:500px; background:#10141d;
+ font-family:-apple-system,'Segoe UI',Roboto,sans-serif; color:#e8edf4;
+ padding:40px 52px 32px; display:flex; flex-direction:column; overflow:hidden; }
+ .top { display:flex; justify-content:space-between; align-items:baseline; }
+ .kicker { color:#6cb6ff; font-size:15px; font-weight:700; letter-spacing:3.5px; }
+ .toplabel { color:#8b949e; font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:14px; }
+ h1 { font-size:40px; font-weight:800; line-height:1.2; margin-top:14px; letter-spacing:-0.5px; }
+ h1 .accent { color:#6cb6ff; }
+ .panels { display:flex; gap:24px; margin-top:22px; align-items:stretch; }
+ .panel { background:#161b26; border:1px solid #2a3140; border-radius:12px; padding:16px 20px; flex:1; }
+ .panel.bad { border-left:3px solid #c26049; }
+ .panel.good { border-left:3px solid #4caf7d; }
+ .pill { display:inline-block; font-size:12.5px; font-weight:700; letter-spacing:2.5px;
+ padding:4px 13px; border-radius:999px; margin-bottom:10px; }
+ .pill.no { color:#ffa198; border:1px solid #b25b4d; }
+ .pill.yes { color:#7ee787; border:1px solid #3f8b56; }
+ pre { font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:15px; line-height:1.8;
+ color:#e8edf4; margin-top:6px; }
+ .kw { color:#79c0ff; } .mut { color:#768390; } .amb { color:#f0b35e; }
+ .footer { display:flex; justify-content:space-between; align-items:baseline;
+ margin-top:auto; padding-top:20px; }
+ .takeaway { font-size:16.5px; color:#b7c1cc; max-width:960px; }
+ .takeaway b { color:#e8edf4; }
+ .site { color:#8b949e; font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:14px; }
+</style></head><body>
+ <div class="top">
+ <div class="kicker">APACHE GROOVY 6 · CONCURRENCY</div>
+ <div class="toplabel">async / await · incubating</div>
+ </div>
+ <h1>Concurrent code that <span class="accent">reads top to bottom</span></h1>
+ <div class="panels">
+ <div class="panel bad">
+ <span class="pill no">✗ FUTURE CHAINS</span>
+<pre><span class="kw">def</span> future = CompletableFuture
+ .supplyAsync { loadUserProfile(id) }
+ .thenCompose { profile ->
+ CompletableFuture.supplyAsync {
+ loadQuests(profile) } }
+ .thenApply { it.find { it.active } }
+
+<span class="kw">def</span> quest = future.join()</pre>
+ </div>
+ <div class="panel good">
+ <span class="pill yes">✓ GROOVY 6</span>
+<pre><span class="kw">def</span> quest = <span class="amb">await async</span> {
+ <span class="kw">def</span> profile = <span class="amb">await async</span> { loadUserProfile(id) }
+ <span class="kw">def</span> quests = <span class="amb">await async</span> { loadQuests(profile) }
+ quests.find { it.active }
+}
+
+<span class="mut">// try/catch works -- no .exceptionally()</span></pre>
+ </div>
+ </div>
+ <div class="footer">
+ <div class="takeaway"><b>Same concurrency, sequential shape.</b> Virtual threads do the work on JDK 21+, with a cached pool on 17–20.</div>
+ <div class="site">groovy.apache.org</div>
+ </div>
+</body></html>
diff --git a/site/src/site/releasenotes/card-src/batteries.html b/site/src/site/releasenotes/card-src/batteries.html
new file mode 100644
index 0000000..5074772
--- /dev/null
+++ b/site/src/site/releasenotes/card-src/batteries.html
@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<html><head><meta charset="utf-8"><style>
+ * { margin:0; padding:0; box-sizing:border-box; }
+ body { width:1176px; height:672px; background:#10141d;
+ font-family:-apple-system,'Segoe UI',Roboto,sans-serif; color:#e8edf4;
+ padding:40px 52px 32px; display:flex; flex-direction:column; overflow:hidden; }
+ .top { display:flex; justify-content:space-between; align-items:baseline; }
+ .kicker { color:#6cb6ff; font-size:15px; font-weight:700; letter-spacing:3.5px; }
+ .toplabel { color:#8b949e; font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:14px; }
+ h1 { font-size:41px; font-weight:800; line-height:1.15; margin-top:12px; letter-spacing:-0.6px; }
+ h1 .accent { color:#6cb6ff; }
+ .byline { font-size:17px; color:#8b949e; margin-top:7px; }
+ .panels { display:flex; gap:22px; margin-top:20px; flex:1; min-height:0; }
+ .panel { background:#161b26; border:1px solid #2a3140; border-radius:12px;
+ padding:15px 19px; border-left:3px solid #4caf7d; display:flex; flex-direction:column; }
+ .panel.p1 { flex:1.32; } .panel.p2 { flex:1; border-left-color:#f0b35e; }
+ .pill { display:inline-block; font-size:12px; font-weight:700; letter-spacing:2.3px;
+ padding:4px 12px; border-radius:999px; margin-bottom:9px; align-self:flex-start; }
+ .pill.a { color:#7ee787; border:1px solid #3f8b56; }
+ .pill.b { color:#f0b35e; border:1px solid #9c7a3c; }
+ pre { font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:14px; line-height:1.72;
+ color:#e8edf4; margin-top:3px; }
+ .kw { color:#79c0ff; } .ann { color:#f0b35e; } .str { color:#a5d6a1; } .mut { color:#768390; }
+ .note { font-size:14px; color:#8b949e; margin-top:auto; padding-top:10px; line-height:1.4; }
+ .strip { display:flex; gap:10px; margin-top:16px; }
+ .chip { flex:1; background:#161b26; border:1px solid #2a3140; border-radius:10px;
+ padding:9px 14px; font-size:14px; color:#b7c1cc; }
+ .chip b { color:#e8edf4; }
+ .footer { display:flex; justify-content:space-between; align-items:baseline;
+ margin-top:auto; padding-top:20px; }
+ .takeaway { font-size:16.5px; color:#b7c1cc; }
+ .takeaway b { color:#e8edf4; }
+ .site { color:#8b949e; font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:14px; }
+</style></head><body>
+ <div class="top">
+ <div class="kicker">APACHE GROOVY 6 · NEW MODULES</div>
+ <div class="toplabel">batteries included</div>
+ </div>
+ <h1>A typed HTTP client, <span class="accent">without the framework</span></h1>
+ <div class="byline">Declarative clients and Markdown parsing, straight out of the distribution</div>
+ <div class="panels">
+ <div class="panel p1">
+ <span class="pill a">GROOVY-HTTP-BUILDER · INCUBATING</span>
+<pre><span class="ann">@HttpBuilderClient</span>(<span class="str">'https://api.example.com'</span>)
+<span class="kw">interface</span> UserApi {
+ <span class="ann">@Get</span>(<span class="str">'/users/{id}'</span>)
+ User getUser(String id) <span class="mut">// path param</span>
+ <span class="ann">@Get</span>(<span class="str">'/users'</span>)
+ List<User> search(String name) <span class="mut">// ?name=...</span>
+ <span class="ann">@Post</span>(<span class="str">'/users'</span>)
+ User create(<span class="ann">@Body</span> Map user) <span class="mut">// JSON body</span>
+}
+
+<span class="kw">def</span> user = UserApi.create().getUser(<span class="str">'42'</span>)</pre>
+ <div class="note">Implementation generated at compile time; parameters mapped by
+ convention. Responses parsed to the return type you declared.</div>
+ </div>
+ <div class="panel p2">
+ <span class="pill b">GROOVY-MARKDOWN · INCUBATING</span>
+<pre><span class="kw">def</span> doc = <span class="kw">new</span> MarkdownSlurper()
+ .parseText(reply)
+
+<span class="mut">// code blocks by language,</span>
+<span class="mut">// not by counting backticks</span>
+doc.codeBlocks.findAll { it.lang == <span class="str">'groovy'</span> }
+
+<span class="mut">// the nodes under one heading</span>
+doc.section(<span class="str">'Next Steps'</span>)</pre>
+ <div class="note">Structure instead of regexes — increasingly what you want when
+ the Markdown came from an AI agent.</div>
+ </div>
+ </div>
+ <div class="strip">
+ <div class="chip"><b>groovy-csv</b> — RFC 4180, typed parsing</div>
+ <div class="chip"><b>groovy-grape-maven</b> — <code>@Grab</code> via Maven Resolver</div>
+ <div class="chip"><b>groovy-test-junit6</b> — JUnit 6 as scripts</div>
+ </div>
+ <div class="footer">
+ <div class="takeaway"><b>Eight new optional modules.</b> Reach for HTTP, CSV or Markdown without adding a framework.</div>
+ <div class="site">groovy.apache.org</div>
+ </div>
+</body></html>
diff --git a/site/src/site/releasenotes/card-src/native.html b/site/src/site/releasenotes/card-src/native.html
new file mode 100644
index 0000000..b839094
--- /dev/null
+++ b/site/src/site/releasenotes/card-src/native.html
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<html><head><meta charset="utf-8"><style>
+ * { margin:0; padding:0; box-sizing:border-box; }
+ body { width:1176px; height:486px; background:#10141d;
+ font-family:-apple-system,'Segoe UI',Roboto,sans-serif; color:#e8edf4;
+ padding:40px 52px 30px; display:flex; flex-direction:column; overflow:hidden; }
+ .top { display:flex; justify-content:space-between; align-items:baseline; }
+ .kicker { color:#6cb6ff; font-size:15px; font-weight:700; letter-spacing:3.5px; }
+ .toplabel { color:#8b949e; font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:14px; }
+ h1 { font-size:41px; font-weight:800; line-height:1.15; margin-top:12px; letter-spacing:-0.6px; }
+ h1 .accent { color:#6cb6ff; }
+ .byline { font-size:17px; color:#8b949e; margin-top:7px; }
+ .panels { display:flex; gap:22px; margin-top:20px; align-items:stretch; }
+ .panel { background:#161b26; border:1px solid #2a3140; border-radius:12px; padding:15px 19px; flex:1; }
+ .panel.bad { border-left:3px solid #c26049; }
+ .panel.good { border-left:3px solid #4caf7d; }
+ .pill { display:inline-block; font-size:12px; font-weight:700; letter-spacing:2.3px;
+ padding:4px 12px; border-radius:999px; margin-bottom:10px; }
+ .pill.no { color:#ffa198; border:1px solid #b25b4d; }
+ .pill.yes { color:#7ee787; border:1px solid #3f8b56; }
+ .line { font-size:15.5px; color:#b7c1cc; line-height:1.55; margin-bottom:7px; }
+ .line b { color:#e8edf4; }
+ .line code { font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:14.5px; color:#e8edf4; }
+ .mut { color:#768390; }
+ .footer { display:flex; justify-content:space-between; align-items:baseline;
+ margin-top:auto; padding-top:20px; }
+ .takeaway { font-size:16px; color:#b7c1cc; max-width:930px; line-height:1.45; }
+ .takeaway b { color:#e8edf4; }
+ .site { color:#8b949e; font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:14px; }
+</style></head><body>
+ <div class="top">
+ <div class="kicker">APACHE GROOVY 6 · AHEAD-OF-TIME</div>
+ <div class="toplabel">native images · incubating</div>
+ </div>
+ <h1>Dynamic Groovy, <span class="accent">compiled ahead of time</span></h1>
+ <div class="byline">Dispatch stays dynamic — the call site just links once instead of retargeting</div>
+ <div class="panels">
+ <div class="panel bad">
+ <span class="pill no">✗ THE OLD ADVICE</span>
+ <div class="line"><b>“<code>@CompileStatic</code> everything, turn indy off.”</b></div>
+ <div class="line">Which is to say: stop being dynamic.</div>
+ <div class="line">And it still didn't get you there — dynamically
+ compiled code in your <b>dependencies</b>, Groovy's own modules
+ included, crosses dynamic call sites you can't recompile.</div>
+ </div>
+ <div class="panel good">
+ <span class="pill yes">✓ GROOVY 6</span>
+ <div class="line"><b>Fully dynamic source. Stock compilation.</b></div>
+ <div class="line">No annotations, no flags — the AOT link mode
+ switches on when it detects an AOT build.</div>
+ <div class="line">It changes <b>linking, not compilation</b>, so
+ already-published indy-compiled jars come along
+ <b>without being recompiled</b>.</div>
+ </div>
+ </div>
+ <div class="footer">
+ <div class="takeaway"><b>Early days.</b> This changes how Groovy links dispatch, not one AOT toolchain — more to come in Groovy 7.</div>
+ <div class="site">groovy.apache.org</div>
+ </div>
+</body></html>
diff --git a/site/src/site/releasenotes/card-src/nullsafety.html b/site/src/site/releasenotes/card-src/nullsafety.html
new file mode 100644
index 0000000..23c1bf0
--- /dev/null
+++ b/site/src/site/releasenotes/card-src/nullsafety.html
@@ -0,0 +1,85 @@
+<!DOCTYPE html>
+<html><head><meta charset="utf-8"><style>
+ * { margin:0; padding:0; box-sizing:border-box; }
+ body { width:1176px; height:576px; background:#10141d;
+ font-family:-apple-system,'Segoe UI',Roboto,sans-serif; color:#e8edf4;
+ padding:40px 52px 30px; display:flex; flex-direction:column; overflow:hidden; }
+ .top { display:flex; justify-content:space-between; align-items:baseline; }
+ .kicker { color:#6cb6ff; font-size:15px; font-weight:700; letter-spacing:3.5px; }
+ .toplabel { color:#8b949e; font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:14px; }
+ h1 { font-size:41px; font-weight:800; line-height:1.15; margin-top:12px; letter-spacing:-0.6px; }
+ h1 .accent { color:#6cb6ff; }
+ .byline { font-size:17px; color:#8b949e; margin-top:7px; }
+ .panels { display:flex; gap:22px; margin-top:20px; }
+ .panel { background:#161b26; border:1px solid #2a3140; border-radius:12px;
+ padding:15px 19px; flex:1; display:flex; flex-direction:column; }
+ .panel.a { border-left:3px solid #4caf7d; }
+ .panel.b { border-left:3px solid #6cb6ff; }
+ .pill { display:inline-block; font-size:12px; font-weight:700; letter-spacing:2.3px;
+ padding:4px 12px; border-radius:999px; margin-bottom:9px; align-self:flex-start; }
+ .pill.a { color:#7ee787; border:1px solid #3f8b56; }
+ .pill.b { color:#6cb6ff; border:1px solid #3f6b8b; }
+ pre { font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:13.8px; line-height:1.75;
+ color:#e8edf4; margin-top:3px; }
+ .kw { color:#79c0ff; } .ann { color:#f0b35e; } .str { color:#a5d6a1; }
+ .mut { color:#768390; } .err { color:#ff8878; }
+ .note { font-size:14px; color:#8b949e; margin-top:auto; padding-top:11px; line-height:1.45; }
+ .note b { color:#b7c1cc; }
+ .dyn { margin-top:16px; background:#161b26; border:1px solid #2a3140;
+ border-left:3px solid #f0b35e; border-radius:12px; padding:11px 18px 12px; }
+ .dyntitle { font-size:13px; font-weight:700; letter-spacing:2.3px; color:#f0b35e; margin-bottom:7px; }
+ .dynrow { font-size:14.5px; color:#8b949e; line-height:1.6; }
+ .dynrow code { font-family:ui-monospace,'SF Mono',Menlo,monospace; color:#e8edf4; font-size:14px; }
+ .dynrow b { color:#b7c1cc; }
+ .footer { display:flex; justify-content:space-between; align-items:baseline;
+ margin-top:auto; padding-top:18px; }
+ .takeaway { font-size:16px; color:#b7c1cc; }
+ .takeaway b { color:#e8edf4; }
+ .site { color:#8b949e; font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:14px; }
+</style></head><body>
+ <div class="top">
+ <div class="kicker">APACHE GROOVY 6 · NULL SAFETY</div>
+ <div class="toplabel">NullChecker · contracts</div>
+ </div>
+ <h1>Null safety, <span class="accent">at the level you need</span></h1>
+ <div class="byline">Dynamic idioms that cost nothing, compile-time checking, and facts no annotation can express</div>
+ <div class="panels">
+ <div class="panel a">
+ <span class="pill a">NULLCHECKER · COMPILE-TIME</span>
+<pre><span class="ann">@Nullable</span> String findBlurb() { <span class="kw">null</span> }
+String shelve(String title) { ... }
+
+String blurb = findBlurb() <span class="err">// compile error</span>
+println shelve(findBlurb()) <span class="err">// compile error</span></pre>
+ <div class="note"><b>Non-null by default, codebase-wide.</b> With a suitable
+ compiler config script, unannotated means non-null and the strict,
+ flow-sensitive checker runs everywhere — no per-file annotations.</div>
+ </div>
+ <div class="panel b">
+ <span class="pill b">CONTRACTS · RUNTIME, AND PROVABLE</span>
+<pre><span class="ann">@Requires</span>({ a != <span class="kw">null</span> || b != <span class="kw">null</span> })
+<span class="ann">@NonNull</span> <span class="kw">static</span> String pick(String a, String b) {
+ <span class="kw">if</span> (a != <span class="kw">null</span>) <span class="kw">return</span> a
+ <span class="kw">return</span> b <span class="mut">// premise + failed guard</span>
+} <span class="mut">// ==> b != null</span></pre>
+ <div class="note"><b>There is no annotation for “at least one of these
+ is non-null”.</b> A precondition is just a boolean expression, so it
+ says so directly — checked at runtime, and provable ahead of it.</div>
+ </div>
+ </div>
+ <div class="dyn">
+ <div class="dyntitle">AND THE DYNAMIC STORY, UNCHANGED</div>
+ <div class="dynrow">
+ <code>null</code> is an object, not a hole ·
+ <b>Groovy truth</b> — <code>if (name)</code> checks null and emptiness at once ·
+ <b>safe navigation</b> <code>user?.address?.city</code> ·
+ <b>elvis</b> <code>name ?: 'Anonymous'</code> ·
+ <b>safe indexing</b> <code>list?[0]</code> ·
+ GDK methods tolerate <code>null</code>
+ </div>
+ </div>
+ <div class="footer">
+ <div class="takeaway"><b>Pick your rung.</b> Nothing here is mandatory — the dynamic idioms still cost nothing.</div>
+ <div class="site">groovy.apache.org</div>
+ </div>
+</body></html>
diff --git a/site/src/site/releasenotes/card-src/summary.html b/site/src/site/releasenotes/card-src/summary.html
new file mode 100644
index 0000000..9d29503
--- /dev/null
+++ b/site/src/site/releasenotes/card-src/summary.html
@@ -0,0 +1,72 @@
+<!DOCTYPE html>
+<html><head><meta charset="utf-8"><style>
+ * { margin:0; padding:0; box-sizing:border-box; }
+ body { width:1176px; height:648px; background:#10141d;
+ font-family:-apple-system,'Segoe UI',Roboto,sans-serif; color:#e8edf4;
+ padding:38px 52px 30px; display:flex; flex-direction:column; overflow:hidden; }
+ .top { display:flex; justify-content:space-between; align-items:baseline; }
+ .kicker { color:#6cb6ff; font-size:15px; font-weight:700; letter-spacing:3.5px; }
+ .toplabel { color:#8b949e; font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:14px; }
+ h1 { font-size:44px; font-weight:800; line-height:1.12; margin-top:10px; letter-spacing:-0.7px; }
+ h1 .accent { color:#6cb6ff; }
+ .byline { font-size:18px; color:#8b949e; margin-top:7px; letter-spacing:0.1px; }
+ .byline b { color:#b7c1cc; font-weight:600; }
+ .stats { display:flex; gap:12px; margin-top:20px; }
+ .stat { flex:1; background:#161b26; border:1px solid #2a3140; border-radius:12px;
+ border-left:3px solid #6cb6ff; padding:12px 16px; }
+ .num { font-size:31px; font-weight:800; color:#e8edf4; letter-spacing:-0.5px; line-height:1.1; }
+ .lbl { font-size:13px; color:#8b949e; margin-top:3px; line-height:1.3; }
+ .cols { display:flex; gap:22px; margin-top:18px; flex:1; min-height:0; }
+ .col { flex:1; }
+ .item { margin-bottom:11px; }
+ .h { font-size:16.5px; font-weight:700; color:#e8edf4; }
+ .h .tag { color:#7ee787; font-weight:700; }
+ .d { font-size:14.5px; color:#8b949e; line-height:1.42; margin-top:1px; }
+ .footer { display:flex; justify-content:space-between; align-items:baseline;
+ margin-top:auto; padding-top:30px; }
+ .takeaway { font-size:16px; color:#b7c1cc; }
+ .takeaway b { color:#e8edf4; }
+ .site { color:#8b949e; font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:14px; }
+</style></head><body>
+ <div class="top">
+ <div class="kicker">APACHE GROOVY 6</div>
+ <div class="toplabel">release highlights</div>
+ </div>
+ <h1>Bigger, better, faster — <span class="accent">for humans and AI</span></h1>
+ <div class="byline"><b>Concurrency you can read</b> · <b>specifications you can check</b> · <b>batteries for scripting</b></div>
+
+ <div class="stats">
+ <div class="stat"><div class="num">8</div><div class="lbl">new optional modules<br>HTTP · CSV · Markdown · Maven Grape</div></div>
+ <div class="stat"><div class="num">250+</div><div class="lbl">new GDK methods<br>and allocation-free overloads</div></div>
+ <div class="stat"><div class="num">13</div><div class="lbl">incubating features<br>shipping for feedback</div></div>
+ <div class="stat"><div class="num">17–27</div><div class="lbl">JDK versions tested<br>JDK 17 the new minimum</div></div>
+ </div>
+
+ <div class="cols">
+ <div class="col">
+ <div class="item"><div class="h">Native async/await <span class="tag">incubating</span></div>
+ <div class="d">Sequential-style concurrent code, on virtual threads. Generators, channels, structured concurrency.</div></div>
+ <div class="item"><div class="h">Integrated concurrency toolkit <span class="tag">incubating</span></div>
+ <div class="d">Agents, actors, dataflow and parallel collections in one package — callable from Java too.</div></div>
+ <div class="item"><div class="h">Designed for human and AI reasoning</div>
+ <div class="d">Contracts, <code>@Pure</code>, <code>@Modifies</code> and null checking make each method a compile-checked spec.</div></div>
+ <div class="item"><div class="h">Data and query improvements</div>
+ <div class="d">GINQ gains <code>groupby ... into</code> and SQL set operators; typed parsing across JSON, CSV, TOML, YAML and XML.</div></div>
+ </div>
+ <div class="col">
+ <div class="item"><div class="h">The safest Groovy yet</div>
+ <div class="d">Secure-by-default XML, SQL-injection checking, regex timeouts, wider <code>SecureASTCustomizer</code> coverage.</div></div>
+ <div class="item"><div class="h">Faster underneath</div>
+ <div class="d">Scoped indy invalidation, arity-cached closure calls, fewer allocations on hot paths.</div></div>
+ <div class="item"><div class="h">Sharper language ergonomics</div>
+ <div class="d"><code>val</code>, module imports, rest binders in destructuring, compound-assignment overloading.</div></div>
+ <div class="item"><div class="h">Tooling that caught up</div>
+ <div class="d">Markdown doc comments in GroovyDoc; dark mode there, in the GDK docs and in GroovyConsole; inline charts in Groovysh.</div></div>
+ </div>
+ </div>
+
+ <div class="footer">
+ <div class="takeaway"><b>Batteries included, semantics unchanged.</b> JDK 17 minimum; tested through JDK 27.</div>
+ <div class="site">groovy.apache.org</div>
+ </div>
+</body></html>
diff --git a/site/src/site/releasenotes/groovy-6.0.adoc b/site/src/site/releasenotes/groovy-6.0.adoc
index 40908a1..4a5beaf 100644
--- a/site/src/site/releasenotes/groovy-6.0.adoc
+++ b/site/src/site/releasenotes/groovy-6.0.adoc
@@ -17,6 +17,8 @@ We are currently working on beta versions of Groovy 6.0 with a goal of gathering
Some features described here as "incubating" may become stable before 6.0.0 final is released, others are expected to remain incubating for version 6. We don’t recommend using alpha versions or incubating features for production systems.
|===
+image:img/groovy6_summary.png["Groovy 6 at a glance: 8 new optional modules, 250+ new GDK methods, 13 incubating features, tested on JDK 17-27",width=800]
+
== Highlights
Groovy 6 is a big release, so the headline changes are grouped below, each linking to a fuller section further down. A few themes tie them together: closing long-standing gaps with modern Java and Kotlin, growing the batteries-included standard library and modules that make Groovy such a productive scripting language, making concurrent code readable again, and — looking ahead — turning code into specifications that people and AI tools alike can reason about.
@@ -191,11 +193,13 @@ This is the safest Groovy yet — a broad sweep of security hardening across the
- <<xml-processing,Secure-by-default XML>> parsing (XXE/DTD protections) across the XML APIs.
- SQL-injection defence in depth: the <<sql-injection-checker,`SqlInjectionChecker`>> at compile time plus `groovy-sql` rejection at runtime.
- <<regex-timeout,Regex timeouts>> (`@SafeRegex`) guard against ReDoS, alongside JSON nesting-depth limits and stricter Grape coordinate validation.
-- Sandboxing without gaps: `SecureASTCustomizer` restrictions now also cover constructors, initializer blocks, field initializers and authored code relocated into generated or synthetic members; embedders can disable `@ASTTest` when compiling source they don't control.
+- Fewer sandboxing gaps: `SecureASTCustomizer` restrictions now also cover constructors, initializer blocks, field initializers and authored code relocated into generated or synthetic members (purely generated code, such as accessors and trait bridges, remains exempt); embedders can disable `@ASTTest` when compiling source they don't control.
[[g6-new-modules]]
== New Modules
+image:img/groovy6_batteries.png["A declarative typed HTTP client and Markdown parsing, both from the distribution",width=800]
+
Groovy 6 ships eight new optional modules, plus two long-standing pieces
of core (Grape's Ivy backend and the classic call-site caching runtime)
split out into their own modules:
@@ -261,6 +265,8 @@ On JDK 21+, tasks automatically leverage virtual threads.
See also the https://groovy.apache.org/blog/groovy-async-await[async/await blog post]
for a detailed walkthrough.
+image:img/groovy6_async.png["CompletableFuture chains versus Groovy 6 async/await written in sequential style",width=800]
+
=== Before and after
Without `async`/`await`, concurrent code requires chaining futures:
@@ -1320,6 +1326,8 @@ including the complete static-member dispatch model.
[[type-checking-extensions]]
== Type Checking Extensions
+image:img/groovy6_null.png["Three levels of null handling: dynamic idioms, the NullChecker at compile time, and contracts stating facts no annotation can express",width=800]
+
Groovy's type checking is extensible, allowing you to strengthen
type checking beyond what the standard checker provides.
Groovy 6 adds support for _parameterized_ type checking extensions
@@ -3829,6 +3837,8 @@ def r = { println 'hello' } as (Runnable & Serializable)
[[native-image]]
== Dynamic Groovy in GraalVM Native Images (incubating)
+image:img/groovy6_native.png["The old advice was to compile statically with indy off; Groovy 6 runs fully dynamic source ahead-of-time",width=800]
+
Dynamic Groovy in a GraalVM native image has historically been a
non-starter: native image restricts exactly the operations Groovy's
runtime leans on -- defining classes at runtime and retargeting
diff --git a/site/src/site/releasenotes/img/groovy6_async.png b/site/src/site/releasenotes/img/groovy6_async.png
new file mode 100644
index 0000000..8f32534
Binary files /dev/null and b/site/src/site/releasenotes/img/groovy6_async.png differ
diff --git a/site/src/site/releasenotes/img/groovy6_batteries.png b/site/src/site/releasenotes/img/groovy6_batteries.png
new file mode 100644
index 0000000..9e6d234
Binary files /dev/null and b/site/src/site/releasenotes/img/groovy6_batteries.png differ
diff --git a/site/src/site/releasenotes/img/groovy6_native.png b/site/src/site/releasenotes/img/groovy6_native.png
new file mode 100644
index 0000000..4619cd3
Binary files /dev/null and b/site/src/site/releasenotes/img/groovy6_native.png differ
diff --git a/site/src/site/releasenotes/img/groovy6_null.png b/site/src/site/releasenotes/img/groovy6_null.png
new file mode 100644
index 0000000..d43f1ff
Binary files /dev/null and b/site/src/site/releasenotes/img/groovy6_null.png differ
diff --git a/site/src/site/releasenotes/img/groovy6_summary.png b/site/src/site/releasenotes/img/groovy6_summary.png
new file mode 100644
index 0000000..870df82
Binary files /dev/null and b/site/src/site/releasenotes/img/groovy6_summary.png differ