40 lines
1.3 KiB
Groovy
40 lines
1.3 KiB
Groovy
|
|
import org.springframework.boot.gradle.plugin.SpringBootPlugin
|
||
|
|
|
||
|
|
apply plugin: 'java'
|
||
|
|
apply plugin: 'org.springframework.boot'
|
||
|
|
|
||
|
|
version = "1.0.0"
|
||
|
|
|
||
|
|
java {
|
||
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
||
|
|
targetCompatibility = JavaVersion.VERSION_21
|
||
|
|
}
|
||
|
|
|
||
|
|
repositories {
|
||
|
|
mavenCentral()
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
implementation platform(SpringBootPlugin.BOM_COORDINATES)
|
||
|
|
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
|
||
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
|
||
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
||
|
|
implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
|
||
|
|
|
||
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6'
|
||
|
|
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
|
||
|
|
runtimeOnly 'com.mysql:mysql-connector-j'
|
||
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.6'
|
||
|
|
|
||
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
|
||
|
|
testImplementation "org.junit.jupiter:junit-jupiter-params:${junitVersion}"
|
||
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||
|
|
|
||
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
|
||
|
|
}
|
||
|
|
|
||
|
|
test {
|
||
|
|
useJUnitPlatform()
|
||
|
|
}
|