Files
gtransfer/Backend/build.gradle
2026-06-05 13:51:25 +02:00

57 lines
1.4 KiB
Groovy

plugins {
id 'java'
id 'org.springframework.boot' version '4.0.2'
id 'org.graalvm.buildtools.native' version '0.11.1'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'com.gregor-lohaus'
version = '0.0.1-SNAPSHOT'
description = 'FOSS alternative to WeTransfer'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.webjars:webjars-locator-lite'
implementation 'org.webjars.npm:htmx.org:2.0.4'
implementation 'org.webjars.npm:bootstrap:5.3.3'
implementation platform('software.amazon.awssdk:bom:2.45.1')
implementation 'software.amazon.awssdk:s3'
runtimeOnly 'org.postgresql:postgresql'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
implementation 'io.github.wasabithumb:jtoml:1.4.2'
implementation 'io.github.wasabithumb:jtoml-serializer-reflect:1.4.2'
}
graalvmNative {
binaries {
main {
buildArgs.add("--static-nolibc")
buildArgs.add("--libc=glibc")
buildArgs.add("--verbose")
}
}
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.build {
dependsOn('processAot')
dependsOn('nativeCompile')
}