Skip to content

Commit

Permalink
chore: fix project configuration (#36)
Browse files Browse the repository at this point in the history
Moves kotlin maven plugin before Vaadin plugin otherwhise
the bytecode scanner does not find compiled classes.
Also moves frontend folder from legacy location to src/main, and updates
index.html to prevent an unecessary custom bundle creation.

Fixes #35
  • Loading branch information
mcollovati authored Dec 30, 2024
1 parent 81ff388 commit ecf58b1
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 27 deletions.
36 changes: 18 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,6 @@
<build>
<defaultGoal>spring-boot:run</defaultGoal>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-frontend</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
Expand All @@ -132,6 +114,24 @@
<jvmTarget>17</jvmTarget>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-frontend</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down
19 changes: 10 additions & 9 deletions frontend/index.html → src/main/frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<!--
This file is auto-generated by Vaadin.
-->

<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>###Project Name###</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
body, #outlet {
height: 100vh;
width: 100%;
margin: 0;
}

#outlet {
height: 100%;
}
</style>
<!-- index.ts is included here automatically (either by the dev server or during the build) -->
</head>
<body>
<!-- This outlet div is where the views are rendered -->
<div id="outlet"></div>
</body>
</html>
File renamed without changes.
File renamed without changes.

0 comments on commit ecf58b1

Please sign in to comment.