dev.monosoul.jooq.util.GetCodegenLogging.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jooq-gradle-plugin Show documentation
Show all versions of jooq-gradle-plugin Show documentation
Generates jOOQ classes using dockerized database
package dev.monosoul.jooq.util
import org.gradle.api.logging.Logger
import org.jooq.meta.jaxb.Logging
// covered by tests in artifact-tests module
fun Logger.getCodegenLogging(): Logging =
when {
isQuietEnabled && !isWarnEnabled -> Logging.ERROR
isLifecycleEnabled && !isInfoEnabled -> Logging.ERROR
isWarnEnabled && !isInfoEnabled -> Logging.WARN
else -> Logging.DEBUG
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy