IevlewaMD_PIbd-21_InternetP.../build.gradle

51 lines
1.4 KiB
Groovy
Raw Permalink Normal View History

2024-03-13 19:43:56 +04:00
plugins {
2024-05-22 13:36:36 +04:00
id 'java'
id 'org.springframework.boot' version '3.2.5'
id 'io.spring.dependency-management' version '1.1.4'
2024-03-13 19:43:56 +04:00
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
2024-05-10 15:16:24 +04:00
defaultTasks 'bootRun'
jar {
2024-05-22 13:36:36 +04:00
enabled = false
2024-05-10 15:16:24 +04:00
}
bootJar {
archiveFileName = String.format('%s-%s.jar', rootProject.name, version)
}
assert System.properties['java.specification.version'] == '17' || '21'
2024-03-13 19:43:56 +04:00
java {
2024-05-22 13:36:36 +04:00
sourceCompatibility = '17'
2024-03-13 19:43:56 +04:00
}
repositories {
2024-05-22 13:36:36 +04:00
mavenCentral()
2024-03-13 19:43:56 +04:00
}
dependencies {
2024-05-22 13:36:36 +04:00
implementation 'org.springframework.boot:spring-boot-starter-web'
2024-05-23 17:04:39 +04:00
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.modelmapper:modelmapper:3.2.0'
2024-03-13 19:43:56 +04:00
2024-05-23 17:04:39 +04:00
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'com.h2database:h2:2.2.224'
2024-05-10 15:16:24 +04:00
2024-05-22 13:36:36 +04:00
implementation 'org.springframework.boot:spring-boot-devtools'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:3.3.0'
runtimeOnly 'org.webjars.npm:bootstrap:5.3.3'
runtimeOnly 'org.webjars.npm:bootstrap-icons:1.11.3'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
2024-05-23 17:04:39 +04:00
testImplementation 'org.springframework.boot:spring-boot-starter-test'
2024-03-13 19:43:56 +04:00
}
tasks.named('test') {
2024-05-22 13:36:36 +04:00
useJUnitPlatform()
}