73 lines
1.2 KiB
Groovy
73 lines
1.2 KiB
Groovy
plugins {
|
|
id 'org.springframework.boot' version '2.6.7'
|
|
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
|
|
id 'java'
|
|
}
|
|
|
|
group = 'demo'
|
|
version = '0.0.1-SNAPSHOT'
|
|
sourceCompatibility = '11'
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
/*
|
|
starter
|
|
*/
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
|
|
/*
|
|
thymeleaf
|
|
*/
|
|
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
|
|
|
|
/*
|
|
Data JPA
|
|
*/
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
|
|
/*
|
|
Lombok
|
|
*/
|
|
compileOnly 'org.projectlombok:lombok'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
|
|
/*
|
|
H2 DB
|
|
*/
|
|
runtimeOnly 'com.h2database:h2'
|
|
|
|
/*
|
|
Security
|
|
*/
|
|
implementation 'org.springframework.boot:spring-boot-starter-security:2.7.0'
|
|
|
|
/*
|
|
Validation
|
|
*/
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
|
|
/*
|
|
Jwt (JSON Web Token Support For The JVM)
|
|
*/
|
|
implementation 'io.jsonwebtoken:jjwt:0.9.1'
|
|
|
|
/*
|
|
Redis
|
|
*/
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|