2024-06-06 15:45:46 +00:00
|
|
|
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'
|
2024-06-20 20:05:15 +00:00
|
|
|
id 'com.vaadin' version '24.3.3'
|
2024-06-14 15:41:12 +00:00
|
|
|
id 'org.graalvm.buildtools.native' version '0.10.2'
|
2024-06-06 15:45:46 +00:00
|
|
|
}
|
2024-06-20 22:27:52 +00:00
|
|
|
group = 'com.ModeratorElection'
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
2024-06-06 15:45:46 +00:00
|
|
|
|
|
|
|
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") }
|
|
|
|
}
|
|
|
|
|
2024-06-19 15:04:54 +00:00
|
|
|
ext {
|
2024-06-20 20:05:15 +00:00
|
|
|
set('vaadinVersion', '24.3.3')
|
2024-06-19 15:04:54 +00:00
|
|
|
}
|
|
|
|
|
2024-06-06 15:45:46 +00:00
|
|
|
configurations {
|
|
|
|
developmentOnly
|
|
|
|
runtimeClasspath {
|
|
|
|
extendsFrom developmentOnly
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-06-19 15:04:54 +00:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
|
|
implementation 'com.vaadin:vaadin-spring-boot-starter'
|
2024-06-06 15:45:46 +00:00
|
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
|
|
testImplementation('org.springframework.boot:spring-boot-starter-test') {
|
|
|
|
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
|
|
|
}
|
2024-06-19 15:04:54 +00:00
|
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
2024-06-06 15:45:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencyManagement {
|
|
|
|
imports {
|
|
|
|
mavenBom "com.vaadin:vaadin-bom:$vaadinVersion"
|
|
|
|
}
|
|
|
|
}
|
2024-06-13 10:33:25 +00:00
|
|
|
|
2024-06-19 15:04:54 +00:00
|
|
|
tasks.named('test') {
|
2024-06-13 10:33:25 +00:00
|
|
|
useJUnitPlatform()
|
2024-06-14 15:41:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
graalvmNative {
|
|
|
|
binaries {
|
|
|
|
main {
|
2024-06-20 20:05:15 +00:00
|
|
|
mainClass = 'com.ModeratorElection.MEApplication'
|
2024-06-20 13:09:08 +00:00
|
|
|
fallback = false
|
2024-06-14 15:41:12 +00:00
|
|
|
imageName.set('ModeratorElection')
|
2024-06-20 20:05:15 +00:00
|
|
|
//javaLauncher @JavaExec :: Configures the java executable to be used to run the tests.
|
2024-06-14 15:41:12 +00:00
|
|
|
javaLauncher.set(javaToolchains.launcherFor {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
//vendor.set(JvmVendorSpec.GRAAL_VM)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
testSupport = false
|
|
|
|
toolchainDetection = false
|
|
|
|
}
|
|
|
|
|
2024-06-20 20:05:15 +00:00
|
|
|
//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'
|
|
|
|
}
|