64 lines
1.4 KiB
Groovy
64 lines
1.4 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.5.3'
|
|
id 'io.spring.dependency-management' version '1.1.7'
|
|
id 'com.vaadin' version '24.8.2'
|
|
}
|
|
|
|
group = 'de.nilzbu'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url 'https://maven.vaadin.com/vaadin-addons' }
|
|
}
|
|
|
|
ext {
|
|
set('vaadinVersion', "24.8.2")
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'com.vaadin:vaadin-spring-boot-starter'
|
|
implementation("org.vaadin.crudui:crudui:7.2.0")
|
|
|
|
runtimeOnly 'com.mysql:mysql-connector-j:8.3.0'
|
|
|
|
developmentOnly 'com.h2database:h2'
|
|
|
|
compileOnly 'org.projectlombok:lombok'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
|
|
dependencyManagement {
|
|
imports {
|
|
mavenBom "com.vaadin:vaadin-bom:${vaadinVersion}"
|
|
}
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
vaadin {
|
|
productionMode = true
|
|
}
|