mirror of
https://github.com/usatiuk/y.git
synced 2025-10-28 02:27:49 +01:00
54 lines
1.6 KiB
Groovy
54 lines
1.6 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.1.5'
|
|
id 'io.spring.dependency-management' version '1.1.3'
|
|
}
|
|
|
|
group = 'com.usatiuk.tjv.y'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
sourceCompatibility = '17'
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
implementation 'org.springframework.security:spring-security-test'
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
runtimeOnly 'com.h2database:h2'
|
|
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
// For TestRestTemplate as default client can't handle UNAUTHORIZED response
|
|
testImplementation 'org.apache.httpcomponents.client5:httpclient5:5.3'
|
|
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.2.0'
|
|
|
|
implementation 'io.jsonwebtoken:jjwt-api:0.12.3'
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.3'
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.3'
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes(
|
|
'Main-Class': 'com.usatiuk.tjv.y.server.ServerApplication'
|
|
)
|
|
}
|
|
} |