Skip to content

Commit

Permalink
PropertiesReader: use interfaces instead of implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
monosoul committed Jun 8, 2022
1 parent 35b0ef0 commit 941b6b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ internal object PropertiesReader {
private const val PREFIX = "dev.monosoul.jooq."
private val WITH_CONTAINER = "${PREFIX}${functionName(SettingsAware::withContainer)}."
private val WITHOUT_CONTAINER = "${PREFIX}${functionName(SettingsAware::withoutContainer)}."
private val IMAGE_PREFIX = "${functionName(WithContainer::image)}."
private val IMAGE_PREFIX = "${functionName(ImageAware::image)}."
private val DATABASE_PREFIX = "${functionName(DbAware<Database>::db)}."
private val JDBC_PREFIX = "${functionName(Database::jdbc)}."
private val JDBC_PREFIX = "${functionName(JdbcAware::jdbc)}."

fun WithContainer.applyPropertiesFrom(project: Project): JooqDockerPluginSettings =
if (project.properties.keys.any { it.startsWith(WITHOUT_CONTAINER) }) {
Expand Down

0 comments on commit 941b6b5

Please sign in to comment.