You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.2 KiB

plugins {
id "org.asciidoctor.jvm.convert" version "3.3.2"
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
asciidoctorExt
}
dependencies {
implementation "$boot:spring-boot-starter-web"
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
// security
implementation "$boot:spring-boot-starter-security"
// implementation "com.auth0:java-jwt:4.4.0"
// db
// runtimeOnly "com.mysql:mysql-connector-j"
// implementation "org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:1.16"
implementation("org.springframework:spring-tx")
// jpa
// implementation "$boot:spring-boot-starter-data-jpa"
// querydsl
// implementation "com.querydsl:querydsl-jpa:5.0.0:jakarta"
// rest doc
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor'
// test
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation project(":common:core")
// implementation project(":common:config-db")
implementation project(":common:util")
implementation project(":web:security")
implementation project(":web:api-common")
implementation project(":web:api-user")
implementation project(":web:api-cns")
}
ext {
snippetsDir = file('build/generated-snippets')
}
tasks {
def isTest = gradle.startParameter.excludedTaskNames.contains('test')
if (!isTest) {
asciidoctor {
dependsOn test
inputs.dir snippetsDir
doFirst {
delete file('src/main/resources/static/docs')
}
}
}
test {
outputs.dir snippetsDir
}
bootJar {
if (!isTest) {
dependsOn asciidoctor
from("${asciidoctor.outputDir}/html5") {
into 'static/docs'
}
}
}
task copyDocument(type: Copy) {
if (!isTest) {
dependsOn asciidoctor
from file("build/docs/asciidoc")
into file("src/main/resources/static/docs")
}
}
build {
if (!isTest) {
dependsOn copyDocument
}
}
}