File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -117,13 +117,22 @@ dependencies {
117117 " kapt" (" io.vertx:vertx-codegen:$vertxVersion :processor" )
118118}
119119
120- project.tasks.all {
121- copy {
120+ // todo: this is a hack to get json-mappers.properties working correctly
121+ project.tasks {
122+ all {
123+ copy {
124+ doFirst {
125+ file(" $projectDir /src/jvmMain/resources/META-INF/vertx/json-mappers.properties" )
126+ .copyTo(file(" $buildDir /generated/source/kapt/main/META-INF/vertx/json-mappers.properties" ), overwrite = true )
127+ }
128+ }
129+ }
130+ register(" cleanProcessedResources" ) {
122131 doFirst {
123- file(" $projectDir /src/jvmMain/resources/META-INF/vertx/json-mappers.properties" )
124- .copyTo(file(" $buildDir /generated/source/kapt/main/META-INF/vertx/json-mappers.properties" ), overwrite = true )
132+ file(" $buildDir /processedResources" ).deleteRecursively()
125133 }
126134 }
135+ getByName(" jvmProcessResources" ).dependsOn(" cleanProcessedResources" )
127136}
128137
129138configure< org.jetbrains.kotlin.noarg.gradle.NoArgExtension > {
You can’t perform that action at this time.
0 commit comments