diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1f9a05c46d..8bc9771b26 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -44,16 +44,19 @@ jobs: with: distribution: 'zulu' java-version: ${{ matrix.java }} + cache: 'maven' - name: Build with Maven in Windows if: matrix.os == 'windows-latest' run: | - ./mvnw --batch-mode --no-transfer-progress '-Dmaven.javadoc.skip=true' clean install + ./mvnw --batch-mode --no-transfer-progress '-Dmaven.javadoc.skip=true' clean install -T1C - name: Build with Maven in Linux or macOS if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' run: | - ./mvnw --batch-mode --no-transfer-progress '-Dmaven.javadoc.skip=true' clean install -Pcheck + ./mvnw --batch-mode --no-transfer-progress '-Dmaven.javadoc.skip=true' clean install -Pcheck -T1C - name: Upload coverage to Codecov if: matrix.os == 'ubuntu-latest' && matrix.java == '8' uses: codecov/codecov-action@v3 with: file: '**/target/site/jacoco/jacoco.xml' + - name: Build Examples with Maven + run: ./mvnw clean package -B -f examples/pom.xml -T1C diff --git a/kernel/pom.xml b/kernel/pom.xml index ae63a8371e..c507ec7e3d 100644 --- a/kernel/pom.xml +++ b/kernel/pom.xml @@ -32,21 +32,11 @@ elasticjob-api ${project.parent.version} - - org.apache.shardingsphere.elasticjob - elasticjob-error-handler-spi - ${project.parent.version} - org.apache.shardingsphere.elasticjob elasticjob-registry-center-zookeeper-curator ${project.parent.version} - - org.apache.shardingsphere.elasticjob - elasticjob-tracing-api - ${project.parent.version} - org.apache.shardingsphere.elasticjob diff --git a/restful/src/main/java/org/apache/shardingsphere/elasticjob/restful/deserializer/impl/DefaultJsonRequestBodyDeserializer.java b/restful/src/main/java/org/apache/shardingsphere/elasticjob/restful/deserializer/impl/DefaultJsonRequestBodyDeserializer.java index 0491ed2ce0..03235f22f3 100644 --- a/restful/src/main/java/org/apache/shardingsphere/elasticjob/restful/deserializer/impl/DefaultJsonRequestBodyDeserializer.java +++ b/restful/src/main/java/org/apache/shardingsphere/elasticjob/restful/deserializer/impl/DefaultJsonRequestBodyDeserializer.java @@ -19,7 +19,7 @@ import com.google.gson.Gson; import io.netty.handler.codec.http.HttpHeaderValues; -import org.apache.shardingsphere.elasticjob.infra.json.GsonFactory; +import org.apache.shardingsphere.elasticjob.kernel.infra.json.GsonFactory; import org.apache.shardingsphere.elasticjob.restful.deserializer.RequestBodyDeserializer; import java.nio.charset.StandardCharsets; diff --git a/restful/src/main/java/org/apache/shardingsphere/elasticjob/restful/serializer/impl/DefaultJsonResponseBodySerializer.java b/restful/src/main/java/org/apache/shardingsphere/elasticjob/restful/serializer/impl/DefaultJsonResponseBodySerializer.java index 3baef7854b..bb03871719 100644 --- a/restful/src/main/java/org/apache/shardingsphere/elasticjob/restful/serializer/impl/DefaultJsonResponseBodySerializer.java +++ b/restful/src/main/java/org/apache/shardingsphere/elasticjob/restful/serializer/impl/DefaultJsonResponseBodySerializer.java @@ -19,7 +19,7 @@ import com.google.gson.Gson; import io.netty.handler.codec.http.HttpHeaderValues; -import org.apache.shardingsphere.elasticjob.infra.json.GsonFactory; +import org.apache.shardingsphere.elasticjob.kernel.infra.json.GsonFactory; import org.apache.shardingsphere.elasticjob.restful.serializer.ResponseBodySerializer; import java.nio.charset.StandardCharsets;