aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle.kts
blob: 8b71ebc1fedad6e333b71421ed24a56e0ab4bbc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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")
	implementation("org.springframework.boot:spring-boot-starter-actuator")
	implementation("io.hypersistence:hypersistence-utils-hibernate-63:3.9.5")

	compileOnly("org.projectlombok:lombok")
	compileOnly("jakarta.persistence:jakarta.persistence-api")
	annotationProcessor("jakarta.persistence:jakarta.persistence-api")
	annotationProcessor("org.projectlombok:lombok")
	annotationProcessor("org.hibernate.orm:hibernate-jpamodelgen:6.6.11.Final")

	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()
}