IP-Labs-4-semestr/build.gradle

44 lines
979 B
Groovy
Raw Normal View History

2024-04-09 10:51:57 +04:00
plugins {
id 'java'
2024-04-09 09:58:27 +04:00
id 'org.springframework.boot' version '3.2.4'
2024-04-09 10:51:57 +04:00
id 'io.spring.dependency-management' version '1.1.4'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
2024-04-19 23:41:02 +04:00
defaultTasks 'bootRun'
jar {
enabled = false
}
bootJar {
archiveFileName = String.format('%s-%s.jar', rootProject.name, version)
}
assert System.properties['java.specification.version'] == '17' || '21'
2024-04-09 10:51:57 +04:00
java {
sourceCompatibility = '17'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
2024-04-09 10:59:45 +04:00
implementation 'org.springframework.boot:spring-boot-starter-validation'
2024-04-09 10:51:57 +04:00
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
2024-04-09 10:59:45 +04:00
implementation 'org.modelmapper:modelmapper:3.2.0'
2024-04-09 10:51:57 +04:00
2024-04-19 23:41:02 +04:00
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'com.h2database:h2:2.2.224'
2024-04-09 10:51:57 +04:00
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}