Skip to content

Commit

Permalink
feat: make platform version configurable via gradle.properties
Browse files Browse the repository at this point in the history
feat: make platform version configurable via gradle.properties
  • Loading branch information
taefi authored Apr 13, 2021
2 parents 94de545 + 7789956 commit 7628695
Show file tree
Hide file tree
Showing 5 changed files with 455 additions and 444 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Vaadin Gradle Skeleton Starter Spring Boot

This project demoes the possibility of having Vaadin 14 project in npm+webpack
mode using Gradle and Spring Boot. Please see the [Vaadin Gradle Plugin Page](https://github.com/vaadin/vaadin-gradle-plugin)
for documentation.
This project demos the possibility of having Vaadin project in npm+webpack mode using Gradle.
Please see the [Starting a Vaadin project using Gradle](https://vaadin.com/docs/latest/guide/start/gradle) for the documentation.


Prerequisites:
* Java 8 or higher
* node.js and npm. Vaadin Gradle plugin will install those for you
* node.js and npm. Vaadin Gradle plugin will install those for you
automatically (handy for CI), or you can install it to your OS:
* Windows: [node.js Download site](https://nodejs.org/en/download/) - use the .msi 64-bit installer
* Linux: `sudo apt install npm`
Expand All @@ -18,7 +18,7 @@ Prerequisites:
* The [v14](https://github.com/vaadin/base-starter-spring-gradle) branch (the default one)
contains the example app for Vaadin 14
* The [master](https://github.com/vaadin/base-starter-spring-gradle/tree/master) branch
contains the example app for Vaadin 17
contains the example app for Vaadin 19

## Running With Spring Boot via Gradle In Development Mode

Expand Down Expand Up @@ -52,9 +52,8 @@ Run the following command in this repo:
./gradlew -Pvaadin.productionMode
```

That will build this app in production mode as a runnable jar archive; please find the
jar file in `build/libs/base-starter-spring-gradle*.jar`. You can run the JAR file
with:
That will build this app in production mode as a runnable jar archive; please find the jar file in `build/libs/base-starter-spring-gradle*.jar`.
You can run the JAR file with:

```bash
cd build/libs/
Expand All @@ -65,8 +64,7 @@ Now you can open the [http://localhost:8080](http://localhost:8080) with your br

### Building In Production On CI

Usually the CI images will not have node.js+npm available. However, Vaadin Gradle Plugin
will download it for you automatically, there is no need for you to do anything.
Usually the CI images will not have node.js+npm available. However, Vaadin Gradle Plugin will download it for you automatically, there is no need for you to do anything.
To build your app for production in CI, just run:

```bash
Expand Down
11 changes: 5 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
id 'org.springframework.boot' version '2.2.4.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
id 'com.vaadin' version '0.20.0.0.alpha3'
id 'com.vaadin' version '20.0.0.alpha6'
}

defaultTasks("clean", "build")
Expand All @@ -20,10 +20,6 @@ repositories {
mavenCentral()
}

ext {
set('vaadinVersion', "19.0.1")
}

configurations {
developmentOnly
runtimeClasspath {
Expand All @@ -41,14 +37,17 @@ dependencies {

dependencyManagement {
imports {
mavenBom "com.vaadin:vaadin-bom:${vaadinVersion}"
mavenBom "com.vaadin:vaadin-bom:$vaadinVersion"
}
}

test {
useJUnitPlatform()
}

// The following pnpmEnable = true is not needed as pnpm is used by default,
// this is just an example of how to configure the Gradle Vaadin Plugin:
// for more configuration options please see: https://vaadin.com/docs/latest/guide/start/gradle/#all-options
vaadin {
pnpmEnable = true
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vaadinVersion=19.0.4
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@vaadin/vaadin-icons": "4.3.2",
"@vaadin/vaadin-split-layout": "4.3.0",
"@vaadin/vaadin-combo-box": "6.0.1",
"@vaadin/vaadin-core-shrinkwrap": "19.0.1",
"@vaadin/vaadin-core-shrinkwrap": "19.0.4",
"@vaadin/vaadin-upload": "5.0.0",
"@vaadin/vaadin-dialog": "2.5.2",
"@vaadin/vaadin-select": "3.0.0",
Expand Down Expand Up @@ -69,7 +69,7 @@
"workbox-precaching": "5.1.4",
"webpack-manifest-plugin": "3.0.0"
},
"hash": "3f86db7027473e37060a67800d511adaf594471b11c6fc6e5cae14bd15e4c31e"
"hash": "1298ded2b0c003a9653da7880b46711b95a040e8fcb625acc979d94b49654696"
},
"dependencies": {
"lit-element": "2.3.1",
Expand All @@ -81,7 +81,7 @@
"@vaadin/vaadin-icons": "4.3.2",
"@vaadin/vaadin-split-layout": "4.3.0",
"@vaadin/vaadin-combo-box": "6.0.1",
"@vaadin/vaadin-core-shrinkwrap": "19.0.1",
"@vaadin/vaadin-core-shrinkwrap": "19.0.4",
"@vaadin/vaadin-upload": "5.0.0",
"@vaadin/vaadin-dialog": "2.5.2",
"@vaadin/vaadin-select": "3.0.0",
Expand Down
Loading

0 comments on commit 7628695

Please sign in to comment.