Skip to content

docs: update outdated Gradle information for Vaadin 25 (#6364) (CP: v25.3) - #6366

Merged
peholmst merged 1 commit into
v25.3from
cherry-pick-6364-to-v25.3-1791622053501
Oct 10, 2026
Merged

peholmst merged 1 commit into
v25.3from
cherry-pick-6364-to-v25.3-1791622053501

Conversation

@vaadin-bot

Copy link
Copy Markdown
Contributor

No description provided.

Fixes #2567.

The Getting Started Gradle page still described Vaadin 24-era
requirements and Java EE setup. This rewrites it against Vaadin 25 and
the current
[`base-starter-gradle`](https://github.com/vaadin/base-starter-gradle)
and
[`base-starter-spring-gradle`](https://github.com/vaadin/base-starter-spring-gradle)
starters.

## Getting Started › Starters › Gradle

- **Requirements**: Java 21 and Gradle 8.14, matching
`GRADLE_MINIMUM_SUPPORTED_VERSION` and the Java 21 target in
`flow-gradle-plugin`, with a link to Supported Technologies.
- **Build files**: replaces the plugins-only snippet with the setup the
starters use. The Vaadin version goes in `gradle.properties` (as the
upgrade guide already says), the plugin version in `settings.gradle`,
and the BOM in `build.gradle`. There are tabs for Spring Boot and for a
plain WAR project. Both show how `vaadin-dev` stays out of the
production build. Versions come from the `{vaadin-version}` and
`{spring-boot-version}` attributes, not a hard-coded `25.0.0`.
- **Servlet API**: drops `javax.servlet-api:3.1.0` and the
`javax:javaee-api` suggestion. Flow declares the Jakarta Servlet API as
`provided`, so the page says to add `jakarta.servlet-api:6.1.0` with
`providedCompile` only when code uses it directly.
- **Gretty**: Gretty 5 with `jetty12` (Gretty 5 is the first release
that supports Jetty 12 and Tomcat 11). The link now goes to the
maintained `gretty-gradle-plugin/gretty` project instead of the
abandoned akhikhl docs.
- **Production**: adds the "Building for Production" section the meta
description promises: `bootJar` for Spring Boot, and `build
-Pvaadin.productionMode=true` for WAR. It links to the Flow page for
details.
- **Cleanup**: removes the empty `--`/`--` block, the "gradle.build"
typo, and the "much simpler. It's also more powerful" phrasing.

## Flow › Configuration › Gradle

- Same requirements fix (it said Java 17 and Gradle 8.7), and the same
empty block removed.

## Verification

I put the documented `gradle.properties`, `settings.gradle`, and
`build.gradle` (with Vaadin 25.3.1, since the alpha on `main` isn't on
the Plugin Portal) into clones of both starters and ran them:

- `./gradlew clean build -Pvaadin.productionMode=true` (plain) and
`./gradlew clean bootJar` (Spring Boot) both succeed. The WAR and the
JAR each contain the production bundle with `productionMode: true`, and
neither contains `vaadin-dev`.
- `./gradlew appRun` starts Jetty 12.0.29 through Gretty 5.0.2, and
`./gradlew bootRun` starts the app. Both serve the app in development
mode.
- Vale reports no errors or warnings on either page.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-6366.fly.dev

Changed pages

Added content is highlighted in green; removed content is marked in red on each page.

Base branch changes

Not marked in the preview: v25.3 is a maintenance branch, not a stacked pull request branch. Everything highlighted in the preview belongs to this PR.

Built from b02dec1

@peholmst
peholmst merged commit 7b120ce into v25.3 Oct 10, 2026
9 checks passed
@peholmst
peholmst deleted the cherry-pick-6364-to-v25.3-1791622053501 branch October 10, 2026 09:21
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.

2 participants