30 lines
1.1 KiB
Groovy
30 lines
1.1 KiB
Groovy
apply plugin: 'org.springframework.boot'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
dependencies {
|
|
implementation(project(':mirror-app'))
|
|
|
|
annotationProcessor('org.springframework.boot:spring-boot-configuration-processor')
|
|
implementation('org.springframework.boot:spring-boot-starter-web')
|
|
|
|
implementation(group: 'io.swagger', name: 'swagger-annotations', version: '1.5.21')
|
|
implementation(group: 'io.springfox', name: 'springfox-swagger2', version: '2.9.2')
|
|
implementation(group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.9.2')
|
|
}
|
|
|
|
tasks.named('compileJava') {
|
|
it.dependsOn('moveSpringConfigurationMetadata')
|
|
}
|
|
|
|
tasks.register('moveSpringConfigurationMetadata').configure {
|
|
it.dependsOn('processResources')
|
|
doLast {
|
|
def metafile = file("${sourceSets.main.output.resourcesDir}/META-INF/additional-spring-configuration-metadata.json")
|
|
if (metafile.exists()) {
|
|
def metafileTo = file("${sourceSets.main.output.classesDirs.asPath}/META-INF/spring-configuration-metadata.json")
|
|
metafileTo.parentFile.mkdirs()
|
|
metafile.renameTo(metafileTo)
|
|
}
|
|
}
|
|
}
|