Skip to content

Commit b0effeb

Browse files
taeficlaude
andcommitted
docs: use dynamic version attributes in SwingBridge documentation
Replace hardcoded version numbers with AsciiDoc attributes from _vaadin-version.adoc so they stay in sync with platform updates. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dc8d445 commit b0effeb

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

articles/_vaadin-version.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
:vaadin-seven-version: 7.7.49
66
:vaadin-eight-version: 8.28.4
77
:spring-boot-version: 4.0.4
8+
:swing-bridge-version: 1.1.1

articles/tools/modernization-toolkit/swing-bridge.adoc

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ meta-description: Learn how to install and use SwingBridge
66
order: 140
77
---
88

9+
include::{articles}/_vaadin-version.adoc[]
10+
911
= [since:com.vaadin:vaadin@V25.1]#SwingBridge#
1012

1113
pass:[<!-- vale Vaadin.ProductName = NO -->]
@@ -117,19 +119,19 @@ The `applibs` directory name is case-sensitive. To use a custom directory, pass
117119
Add the following parent section, properties, and dependencies to your `pom.xml`:
118120

119121
.`pom.xml`
120-
[source,xml]
122+
[source,xml,subs="+attributes"]
121123
----
122124
<properties>
123125
<maven.compiler.source>21</maven.compiler.source>
124-
<vaadin.version>25.1.0</vaadin.version>
125-
<swing-bridge.version>1.1.0</swing-bridge.version>
126-
<swing-bridge.path>${settings.localRepository}/com/vaadin</swing-bridge.path>
126+
<vaadin.version>{vaadin-version}</vaadin.version>
127+
<swing-bridge.version>{swing-bridge-version}</swing-bridge.version>
128+
<swing-bridge.path>$\{settings.localRepository}/com/vaadin</swing-bridge.path>
127129
</properties>
128130
129131
<parent>
130132
<groupId>org.springframework.boot</groupId>
131133
<artifactId>spring-boot-starter-parent</artifactId>
132-
<version>4.0.4</version>
134+
<version>{spring-boot-version}</version>
133135
<relativePath/>
134136
</parent>
135137
@@ -138,7 +140,7 @@ Add the following parent section, properties, and dependencies to your `pom.xml`
138140
<dependency>
139141
<groupId>com.vaadin</groupId>
140142
<artifactId>vaadin-bom</artifactId>
141-
<version>${vaadin.version}</version>
143+
<version>$\{vaadin.version}</version>
142144
<type>pom</type>
143145
<scope>import</scope>
144146
</dependency>
@@ -149,17 +151,17 @@ Add the following parent section, properties, and dependencies to your `pom.xml`
149151
<dependency>
150152
<groupId>com.vaadin</groupId>
151153
<artifactId>swing-bridge-patch</artifactId>
152-
<version>${swing-bridge.version}</version>
154+
<version>$\{swing-bridge.version}</version>
153155
</dependency>
154156
<dependency>
155157
<groupId>com.vaadin</groupId>
156158
<artifactId>swing-bridge-graphics</artifactId>
157-
<version>${swing-bridge.version}</version>
159+
<version>$\{swing-bridge.version}</version>
158160
</dependency>
159161
<dependency>
160162
<groupId>com.vaadin</groupId>
161163
<artifactId>swing-bridge-flow</artifactId>
162-
<version>${swing-bridge.version}</version>
164+
<version>$\{swing-bridge.version}</version>
163165
<exclusions>
164166
<exclusion>
165167
<groupId>org.apache.logging.log4j</groupId>

0 commit comments

Comments
 (0)