mirror of
https://gitee.com/270580156/weiyu.git
synced 2025-12-30 10:52:26 +00:00
67 lines
1.9 KiB
Groovy
67 lines
1.9 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.2.1'
|
|
id 'io.spring.dependency-management' version '1.1.4'
|
|
id 'org.asciidoctor.jvm.convert' version '3.3.2'
|
|
}
|
|
|
|
group = 'com.bytedesk'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
sourceCompatibility = '17'
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
ext {
|
|
set('snippetsDir', file("build/generated-snippets"))
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-freemarker'
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
// implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
|
implementation 'org.springframework.boot:spring-boot-starter-cache'
|
|
|
|
// https://mvnrepository.com/artifact/org.apache.commons/commons-pool2
|
|
// implementation 'org.apache.commons:commons-pool2:2.12.0'
|
|
|
|
// https://github.com/redis/redis-om-spring?tab=readme-ov-file
|
|
// https://mvnrepository.com/artifact/com.redis.om/redis-om-spring
|
|
// implementation 'com.redis.om:redis-om-spring:0.8.7'
|
|
|
|
// https://mvnrepository.com/artifact/redis.clients/jedis
|
|
// implementation 'redis.clients:jedis:4.4.3'
|
|
|
|
// https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui
|
|
// http://localhost:9002/swagger-ui/index.html
|
|
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
|
|
|
|
//
|
|
compileOnly 'org.projectlombok:lombok'
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
|
|
}
|
|
|
|
tasks.named('test') {
|
|
outputs.dir snippetsDir
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.named('asciidoctor') {
|
|
inputs.dir snippetsDir
|
|
dependsOn test
|
|
}
|