diff --git a/pom.xml b/pom.xml index aa27dd8474..58138f4875 100644 --- a/pom.xml +++ b/pom.xml @@ -177,6 +177,7 @@ http-entity egress-router ingress-proxy + ruleloader-config rule-loader config-reload sidecar @@ -508,6 +509,11 @@ sidecar ${project.version} + + com.networknt + ruleloader-config + ${project.version} + com.networknt rule-loader diff --git a/rule-loader/pom.xml b/rule-loader/pom.xml index dcb98b109b..5dd300400e 100644 --- a/rule-loader/pom.xml +++ b/rule-loader/pom.xml @@ -50,6 +50,10 @@ com.networknt yaml-rule + + com.networknt + ruleloader-config + io.undertow diff --git a/ruleloader-config/pom.xml b/ruleloader-config/pom.xml new file mode 100644 index 0000000000..588493774b --- /dev/null +++ b/ruleloader-config/pom.xml @@ -0,0 +1,61 @@ + + + + 4.0.0 + + + com.networknt + light-4j + 2.1.34-SNAPSHOT + ../pom.xml + + + ruleloader-config + jar + A config module for rule-loader to load YAML rules. + + + + com.networknt + config + + + com.networknt + yaml-rule + + + + com.fasterxml.jackson.core + jackson-databind + + + org.slf4j + slf4j-api + + + ch.qos.logback + logback-classic + test + + + junit + junit + test + + + diff --git a/rule-loader/src/main/java/com/networknt/rule/RuleLoaderConfig.java b/ruleloader-config/src/main/java/com/networknt/rule/RuleLoaderConfig.java similarity index 100% rename from rule-loader/src/main/java/com/networknt/rule/RuleLoaderConfig.java rename to ruleloader-config/src/main/java/com/networknt/rule/RuleLoaderConfig.java diff --git a/ruleloader-config/src/main/java/module-info.j b/ruleloader-config/src/main/java/module-info.j new file mode 100644 index 0000000000..077549048d --- /dev/null +++ b/ruleloader-config/src/main/java/module-info.j @@ -0,0 +1,11 @@ +module com.networknt.rule-loader { + exports com.networknt.rule; + + requires com.networknt.config; + requires com.networknt.client; + requires com.networknt.server; + + requires com.fasterxml.jackson.core; + requires org.slf4j; + requires java.logging; +} diff --git a/rule-loader/src/main/resources/config/rule-loader.yml b/ruleloader-config/src/main/resources/config/rule-loader.yml similarity index 100% rename from rule-loader/src/main/resources/config/rule-loader.yml rename to ruleloader-config/src/main/resources/config/rule-loader.yml