aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle.kts
diff options
context:
space:
mode:
authormrfoxygmfr <mrfoxygmfr@sch9.ru>2025-03-17 12:17:47 +0300
committermrfoxygmfr <mrfoxygmfr@sch9.ru>2025-03-17 12:17:47 +0300
commit72ba4ae3f646b12d7b02094d3d8afd77148f8083 (patch)
treec1ddaa27d18521f5b02a79c625c4a7793f00a1da /build.gradle.kts
feat: init gradle repo
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts47
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()
+}