5
0
mirror of https://github.com/AJMicke/KickerELO.git synced 2026-03-11 13:31:02 +01:00

Add testing profile

This commit is contained in:
Anton Micke
2025-03-17 16:29:39 +01:00
committed by AJMicke
parent 6f26afdf2c
commit d7076428fd
3 changed files with 28 additions and 0 deletions

20
pom.xml
View File

@@ -20,6 +20,7 @@
<maven.compiler.target>23</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<vaadin.version>24.6.6</vaadin.version>
<spring.profiles.active>test</spring.profiles.active>
</properties>
<repositories>
@@ -52,6 +53,11 @@
<artifactId>mariadb-java-client</artifactId>
<version>3.5.2</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
@@ -81,6 +87,11 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<profiles>
<activeProfiles>${spring.profiles.active}</activeProfiles>
</profiles>
</configuration>
</plugin>
</plugins>
</build>
@@ -88,6 +99,9 @@
<profiles>
<profile>
<id>production</id>
<properties>
<spring.profiles.active>prod</spring.profiles.active>
</properties>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
@@ -121,6 +135,12 @@
</plugins>
</build>
</profile>
<profile>
<id>test</id>
<properties>
<spring.profiles.active>test</spring.profiles.active>
</properties>
</profile>
</profiles>
</project>

View File

@@ -0,0 +1,8 @@
server.port=${PORT:8080}
logging.level.org.atmosphere = warn
spring.mustache.check-template-location = false
spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.hibernate.ddl-auto=create