meta информация о конфигурации
This commit is contained in:
18
build.gradle
18
build.gradle
@@ -19,5 +19,23 @@ dependencies {
|
|||||||
annotationProcessor('org.projectlombok:lombok')
|
annotationProcessor('org.projectlombok:lombok')
|
||||||
compileOnly('org.projectlombok:lombok')
|
compileOnly('org.projectlombok:lombok')
|
||||||
|
|
||||||
|
annotationProcessor('org.springframework.boot:spring-boot-configuration-processor')
|
||||||
implementation('org.springframework.boot:spring-boot-starter-web')
|
implementation('org.springframework.boot:spring-boot-starter-web')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"name": "maven.storage",
|
||||||
|
"type": "java.lang.String"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user