diff options
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..ddc859f --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,47 @@ +plugins { + java + war + id("org.springframework.boot") version "3.4.3" + id("io.spring.dependency-management") version "1.1.7" +} + +group = "ru.mrfoxygmfr" +version = "0.0.1-DEVELOPMENT" + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(23) + } +} + +configurations { + compileOnly { + extendsFrom(configurations.annotationProcessor.get()) + } +} + +repositories { + mavenCentral() +} + +dependencies { + implementation("org.springframework.boot:spring-boot-starter-thymeleaf") + implementation("org.springframework.boot:spring-boot-starter-web") + implementation("org.springframework.boot:spring-boot-starter-data-jpa") + + compileOnly("org.projectlombok:lombok") + compileOnly("jakarta.persistence:jakarta.persistence-api") + annotationProcessor("jakarta.persistence:jakarta.persistence-api") + annotationProcessor("org.projectlombok:lombok") + + runtimeOnly("org.postgresql:postgresql") + + providedRuntime("org.springframework.boot:spring-boot-starter-tomcat") + + testImplementation("org.springframework.boot:spring-boot-starter-test") + testRuntimeOnly("org.junit.platform:junit-platform-launcher") +} + +tasks.withType<Test> { + useJUnitPlatform() +} |