Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing @ConfigItem annotations #19826

Merged
merged 1 commit into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.quarkus.liquibase.runtime;

import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;

Expand All @@ -12,5 +13,6 @@ public class LiquibaseMongodbBuildTimeConfig {
/**
* The change log file
*/
public String changeLog = "db/changeLog.xml";
@ConfigItem(defaultValue = "db/changeLog.xml")
public String changeLog;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package io.quarkus.liquibase.runtime;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;

import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;

Expand All @@ -16,53 +18,67 @@ public class LiquibaseMongodbConfig {
/**
* The migrate at start flag
*/
public boolean migrateAtStart = false;
@ConfigItem
public boolean migrateAtStart;

/**
* The validate on update flag
*/
public boolean validateOnMigrate = true;
@ConfigItem(defaultValue = "true")
public boolean validateOnMigrate;

/**
* The clean at start flag
*/
public boolean cleanAtStart = false;
@ConfigItem
public boolean cleanAtStart;

public Map<String, String> changeLogParameters = null;
/**
* The parameters to be passed to the changelog.
* Defined as key value pairs.
*/
@ConfigItem
public Map<String, String> changeLogParameters = new HashMap<>();;

/**
* The list of contexts
*/
public Optional<List<String>> contexts = null;
@ConfigItem
public Optional<List<String>> contexts = Optional.empty();

/**
* The list of labels
*/
public Optional<List<String>> labels = null;
@ConfigItem
public Optional<List<String>> labels = Optional.empty();

/**
* The default catalog name
*/
@ConfigItem
public Optional<String> defaultCatalogName = Optional.empty();

/**
* The default schema name
*/
@ConfigItem
public Optional<String> defaultSchemaName = Optional.empty();

/**
* The liquibase tables catalog name
*/
@ConfigItem
public Optional<String> liquibaseCatalogName = Optional.empty();

/**
* The liquibase tables schema name
*/
@ConfigItem
public Optional<String> liquibaseSchemaName = Optional.empty();

/**
* The liquibase tables tablespace name
*/
@ConfigItem
public Optional<String> liquibaseTablespaceName = Optional.empty();

}