buildscript { repositories { mavenCentral() maven { setUrl("https://maven.vaadin.com/vaadin-prereleases") } maven { setUrl("https://repo.spring.io/milestone") } } } plugins { id 'org.springframework.boot' version '3.1.5' id 'io.spring.dependency-management' version '1.0.15.RELEASE' id 'java' id 'com.vaadin' id 'org.graalvm.buildtools.native' version '0.10.2' } repositories { mavenCentral() maven { setUrl("https://maven.vaadin.com/vaadin-prereleases") } maven { setUrl("https://repo.spring.io/milestone") } maven { setUrl("https://maven.vaadin.com/vaadin-addons") } } configurations { developmentOnly runtimeClasspath { extendsFrom developmentOnly } } dependencies { implementation('com.vaadin:vaadin-spring-boot-starter') developmentOnly 'org.springframework.boot:spring-boot-devtools' testImplementation('org.springframework.boot:spring-boot-starter-test') { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' } } dependencyManagement { imports { mavenBom "com.vaadin:vaadin-bom:$vaadinVersion" } } test{ useJUnitPlatform() } java { toolchain { languageVersion = JavaLanguageVersion.of(17) } } graalvmNative { binaries { main { imageName.set('ModeratorElection') javaLauncher.set(javaToolchains.launcherFor { languageVersion.set(JavaLanguageVersion.of(17)) //vendor.set(JvmVendorSpec.GRAAL_VM) }) } } testSupport = false toolchainDetection = false }