Skip to content

Commit

Permalink
Ignore output directory in generator config, so it can be used with g…
Browse files Browse the repository at this point in the history
…radle cache
  • Loading branch information
adrianskrobaczrevolut committed Dec 17, 2019
1 parent 442bf3d commit af3dabc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/kotlin/com/revolut/jooq/GenerateJooqClassesTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ open class GenerateJooqClassesTask : DefaultTask() {
var schemaToPackageMapping = emptyMap<String, String>()
@Input
var excludeFlywayTable = false
@Input
@Internal
var generatorConfig = project.provider(this::prepareGeneratorConfig)
private set

Expand Down Expand Up @@ -91,6 +91,10 @@ open class GenerateJooqClassesTask : DefaultTask() {
@Input
fun getReadinessCommand() = getImage().getReadinessCommand()

@Input
fun getCleanedGeneratorConfig() = generatorConfig.get().apply {
target.withDirectory("ignored")
}

init {
val sourceSets = project.properties["sourceSets"] as SourceSetContainer?
Expand Down

0 comments on commit af3dabc

Please sign in to comment.