|
26 | 26 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
27 | 27 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
28 | 28 |
|
29 |
| - <mainClass>software.xdev.Application</mainClass> |
| 29 | + <mainClass>software.xdev.vaadin.Application</mainClass> |
| 30 | + |
| 31 | + <!-- Dependency-Versions --> |
| 32 | + <vaadin.version>24.5.6</vaadin.version> |
| 33 | + |
| 34 | + <org.springframework.boot.version>3.4.0</org.springframework.boot.version> |
30 | 35 | </properties>
|
31 | 36 |
|
| 37 | + <dependencyManagement> |
| 38 | + <dependencies> |
| 39 | + <dependency> |
| 40 | + <groupId>com.vaadin</groupId> |
| 41 | + <artifactId>vaadin-bom</artifactId> |
| 42 | + <type>pom</type> |
| 43 | + <scope>import</scope> |
| 44 | + <version>${vaadin.version}</version> |
| 45 | + </dependency> |
| 46 | + |
| 47 | + <!-- Spring Boot --> |
| 48 | + <!-- This bom provides versions for ~500 dependencies --> |
| 49 | + <!-- Nearly at the end so that it doesn't accidentally overwrite other versions --> |
| 50 | + <dependency> |
| 51 | + <groupId>org.springframework.boot</groupId> |
| 52 | + <artifactId>spring-boot-dependencies</artifactId> |
| 53 | + <version>${org.springframework.boot.version}</version> |
| 54 | + <type>pom</type> |
| 55 | + <scope>import</scope> |
| 56 | + </dependency> |
| 57 | + </dependencies> |
| 58 | + </dependencyManagement> |
| 59 | + |
32 | 60 | <dependencies>
|
| 61 | + <dependency> |
| 62 | + <groupId>com.vaadin</groupId> |
| 63 | + <artifactId>vaadin-core</artifactId> |
| 64 | + <exclusions> |
| 65 | + <exclusion> |
| 66 | + <groupId>com.vaadin</groupId> |
| 67 | + <artifactId>hilla-dev</artifactId> |
| 68 | + </exclusion> |
| 69 | + </exclusions> |
| 70 | + </dependency> |
33 | 71 | <dependency>
|
34 | 72 | <groupId>software.xdev</groupId>
|
35 | 73 | <artifactId>template-placeholder</artifactId>
|
36 | 74 | <version>${project.version}</version>
|
37 | 75 | </dependency>
|
| 76 | + |
| 77 | + <!-- Spring --> |
| 78 | + <dependency> |
| 79 | + <groupId>com.vaadin</groupId> |
| 80 | + <artifactId>vaadin-spring-boot-starter</artifactId> |
| 81 | + <exclusions> |
| 82 | + <exclusion> |
| 83 | + <groupId>com.vaadin</groupId> |
| 84 | + <artifactId>hilla</artifactId> |
| 85 | + </exclusion> |
| 86 | + </exclusions> |
| 87 | + </dependency> |
| 88 | + <!-- Temporarily excluded by Vaadin due to "security vulnerability" --> |
| 89 | + <dependency> |
| 90 | + <groupId>org.yaml</groupId> |
| 91 | + <artifactId>snakeyaml</artifactId> |
| 92 | + </dependency> |
| 93 | + <dependency> |
| 94 | + <groupId>org.springframework.boot</groupId> |
| 95 | + <artifactId>spring-boot-devtools</artifactId> |
| 96 | + <optional>true</optional> |
| 97 | + </dependency> |
38 | 98 | </dependencies>
|
39 | 99 |
|
40 | 100 | <build>
|
41 | 101 | <finalName>${project.artifactId}</finalName>
|
| 102 | + |
| 103 | + <pluginManagement> |
| 104 | + <plugins> |
| 105 | + <plugin> |
| 106 | + <groupId>org.springframework.boot</groupId> |
| 107 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 108 | + <version>${org.springframework.boot.version}</version> |
| 109 | + </plugin> |
| 110 | + </plugins> |
| 111 | + </pluginManagement> |
42 | 112 |
|
43 | 113 | <plugins>
|
| 114 | + <plugin> |
| 115 | + <groupId>com.vaadin</groupId> |
| 116 | + <artifactId>vaadin-maven-plugin</artifactId> |
| 117 | + <version>${vaadin.version}</version> |
| 118 | + <executions> |
| 119 | + <execution> |
| 120 | + <goals> |
| 121 | + <goal>prepare-frontend</goal> |
| 122 | + </goals> |
| 123 | + </execution> |
| 124 | + </executions> |
| 125 | + </plugin> |
44 | 126 | <plugin>
|
45 | 127 | <groupId>org.apache.maven.plugins</groupId>
|
46 | 128 | <artifactId>maven-compiler-plugin</artifactId>
|
|
52 | 134 | </compilerArgs>
|
53 | 135 | </configuration>
|
54 | 136 | </plugin>
|
55 |
| - <plugin> |
56 |
| - <groupId>org.apache.maven.plugins</groupId> |
57 |
| - <artifactId>maven-assembly-plugin</artifactId> |
58 |
| - <version>3.7.1</version> |
59 |
| - <configuration> |
60 |
| - <archive> |
61 |
| - <manifest> |
62 |
| - <mainClass>${mainClass}</mainClass> |
63 |
| - </manifest> |
64 |
| - <manifestEntries> |
65 |
| - <Multi-Release>true</Multi-Release> |
66 |
| - </manifestEntries> |
67 |
| - </archive> |
68 |
| - <descriptorRefs> |
69 |
| - <descriptorRef>jar-with-dependencies</descriptorRef> |
70 |
| - </descriptorRefs> |
71 |
| - <appendAssemblyId>false</appendAssemblyId> |
72 |
| - </configuration> |
73 |
| - <executions> |
74 |
| - <execution> |
75 |
| - <id>make-assembly</id> <!-- this is used for inheritance merges --> |
76 |
| - <phase>package</phase> <!-- bind to the packaging phase --> |
77 |
| - <goals> |
78 |
| - <goal>single</goal> |
79 |
| - </goals> |
80 |
| - </execution> |
81 |
| - </executions> |
82 |
| - </plugin> |
83 | 137 | </plugins>
|
84 | 138 | </build>
|
| 139 | + |
| 140 | + <profiles> |
| 141 | + <profile> |
| 142 | + <id>production</id> |
| 143 | + <dependencies> |
| 144 | + <!-- Exclude development dependencies from production --> |
| 145 | + <dependency> |
| 146 | + <groupId>com.vaadin</groupId> |
| 147 | + <artifactId>vaadin-core</artifactId> |
| 148 | + <exclusions> |
| 149 | + <exclusion> |
| 150 | + <groupId>com.vaadin</groupId> |
| 151 | + <artifactId>vaadin-dev</artifactId> |
| 152 | + </exclusion> |
| 153 | + </exclusions> |
| 154 | + </dependency> |
| 155 | + </dependencies> |
| 156 | + <build> |
| 157 | + <plugins> |
| 158 | + <plugin> |
| 159 | + <groupId>com.vaadin</groupId> |
| 160 | + <artifactId>vaadin-maven-plugin</artifactId> |
| 161 | + <version>${vaadin.version}</version> |
| 162 | + <executions> |
| 163 | + <execution> |
| 164 | + <goals> |
| 165 | + <goal>prepare-frontend</goal> |
| 166 | + <goal>build-frontend</goal> |
| 167 | + </goals> |
| 168 | + </execution> |
| 169 | + </executions> |
| 170 | + </plugin> |
| 171 | + <plugin> |
| 172 | + <groupId>org.springframework.boot</groupId> |
| 173 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 174 | + <configuration> |
| 175 | + <mainClass>${mainClass}</mainClass> |
| 176 | + </configuration> |
| 177 | + <executions> |
| 178 | + <execution> |
| 179 | + <id>repackage</id> |
| 180 | + <goals> |
| 181 | + <goal>repackage</goal> |
| 182 | + </goals> |
| 183 | + <phase>package</phase> |
| 184 | + </execution> |
| 185 | + </executions> |
| 186 | + </plugin> |
| 187 | + </plugins> |
| 188 | + </build> |
| 189 | + </profile> |
| 190 | + </profiles> |
85 | 191 | </project>
|
0 commit comments