You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/flow/configuration/gradle.adoc
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ For information about using Gradle, see the link:https://docs.gradle.org/current
21
21
22
22
.Requirements
23
23
[NOTE]
24
-
The Vaadin Gradle plugin requires Java SDK 17 or later, and Gradle 8.5 or later.
24
+
The Vaadin Gradle plugin requires Java SDK 17 or later, Gradle 8.5 or later, and Node / npm (gets automatically installed).
25
25
If you plan to use Vaadin's Gradle-based starter projects, there's no need to install Gradle on your machine. A Gradle Wrapper script is included in starter projects. It manages locally the download and execution of Gradle for your project. For more information on using Gradle Wrapper, see the https://docs.gradle.org/current/userguide/gradle_wrapper.html[Official Gradle Documentation].
26
26
27
27
@@ -55,10 +55,10 @@ repositories {
55
55
56
56
The example above shows configured repositories in the following order:
57
57
58
-
* *maven central* (required) - contains Vaadin and a lot of other public libraries
59
-
* repository for *Vaadin addons*
58
+
* *Maven central* (required) - contains Vaadin and a lot of other public libraries
59
+
* repository for *Vaadin add-ons*
60
60
* repository for *Vaadin pre-releases* - not recommended for production environments
61
-
* *Gradle plugin repository* - only necessary when using Gradle community plugins, which are not available through maven central
61
+
* *Gradle plugin repository* - only necessary when using Gradle community plugins, which are not available through Maven central
62
62
63
63
You can use any Gradle repository definitions in the block. See https://docs.gradle.org/current/userguide/declaring_repositories.html[Declaring Repositories] in the Gradle documentation for more information.
64
64
@@ -194,11 +194,9 @@ dependencies {
194
194
195
195
196
196
[[pre-release]]
197
-
== Using Gradle Plugin Snapshot Versions
197
+
== Using Gradle plugin snapshot versions
198
198
199
-
A snapshot version of the plugin is pushed to the pre-release repository. This section is about trying the pre-release and snapshot versions of the Vaadin Gradle plugin itself, not Vaadin.
200
-
201
-
To use the pre-release plugin, add the `vaadin-prereleases` repository to the project [filename]`settings.gradle` file. This file is mostly used within multi-module projects, but it's useful for other configurations. Thus, if you don't already have it in your project, create a plain text file called [filename]`settings.gradle` next to your [filename]`build.gradle` file, which is normally in the project root folder.
199
+
To use the pre-release version of the Vaadin Gradle plugin, add the `vaadin-prereleases` repository to the project [filename]`settings.gradle` file. This file is mostly used within multi-module projects, but it's useful for other configurations. Thus, if you don't already have it in your project, create a plain text file called [filename]`settings.gradle` next to your [filename]`build.gradle` file, which is normally in the project root folder.
202
200
203
201
.Plugin repository in the `settings.gradle` file
204
202
----
@@ -234,6 +232,9 @@ apply plugin: 'com.vaadin'
234
232
[NOTE]
235
233
Remove the part `id 'com.vaadin' version 'xyz'` from the `plugins` block. The plugin is applied by specifying `apply plugin: 'com.vaadin'` -- as demonstrated in the preceding file extract.
236
234
235
+
.Use Stable Release Versions
236
+
[NOTE]
237
+
To avoid any inconsistencies, don't use pre-release versions in your production environment, especially snapshots. Vaadin recommends using the latest stable version.
Copy file name to clipboardExpand all lines: articles/getting-started/start/alternatives/gradle.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,13 @@ Gradle is a popular build tool for Java, Groovy, Kotlin, and other projects. It'
17
17
18
18
This page describes how to create, compile, and run a Vaadin application using the Vaadin Gradle plugin. The Gretty plugin is used to run an application in an embedded web server.
19
19
20
-
See <<{articles}/flow/configuration/gradle#,Gradle Configuration Properties>> page for various options in configuring Vaadin Gradle Plugin.
20
+
See <<{articles}/flow/configuration/gradle#,Gradle Configuration Properties>> page for various options in configuring Vaadin Gradle plugin.
21
21
22
22
For information about using Gradle, see the link:https://docs.gradle.org/current/userguide/userguide.html[Gradle User Manual].
23
23
24
24
.Requirements
25
25
[NOTE]
26
-
The Vaadin Gradle plugin requires Java SDK 17 or later, and Gradle 8.5 or later.
26
+
The Vaadin Gradle plugin requires Java SDK 17 or later, Gradle 8.5 or later, and Node / npm (gets automatically installed).
27
27
If you plan to use Vaadin's Gradle-based starter projects, there's no need to install Gradle on your machine. A Gradle Wrapper script is included in starter projects. It manages locally the download and execution of Gradle for your project. For more information on using Gradle Wrapper, see the https://docs.gradle.org/current/userguide/gradle_wrapper.html[Official Gradle Documentation].
0 commit comments