-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into vaadinFilter
- Loading branch information
Showing
50 changed files
with
2,325 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
flow-tests/vaadin-spring-tests/test-spring-boot-multimodule-reload-time/README.MD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
## Spring boot multimodule reload time project | ||
|
||
Project to measure reload time of large Spring boot application. | ||
Application is partly generated by Maven plugin under `/generator` submodule (`test-spring-boot-multimodule-reload-time-generator`). | ||
See list of properties ahead to configure generator. | ||
|
||
How to build Flow for `test-spring-boot-multimodule-reload-time` locally: | ||
``` | ||
/flow | ||
$ mvn clean install -DskipTests -Pvalidation,benchmark | ||
``` | ||
|
||
How to run tests locally: | ||
|
||
``` | ||
mvn verify -pl :test-spring-boot-multimodule-reload-time-ui -Pbenchmark -Dvaadin.test.codegen.maven.plugin.routes=1000 | ||
``` | ||
|
||
### Properties for code generator | ||
|
||
`vaadin.test.codegen.maven.plugin.routes`: number of generated routes. Default is 500. | ||
|
||
`vaadin.test.codegen.maven.plugin.services.per.route`: number of generated Spring components per route. Default is 1. | ||
|
||
`vaadin.test.codegen.maven.plugin.cssimports.per.route`: number of generated | ||
@CssImport + .css combos per route. CSS files are generated | ||
in `frontend/generated-css` folder. CSS file has a rule that is used by the | ||
route. | ||
Default is 0. | ||
|
||
`vaadin.test.codegen.maven.plugin.jsmodules.per.route`: number of generated | ||
@JsModule + .js combos per route. JS files are generated | ||
in `frontend/generated-js` folder. Javascript in the file defines a simple | ||
web-component with | ||
Lit. Web component is added to the DOM of the route. Default is 0. | ||
|
||
### Other properties for the integration test | ||
|
||
`route.hierarchy.enabled`: When 'true', adds a route with hierarchical | ||
structure. | ||
Route is mapped like ' | ||
catalog/product/0' (or with alias 'catalog/prod/0'). 'false' by default. |
97 changes: 97 additions & 0 deletions
97
flow-tests/vaadin-spring-tests/test-spring-boot-multimodule-reload-time/generator/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<artifactId>test-spring-boot-multimodule-reload-time</artifactId> | ||
<groupId>com.vaadin</groupId> | ||
<version>24.2-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>test-spring-boot-multimodule-reload-time-generator</artifactId> | ||
<name>The code generator Maven plugin for a Spring boot multimodule reload | ||
time project | ||
</name> | ||
|
||
<packaging>maven-plugin</packaging> | ||
<properties> | ||
<maven.deploy.skip>true</maven.deploy.skip> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.maven</groupId> | ||
<artifactId>maven-core</artifactId> | ||
<version>${maven.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.maven</groupId> | ||
<artifactId>maven-artifact</artifactId> | ||
<version>${maven.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.maven</groupId> | ||
<artifactId>maven-plugin-api</artifactId> | ||
<version>${maven.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.maven.plugin-tools</groupId> | ||
<artifactId>maven-plugin-annotations</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-mustache</artifactId> | ||
<version>${spring.boot.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-context</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-plugin-plugin</artifactId> | ||
<version>3.9.0</version> | ||
<configuration> | ||
<skipErrorNoDescriptorsFound>true | ||
</skipErrorNoDescriptorsFound> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>mojo-descriptor</id> | ||
<phase>process-classes</phase> | ||
<goals> | ||
<goal>descriptor</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<configuration> | ||
<archive> | ||
<manifestFile> | ||
${project.build.outputDirectory}/META-INF/MANIFEST.MF | ||
</manifestFile> | ||
<index>false</index> | ||
<manifest> | ||
<addDefaultImplementationEntries>true | ||
</addDefaultImplementationEntries> | ||
</manifest> | ||
</archive> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
|
||
</project> |
Oops, something went wrong.