95 lines
2.2 KiB
Groovy
95 lines
2.2 KiB
Groovy
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.3.1'
|
|
id 'io.spring.dependency-management' version '1.1.6'
|
|
id 'java'
|
|
id 'com.vaadin' version '24.4.4'
|
|
id 'org.graalvm.buildtools.native' version '0.10.2'
|
|
}
|
|
group = 'com.ModeratorElection'
|
|
//version = '0.0.1-SNAPSHOT'
|
|
|
|
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") }
|
|
}
|
|
|
|
ext {
|
|
set('vaadinVersion', '24.4.4')
|
|
}
|
|
|
|
configurations {
|
|
developmentOnly
|
|
runtimeClasspath {
|
|
extendsFrom developmentOnly
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
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'
|
|
}
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
|
|
dependencyManagement {
|
|
imports {
|
|
mavenBom "com.vaadin:vaadin-bom:$vaadinVersion"
|
|
}
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
jvmArgs "-Xshare:off"
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(22)
|
|
}
|
|
}
|
|
|
|
graalvmNative {
|
|
binaries {
|
|
main {
|
|
mainClass = 'com.ModeratorElection.MEApplication'
|
|
buildArgs.add("-march=native")
|
|
buildArgs.add("-R:MaxHeapSize=6442450944")
|
|
fallback = false
|
|
imageName.set('ModeratorElection')
|
|
//javaLauncher @JavaExec :: Configures the java executable to be used to run the tests.
|
|
javaLauncher.set(javaToolchains.launcherFor {
|
|
languageVersion.set(JavaLanguageVersion.of(22))
|
|
//vendor.set(JvmVendorSpec.GRAAL_VM)
|
|
})
|
|
}
|
|
}
|
|
testSupport = false
|
|
toolchainDetection = false
|
|
}
|
|
|
|
/*tasks.withType(JavaCompile) {
|
|
options.compilerArgs += ['-Xlint:deprecation']
|
|
//,'-Xlint:unchecked'
|
|
}*/
|
|
|
|
/*
|
|
task runApp(type: JavaExec) {
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
mainClass = 'package.Main'
|
|
|
|
// arguments to pass to the application
|
|
args 'membernames'
|
|
}*/
|