From 4575f9c6e536cebefea2ed0ab176b718f2e31fab Mon Sep 17 00:00:00 2001 From: zhangliang Date: Sun, 24 Sep 2023 12:52:14 +0800 Subject: [PATCH] Add shardingsphere-infra-expr-type module --- infra/expr/pom.xml | 4 +-- infra/expr/{ => type}/espresso/pom.xml | 4 +-- .../EspressoInlineExpressionParser.java | 0 ...here.infra.expr.spi.InlineExpressionParser | 0 .../EspressoInlineExpressionParserTest.java | 0 infra/expr/{ => type}/groovy/pom.xml | 2 +- .../groovy/GroovyInlineExpressionParser.java | 0 ...here.infra.expr.spi.InlineExpressionParser | 0 .../GroovyInlineExpressionParserTest.java | 0 infra/expr/type/pom.xml | 35 +++++++++++++++++++ infra/expr/{ => type}/purelist/pom.xml | 2 +- .../PureListInlineExpressionParser.java | 0 ...here.infra.expr.spi.InlineExpressionParser | 0 .../PureListInlineExpressionParserTest.java | 0 14 files changed, 40 insertions(+), 7 deletions(-) rename infra/expr/{ => type}/espresso/pom.xml (95%) rename infra/expr/{ => type}/espresso/src/main/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParser.java (100%) rename infra/expr/{ => type}/espresso/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser (100%) rename infra/expr/{ => type}/espresso/src/test/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParserTest.java (100%) rename infra/expr/{ => type}/groovy/pom.xml (96%) rename infra/expr/{ => type}/groovy/src/main/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParser.java (100%) rename infra/expr/{ => type}/groovy/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser (100%) rename infra/expr/{ => type}/groovy/src/test/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParserTest.java (100%) create mode 100644 infra/expr/type/pom.xml rename infra/expr/{ => type}/purelist/pom.xml (96%) rename infra/expr/{ => type}/purelist/src/main/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParser.java (100%) rename infra/expr/{ => type}/purelist/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser (100%) rename infra/expr/{ => type}/purelist/src/test/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParserTest.java (100%) diff --git a/infra/expr/pom.xml b/infra/expr/pom.xml index 9f9e4e7cb6486..6b30073cea4e4 100644 --- a/infra/expr/pom.xml +++ b/infra/expr/pom.xml @@ -30,8 +30,6 @@ spi core - groovy - purelist - espresso + type diff --git a/infra/expr/espresso/pom.xml b/infra/expr/type/espresso/pom.xml similarity index 95% rename from infra/expr/espresso/pom.xml rename to infra/expr/type/espresso/pom.xml index df7c6fc1cfbda..df2cf432cd1e8 100644 --- a/infra/expr/espresso/pom.xml +++ b/infra/expr/type/espresso/pom.xml @@ -20,7 +20,7 @@ 4.0.0 org.apache.shardingsphere - shardingsphere-infra-expr + shardingsphere-infra-expr-type 5.4.1-SNAPSHOT shardingsphere-infra-expr-espresso @@ -85,7 +85,7 @@ true - ${project.build.outputDirectory}/espresso-need-libs + target/classes/espresso-need-libs diff --git a/infra/expr/espresso/src/main/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParser.java b/infra/expr/type/espresso/src/main/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParser.java similarity index 100% rename from infra/expr/espresso/src/main/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParser.java rename to infra/expr/type/espresso/src/main/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParser.java diff --git a/infra/expr/espresso/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser b/infra/expr/type/espresso/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser similarity index 100% rename from infra/expr/espresso/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser rename to infra/expr/type/espresso/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser diff --git a/infra/expr/espresso/src/test/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParserTest.java b/infra/expr/type/espresso/src/test/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParserTest.java similarity index 100% rename from infra/expr/espresso/src/test/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParserTest.java rename to infra/expr/type/espresso/src/test/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParserTest.java diff --git a/infra/expr/groovy/pom.xml b/infra/expr/type/groovy/pom.xml similarity index 96% rename from infra/expr/groovy/pom.xml rename to infra/expr/type/groovy/pom.xml index cbc18ed0bed35..4591658174e65 100644 --- a/infra/expr/groovy/pom.xml +++ b/infra/expr/type/groovy/pom.xml @@ -20,7 +20,7 @@ 4.0.0 org.apache.shardingsphere - shardingsphere-infra-expr + shardingsphere-infra-expr-type 5.4.1-SNAPSHOT shardingsphere-infra-expr-groovy diff --git a/infra/expr/groovy/src/main/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParser.java b/infra/expr/type/groovy/src/main/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParser.java similarity index 100% rename from infra/expr/groovy/src/main/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParser.java rename to infra/expr/type/groovy/src/main/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParser.java diff --git a/infra/expr/groovy/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser b/infra/expr/type/groovy/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser similarity index 100% rename from infra/expr/groovy/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser rename to infra/expr/type/groovy/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser diff --git a/infra/expr/groovy/src/test/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParserTest.java b/infra/expr/type/groovy/src/test/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParserTest.java similarity index 100% rename from infra/expr/groovy/src/test/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParserTest.java rename to infra/expr/type/groovy/src/test/java/org/apache/shardingsphere/infra/expr/groovy/GroovyInlineExpressionParserTest.java diff --git a/infra/expr/type/pom.xml b/infra/expr/type/pom.xml new file mode 100644 index 0000000000000..12131f0ae98db --- /dev/null +++ b/infra/expr/type/pom.xml @@ -0,0 +1,35 @@ + + + + + 4.0.0 + + org.apache.shardingsphere + shardingsphere-infra-expr + 5.4.1-SNAPSHOT + + shardingsphere-infra-expr-type + pom + ${project.artifactId} + + + groovy + purelist + espresso + + diff --git a/infra/expr/purelist/pom.xml b/infra/expr/type/purelist/pom.xml similarity index 96% rename from infra/expr/purelist/pom.xml rename to infra/expr/type/purelist/pom.xml index 0e3d95b390bff..0ac0438b150c7 100644 --- a/infra/expr/purelist/pom.xml +++ b/infra/expr/type/purelist/pom.xml @@ -20,7 +20,7 @@ 4.0.0 org.apache.shardingsphere - shardingsphere-infra-expr + shardingsphere-infra-expr-type 5.4.1-SNAPSHOT shardingsphere-infra-expr-purelist diff --git a/infra/expr/purelist/src/main/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParser.java b/infra/expr/type/purelist/src/main/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParser.java similarity index 100% rename from infra/expr/purelist/src/main/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParser.java rename to infra/expr/type/purelist/src/main/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParser.java diff --git a/infra/expr/purelist/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser b/infra/expr/type/purelist/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser similarity index 100% rename from infra/expr/purelist/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser rename to infra/expr/type/purelist/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser diff --git a/infra/expr/purelist/src/test/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParserTest.java b/infra/expr/type/purelist/src/test/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParserTest.java similarity index 100% rename from infra/expr/purelist/src/test/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParserTest.java rename to infra/expr/type/purelist/src/test/java/org/apache/shardingsphere/infra/expr/purelist/PureListInlineExpressionParserTest.java