You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2020/11/20 02:35:38 UTC
[shardingsphere] branch master updated: agent project extends
shardingsphere (#8233)
This is an automated email from the ASF dual-hosted git repository.
panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new e0d02ae agent project extends shardingsphere (#8233)
e0d02ae is described below
commit e0d02ae1721b80c11845dc2ead15c8e70b44eebe
Author: xiaoyu <54...@qq.com>
AuthorDate: Fri Nov 20 10:35:06 2020 +0800
agent project extends shardingsphere (#8233)
---
pom.xml | 7 +
shardingsphere-agent/.gitignore | 40 --
shardingsphere-agent/LICENSE | 218 -----------
shardingsphere-agent/NOTICE | 5 -
shardingsphere-agent/README.md | 0
shardingsphere-agent/README_ZH.md | 0
shardingsphere-agent/RELEASE-NOTES.md | 0
shardingsphere-agent/mvnw | 310 ---------------
shardingsphere-agent/mvnw.cmd | 182 ---------
shardingsphere-agent/pom.xml | 424 +--------------------
.../shardingsphere-agent-bootstrap/pom.xml | 2 +-
.../shardingsphere-agent-core/pom.xml | 2 +-
.../shardingsphere-agent-distribution/pom.xml | 2 +-
.../shardingsphere-agent-plugins/pom.xml | 5 +-
.../shardingsphere-agent-plugin-metrics/pom.xml | 2 +-
shardingsphere-agent/src/resources/checkstyle.xml | 260 -------------
.../src/resources/checkstyle_ci.xml | 238 ------------
shardingsphere-agent/src/resources/copyright.txt | 16 -
shardingsphere-agent/src/resources/ruleset.xml | 124 ------
19 files changed, 17 insertions(+), 1820 deletions(-)
diff --git a/pom.xml b/pom.xml
index 1eef497..1bbe82d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,6 +30,7 @@
<name>${project.artifactId}</name>
<modules>
+ <module>shardingsphere-agent</module>
<module>shardingsphere-sql-parser</module>
<module>shardingsphere-distsql-parser</module>
<module>shardingsphere-db-protocol</module>
@@ -102,6 +103,7 @@
<mssql.version>6.1.7.jre8-preview</mssql.version>
<mariadb-java-client.version>2.4.2</mariadb-java-client.version>
<prometheus-java-client.version>0.6.0</prometheus-java-client.version>
+ <bytebuddy.version>1.10.16</bytebuddy.version>
<elasticjob.version>3.0.0-beta</elasticjob.version>
@@ -143,6 +145,11 @@
<dependencyManagement>
<dependencies>
<dependency>
+ <groupId>net.bytebuddy</groupId>
+ <artifactId>byte-buddy</artifactId>
+ <version>${bytebuddy.version}</version>
+ </dependency>
+ <dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
diff --git a/shardingsphere-agent/.gitignore b/shardingsphere-agent/.gitignore
deleted file mode 100644
index 44f3c9a..0000000
--- a/shardingsphere-agent/.gitignore
+++ /dev/null
@@ -1,40 +0,0 @@
-# maven ignore
-target/
-*.class
-*.jar
-*.war
-*.zip
-*.tar
-*.tar.gz
-
-# maven plugin ignore
-release.properties
-cobertura.ser
-*.gpg
-
-# eclipse ignore
-.settings/
-.project
-.classpath
-
-# idea ignore
-.idea/
-*.ipr
-*.iml
-*.iws
-
-# temp ignore
-logs/
-*.log
-*.doc
-*.cache
-*.diff
-*.patch
-*.tmp
-
-# system ignore
-.DS_Store
-Thumbs.db
-
-# antlr ignore
-src/main/antlr4/imports/**/gen/
diff --git a/shardingsphere-agent/LICENSE b/shardingsphere-agent/LICENSE
deleted file mode 100644
index 89cad8c..0000000
--- a/shardingsphere-agent/LICENSE
+++ /dev/null
@@ -1,218 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "{}"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright {yyyy} {name of copyright owner}
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
-=======================================================================
-Apache ShardingSphere Subcomponents:
-
-The Apache ShardingSphere project contains subcomponents with separate copyright
-notices and license terms. Your use of the source code for the these
-subcomponents is subject to the terms and conditions of the following
-licenses.
-
-========================================================================
-Apache 2.0 licenses
-========================================================================
-
-The following components are provided under the Apache License. See project link for details.
-The text of each license is the standard Apache 2.0 license.
-
- Maven Wrapper(mvnw, mvnw.cmd files in root path), https://github.com/takari/maven-wrapper Apache 2.0
diff --git a/shardingsphere-agent/NOTICE b/shardingsphere-agent/NOTICE
deleted file mode 100644
index 0e79da7..0000000
--- a/shardingsphere-agent/NOTICE
+++ /dev/null
@@ -1,5 +0,0 @@
-Apache ShardingSphere
-Copyright 2018-2020 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
diff --git a/shardingsphere-agent/README.md b/shardingsphere-agent/README.md
deleted file mode 100644
index e69de29..0000000
diff --git a/shardingsphere-agent/README_ZH.md b/shardingsphere-agent/README_ZH.md
deleted file mode 100644
index e69de29..0000000
diff --git a/shardingsphere-agent/RELEASE-NOTES.md b/shardingsphere-agent/RELEASE-NOTES.md
deleted file mode 100644
index e69de29..0000000
diff --git a/shardingsphere-agent/mvnw b/shardingsphere-agent/mvnw
deleted file mode 100644
index a3925bb..0000000
--- a/shardingsphere-agent/mvnw
+++ /dev/null
@@ -1,310 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# ----------------------------------------------------------------------------
-
-# ----------------------------------------------------------------------------
-# Maven Start Up Batch script
-#
-# Required ENV vars:
-# ------------------
-# JAVA_HOME - location of a JDK home dir
-#
-# Optional ENV vars
-# -----------------
-# M2_HOME - location of maven2's installed home dir
-# MAVEN_OPTS - parameters passed to the Java VM when running Maven
-# e.g. to debug Maven itself, use
-# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-# ----------------------------------------------------------------------------
-
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
- if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
- fi
-
- if [ -f "$HOME/.mavenrc" ] ; then
- . "$HOME/.mavenrc"
- fi
-
-fi
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- MINGW*) mingw=true;;
- Darwin*) darwin=true
- # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
- # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
- if [ -z "$JAVA_HOME" ]; then
- if [ -x "/usr/libexec/java_home" ]; then
- export JAVA_HOME="`/usr/libexec/java_home`"
- else
- export JAVA_HOME="/Library/Java/Home"
- fi
- fi
- ;;
-esac
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -r /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-if [ -z "$M2_HOME" ] ; then
- ## resolve links - $0 may be a link to maven's home
- PRG="$0"
-
- # need this for relative symlinks
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG="`dirname "$PRG"`/$link"
- fi
- done
-
- saveddir=`pwd`
-
- M2_HOME=`dirname "$PRG"`/..
-
- # make it fully qualified
- M2_HOME=`cd "$M2_HOME" && pwd`
-
- cd "$saveddir"
- # echo Using m2 at $M2_HOME
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --unix "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-# For Mingw, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME="`(cd "$M2_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
-fi
-
-if [ -z "$JAVA_HOME" ]; then
- javaExecutable="`which javac`"
- if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
- # readlink(1) is not available as standard on Solaris 10.
- readLink=`which readlink`
- if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
- if $darwin ; then
- javaHome="`dirname \"$javaExecutable\"`"
- javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
- else
- javaExecutable="`readlink -f \"$javaExecutable\"`"
- fi
- javaHome="`dirname \"$javaExecutable\"`"
- javaHome=`expr "$javaHome" : '\(.*\)/bin'`
- JAVA_HOME="$javaHome"
- export JAVA_HOME
- fi
- fi
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD="`which java`"
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly." >&2
- echo " We cannot execute $JAVACMD" >&2
- exit 1
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
-fi
-
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
-
-# traverses directory structure from process work directory to filesystem root
-# first directory with .mvn subdirectory is considered project base directory
-find_maven_basedir() {
-
- if [ -z "$1" ]
- then
- echo "Path not specified to find_maven_basedir"
- return 1
- fi
-
- basedir="$1"
- wdir="$1"
- while [ "$wdir" != '/' ] ; do
- if [ -d "$wdir"/.mvn ] ; then
- basedir=$wdir
- break
- fi
- # workaround for JBEAP-8937 (on Solaris 10/Sparc)
- if [ -d "${wdir}" ]; then
- wdir=`cd "$wdir/.."; pwd`
- fi
- # end of workaround
- done
- echo "${basedir}"
-}
-
-# concatenates all lines of a file
-concat_lines() {
- if [ -f "$1" ]; then
- echo "$(tr -s '\n' ' ' < "$1")"
- fi
-}
-
-BASE_DIR=`find_maven_basedir "$(pwd)"`
-if [ -z "$BASE_DIR" ]; then
- exit 1;
-fi
-
-##########################################################################################
-# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-# This allows using the maven wrapper in projects that prohibit checking in binary data.
-##########################################################################################
-if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found .mvn/wrapper/maven-wrapper.jar"
- fi
-else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
- fi
- if [ -n "$MVNW_REPOURL" ]; then
- jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
- else
- jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
- fi
- while IFS="=" read key value; do
- case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
- esac
- done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Downloading from: $jarUrl"
- fi
- wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
- if $cygwin; then
- wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
- fi
-
- if command -v wget > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found wget ... using wget"
- fi
- if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
- wget "$jarUrl" -O "$wrapperJarPath"
- else
- wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
- fi
- elif command -v curl > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found curl ... using curl"
- fi
- if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
- curl -o "$wrapperJarPath" "$jarUrl" -f
- else
- curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
- fi
-
- else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Falling back to using Java to download"
- fi
- javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
- # For Cygwin, switch paths to Windows format before running javac
- if $cygwin; then
- javaClass=`cygpath --path --windows "$javaClass"`
- fi
- if [ -e "$javaClass" ]; then
- if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Compiling MavenWrapperDownloader.java ..."
- fi
- # Compiling the Java class
- ("$JAVA_HOME/bin/javac" "$javaClass")
- fi
- if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- # Running the downloader
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Running MavenWrapperDownloader.java ..."
- fi
- ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
- fi
- fi
- fi
-fi
-##########################################################################################
-# End of extension
-##########################################################################################
-
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
-if [ "$MVNW_VERBOSE" = true ]; then
- echo $MAVEN_PROJECTBASEDIR
-fi
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --path --windows "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
- [ -n "$MAVEN_PROJECTBASEDIR" ] &&
- MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
-fi
-
-# Provide a "standardized" way to retrieve the CLI args that will
-# work with both Windows and non-Windows executions.
-MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
-export MAVEN_CMD_LINE_ARGS
-
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-exec "$JAVACMD" \
- $MAVEN_OPTS \
- -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
- "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
- ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/shardingsphere-agent/mvnw.cmd b/shardingsphere-agent/mvnw.cmd
deleted file mode 100644
index 6a64c97..0000000
--- a/shardingsphere-agent/mvnw.cmd
+++ /dev/null
@@ -1,182 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM http://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-@REM ----------------------------------------------------------------------------
-
-@REM ----------------------------------------------------------------------------
-@REM Maven Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM
-@REM Optional ENV vars
-@REM M2_HOME - location of maven2's installed home dir
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
-@REM e.g. to debug Maven itself, use
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-@REM ----------------------------------------------------------------------------
-
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
-@echo off
-@REM set title of command window
-title %0
-@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
-@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
-
-@REM set %HOME% to equivalent of $HOME
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
-
-@REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
-:skipRcPre
-
-@setlocal
-
-set ERROR_CODE=0
-
-@REM To isolate internal variables from possible post scripts, we use another setlocal
-@setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo Error: JAVA_HOME not found in your environment. >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto init
-
-echo.
-echo Error: JAVA_HOME is set to an invalid directory. >&2
-echo JAVA_HOME = "%JAVA_HOME%" >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-@REM ==== END VALIDATION ====
-
-:init
-
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
-@REM Fallback to current working directory if not found.
-
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
-
-set EXEC_DIR=%CD%
-set WDIR=%EXEC_DIR%
-:findBaseDir
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
-cd ..
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
-set WDIR=%CD%
-goto findBaseDir
-
-:baseDirFound
-set MAVEN_PROJECTBASEDIR=%WDIR%
-cd "%EXEC_DIR%"
-goto endDetectBaseDir
-
-:baseDirNotFound
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
-cd "%EXEC_DIR%"
-
-:endDetectBaseDir
-
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
-
-@setlocal EnableExtensions EnableDelayedExpansion
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
-
-:endReadAdditionalConfig
-
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
-
-FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
- IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
-)
-
-@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
-if exist %WRAPPER_JAR% (
- if "%MVNW_VERBOSE%" == "true" (
- echo Found %WRAPPER_JAR%
- )
-) else (
- if not "%MVNW_REPOURL%" == "" (
- SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
- )
- if "%MVNW_VERBOSE%" == "true" (
- echo Couldn't find %WRAPPER_JAR%, downloading it ...
- echo Downloading from: %DOWNLOAD_URL%
- )
-
- powershell -Command "&{"^
- "$webclient = new-object System.Net.WebClient;"^
- "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
- "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
- "}"^
- "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
- "}"
- if "%MVNW_VERBOSE%" == "true" (
- echo Finished downloading %WRAPPER_JAR%
- )
-)
-@REM End of extension
-
-@REM Provide a "standardized" way to retrieve the CLI args that will
-@REM work with both Windows and non-Windows executions.
-set MAVEN_CMD_LINE_ARGS=%*
-
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
-if ERRORLEVEL 1 goto error
-goto end
-
-:error
-set ERROR_CODE=1
-
-:end
-@endlocal & set ERROR_CODE=%ERROR_CODE%
-
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
-:skipRcPost
-
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
-
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
-
-exit /B %ERROR_CODE%
diff --git a/shardingsphere-agent/pom.xml b/shardingsphere-agent/pom.xml
index 96d013f..4dcd294 100644
--- a/shardingsphere-agent/pom.xml
+++ b/shardingsphere-agent/pom.xml
@@ -21,13 +21,11 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.apache</groupId>
- <artifactId>apache</artifactId>
- <version>21</version>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere</artifactId>
+ <version>5.0.0-RC1-SNAPSHOT</version>
</parent>
- <groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-agent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
@@ -37,420 +35,4 @@
<module>shardingsphere-agent-core</module>
<module>shardingsphere-agent-plugins</module>
</modules>
-
- <properties>
- <java.version>1.8</java.version>
- <maven.version.range>[3.0.4,)</maven.version.range>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.build.locale>zh_CN</project.build.locale>
- <bytebuddy.version>1.10.16</bytebuddy.version>
- <guava.version>29.0-jre</guava.version>
- <gson.version>2.8.6</gson.version>
- <slf4j.version>1.7.7</slf4j.version>
- <snakeyaml.version>1.16</snakeyaml.version>
- <commons-collections4.version>4.2</commons-collections4.version>
- <lombok.version>1.16.20</lombok.version>
- <junit.version>4.12</junit.version>
- <hamcrest.version>1.3</hamcrest.version>
- <mockito.version>2.7.21</mockito.version>
- <logback.version>1.2.0</logback.version>
- <prometheus-java-client.version>0.6.0</prometheus-java-client.version>
- <apache-rat-plugin.version>0.12</apache-rat-plugin.version>
- <takari-maven-plugin.version>0.6.1</takari-maven-plugin.version>
- <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
- <maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version>
- <maven-resources-plugin.version>2.7</maven-resources-plugin.version>
- <maven-jar-plugin.version>2.6</maven-jar-plugin.version>
- <maven-surefire-plugin.version>2.18.1</maven-surefire-plugin.version>
- <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
- <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
- <maven-site-plugin.version>3.4</maven-site-plugin.version>
- <maven-enforcer-plugin.version>1.4</maven-enforcer-plugin.version>
- <maven-project-info-reports-plugin.version>2.8</maven-project-info-reports-plugin.version>
- <maven-plugin-plugin.version>3.4</maven-plugin-plugin.version>
- <maven-javadoc-plugin.version>2.10.3</maven-javadoc-plugin.version>
- <maven-source-plugin.version>2.4</maven-source-plugin.version>
- <coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
- <cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
- <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
- <maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version>
- <os-maven-plugin.version>1.5.0.Final</os-maven-plugin.version>
- <maven.deploy.skip>false</maven.deploy.skip>
- <argLine>-Xmx1024m -XX:MaxMetaspaceSize=256m</argLine>
- </properties>
-
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>net.bytebuddy</groupId>
- <artifactId>byte-buddy</artifactId>
- <version>${bytebuddy.version}</version>
- </dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <version>${guava.version}</version>
- </dependency>
- <dependency>
- <groupId>com.google.code.gson</groupId>
- <artifactId>gson</artifactId>
- <version>${gson.version}</version>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>${slf4j.version}</version>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>jcl-over-slf4j</artifactId>
- <version>${slf4j.version}</version>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>jul-to-slf4j</artifactId>
- <version>${slf4j.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.yaml</groupId>
- <artifactId>snakeyaml</artifactId>
- <version>${snakeyaml.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-collections4</artifactId>
- <version>${commons-collections4.version}</version>
- </dependency>
-
- <dependency>
- <groupId>io.prometheus</groupId>
- <artifactId>simpleclient</artifactId>
- <version>${prometheus-java-client.version}</version>
- </dependency>
- <dependency>
- <groupId>io.prometheus</groupId>
- <artifactId>simpleclient_httpserver</artifactId>
- <version>${prometheus-java-client.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <version>${lombok.version}</version>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-library</artifactId>
- <version>${hamcrest.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <version>${mockito.version}</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-core</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-inline</artifactId>
- <version>${mockito.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- <version>${logback.version}</version>
- <exclusions>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </exclusion>
- </exclusions>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <exclusions>
- <exclusion>
- <groupId>com.google.j2objc</groupId>
- <artifactId>j2objc-annotations</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>jcl-over-slf4j</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </dependency>
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-library</artifactId>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-inline</artifactId>
- </dependency>
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <extensions>
- <extension>
- <groupId>kr.motd.maven</groupId>
- <artifactId>os-maven-plugin</artifactId>
- <version>${os-maven-plugin.version}</version>
- </extension>
- </extensions>
-
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>${java.version}</source>
- <target>${java.version}</target>
- <testSource>${java.version}</testSource>
- <testTarget>${java.version}</testTarget>
- </configuration>
- <version>${maven-compiler-plugin.version}</version>
- </plugin>
- <!-- mvn -N io.takari:maven:wrapper -Dmaven=3.5.4 -->
- <plugin>
- <groupId>io.takari</groupId>
- <artifactId>maven</artifactId>
- <version>${takari-maven-plugin.version}</version>
- </plugin>
- </plugins>
- </pluginManagement>
-
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-sources</id>
- <phase>verify</phase>
- <goals>
- <goal>jar-no-fork</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <charset>${project.build.sourceEncoding}</charset>
- <encoding>${project.build.sourceEncoding}</encoding>
- <docencoding>${project.build.sourceEncoding}</docencoding>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>${maven-enforcer-plugin.version}</version>
- <executions>
- <execution>
- <id>enforce-banned-dependencies</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireMavenVersion>
- <version>${maven.version.range}</version>
- </requireMavenVersion>
- <requireJavaVersion>
- <version>${java.version}</version>
- </requireJavaVersion>
- </rules>
- <fail>true</fail>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>${maven-checkstyle-plugin.version}</version>
- <configuration>
- <configLocation>src/resources/checkstyle_ci.xml</configLocation>
- <includeTestSourceDirectory>true</includeTestSourceDirectory>
- <excludes>**/autogen/**/*</excludes>
- </configuration>
- <executions>
- <execution>
- <id>validate</id>
- <phase>validate</phase>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eluder.coveralls</groupId>
- <artifactId>coveralls-maven-plugin</artifactId>
- <version>${coveralls-maven-plugin.version}</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>${cobertura-maven-plugin.version}</version>
- <configuration>
- <check>
- <branchRate>70</branchRate>
- <lineRate>70</lineRate>
- <haltOnFailure>true</haltOnFailure>
- <totalBranchRate>70</totalBranchRate>
- <totalLineRate>70</totalLineRate>
- <packageLineRate>70</packageLineRate>
- <packageBranchRate>70</packageBranchRate>
- </check>
- <aggregate>true</aggregate>
- <encoding>${project.build.sourceEncoding}</encoding>
- <quiet>true</quiet>
- <format>xml</format>
- <instrumentation>
- <ignoreTrivial>true</ignoreTrivial>
- <ignoreMethodAnnotations>
- <ignoreMethodAnnotation>lombok.Generated</ignoreMethodAnnotation>
- </ignoreMethodAnnotations>
- <excludes>
- <exclude>org/apache/shardingsphere/**/*Test.class</exclude>
- <exclude>org/apache/shardingsphere/test/**/*.class</exclude>
- </excludes>
- </instrumentation>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.jacoco</groupId>
- <artifactId>jacoco-maven-plugin</artifactId>
- <version>${jacoco-maven-plugin.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>prepare-agent</goal>
- </goals>
- </execution>
- <execution>
- <id>report</id>
- <phase>test</phase>
- <goals>
- <goal>report</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.rat</groupId>
- <artifactId>apache-rat-plugin</artifactId>
- <version>${apache-rat-plugin.version}</version>
- <configuration>
- <excludes>
- <exclude>**/gen/**</exclude>
- <exclude>**/target/**</exclude>
- <exclude>**/logs/**</exclude>
- <exclude>**/*.log</exclude>
- <exclude>**/*.tokens</exclude>
- <!-- IDE files -->
- <exclude>**/*.iml</exclude>
- <exclude>**/.idea/**</exclude>
- <exclude>**/*.classpath</exclude>
- <exclude>**/.project</exclude>
- <exclude>**/.settings/**</exclude>
- <exclude>**/dependency-reduced-pom.xml</exclude>
- <!-- git files -->
- <exclude>**/.gitignore</exclude>
- <exclude>**/.gitmodules</exclude>
- <exclude>**/.git/**</exclude>
- <!-- CI files -->
- <exclude>**/.travis.yml</exclude>
- <exclude>**/.codecov.yml</exclude>
- <exclude>**/.mvn/jvm.config</exclude>
- <exclude>**/.mvn/wrapper/maven-wrapper.properties</exclude>
- <!-- GitHub files -->
- <exclude>**/.github/**</exclude>
- <!-- document files -->
- <exclude>**/*.md</exclude>
- <excldue>**/*.MD</excldue>
- <exclude>**/*.txt</exclude>
- <exclude>**/docs/**</exclude>
- <!-- UI files -->
- <exclude>**/.babelrc</exclude>
- <exclude>**/.editorconfig</exclude>
- <exclude>**/.eslintignore</exclude>
- <exclude>**/package.json</exclude>
- <exclude>**/assets/**</exclude>
- <exclude>**/dist/**</exclude>
- <exclude>**/etc/**</exclude>
- <exclude>**/node/**</exclude>
- <exclude>**/node_modules/**</exclude>
- <exclude>**/test/coverage/**</exclude>
- <exclude>**/package-lock.json</exclude>
- <!-- example files -->
- <exclude>/examples/**</exclude>
- </excludes>
- </configuration>
- <executions>
- <execution>
- <phase>verify</phase>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
</project>
diff --git a/shardingsphere-agent/shardingsphere-agent-bootstrap/pom.xml b/shardingsphere-agent/shardingsphere-agent-bootstrap/pom.xml
index 90e0de6..17dd15a 100644
--- a/shardingsphere-agent/shardingsphere-agent-bootstrap/pom.xml
+++ b/shardingsphere-agent/shardingsphere-agent-bootstrap/pom.xml
@@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-agent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>5.0.0-RC1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>shardingsphere-agent-bootstrap</artifactId>
diff --git a/shardingsphere-agent/shardingsphere-agent-core/pom.xml b/shardingsphere-agent/shardingsphere-agent-core/pom.xml
index 0ec5f34..f0c7b4a 100644
--- a/shardingsphere-agent/shardingsphere-agent-core/pom.xml
+++ b/shardingsphere-agent/shardingsphere-agent-core/pom.xml
@@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-agent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>5.0.0-RC1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/shardingsphere-agent/shardingsphere-agent-distribution/pom.xml b/shardingsphere-agent/shardingsphere-agent-distribution/pom.xml
index c46c21f..5e16876 100644
--- a/shardingsphere-agent/shardingsphere-agent-distribution/pom.xml
+++ b/shardingsphere-agent/shardingsphere-agent-distribution/pom.xml
@@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-agent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>5.0.0-RC1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/shardingsphere-agent/shardingsphere-agent-plugins/pom.xml b/shardingsphere-agent/shardingsphere-agent-plugins/pom.xml
index 54a3ff1..7c5a413 100644
--- a/shardingsphere-agent/shardingsphere-agent-plugins/pom.xml
+++ b/shardingsphere-agent/shardingsphere-agent-plugins/pom.xml
@@ -22,14 +22,15 @@
<parent>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-agent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>5.0.0-RC1-SNAPSHOT</version>
</parent>
+ <artifactId>shardingsphere-agent-plugins</artifactId>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<modules>
<module>shardingsphere-agent-plugin-metrics</module>
</modules>
- <artifactId>shardingsphere-agent-plugins</artifactId>
+
</project>
diff --git a/shardingsphere-agent/shardingsphere-agent-plugins/shardingsphere-agent-plugin-metrics/pom.xml b/shardingsphere-agent/shardingsphere-agent-plugins/shardingsphere-agent-plugin-metrics/pom.xml
index e7620c9..0ecf447 100644
--- a/shardingsphere-agent/shardingsphere-agent-plugins/shardingsphere-agent-plugin-metrics/pom.xml
+++ b/shardingsphere-agent/shardingsphere-agent-plugins/shardingsphere-agent-plugin-metrics/pom.xml
@@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-agent-plugins</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>5.0.0-RC1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/shardingsphere-agent/src/resources/checkstyle.xml b/shardingsphere-agent/src/resources/checkstyle.xml
deleted file mode 100644
index 7a3b8ba..0000000
--- a/shardingsphere-agent/src/resources/checkstyle.xml
+++ /dev/null
@@ -1,260 +0,0 @@
-<?xml version="1.0"?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one or more
- ~ contributor license agreements. See the NOTICE file distributed with
- ~ this work for additional information regarding copyright ownership.
- ~ The ASF licenses this file to You under the Apache License, Version 2.0
- ~ (the "License"); you may not use this file except in compliance with
- ~ the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd">
-<module name = "Checker">
- <property name="charset" value="UTF-8"/>
- <property name="severity" value="warning"/>
- <property name="fileExtensions" value="java, properties, xml"/>
- <module name="Header">
- <property name="fileExtensions" value="java"/>
- </module>
- <module name="FileTabCharacter">
- <property name="eachLine" value="true"/>
- </module>
- <module name="FileLength"/>
- <module name="NewlineAtEndOfFile">
- <property name="lineSeparator" value="lf"/>
- </module>
- <module name="Translation"/>
- <module name="UniqueProperties"/>
- <module name="SeverityMatchFilter"/>
-
- <module name="TreeWalker">
-
- <!-- Naming Conventions -->
- <module name="PackageName">
- <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
- </module>
- <module name="TypeName"/>
- <module name="MethodName"/>
- <module name="InterfaceTypeParameterName"/>
- <module name="ClassTypeParameterName"/>
- <module name="MethodTypeParameterName"/>
- <module name="ConstantName"/>
- <module name="StaticVariableName"/>
- <module name="MemberName"/>
- <module name="LocalVariableName"/>
- <module name="LocalFinalVariableName"/>
- <module name="ParameterName"/>
- <module name="CatchParameterName"/>
- <module name="AbbreviationAsWordInName">
- <property name="allowedAbbreviationLength" value="6"/>
- </module>
-
- <!-- Size Violations -->
- <module name="AnonInnerLength"/>
- <module name="MethodLength"/>
- <module name="LineLength">
- <property name="max" value="200"/>
- </module>
- <module name="MethodCount"/>
- <module name="ExecutableStatementCount">
- <property name="max" value="50"/>
- </module>
- <module name="OuterTypeNumber"/>
- <module name="ParameterNumber"/>
-
- <!-- Whitespace -->
- <module name="EmptyForInitializerPad"/>
- <module name="EmptyForIteratorPad"/>
- <module name="MethodParamPad"/>
- <module name="ParenPad"/>
- <module name="TypecastParenPad"/>
- <module name="NoLineWrap"/>
- <module name="OperatorWrap"/>
- <module name="SeparatorWrap">
- <property name="id" value="SeparatorWrapDot"/>
- <property name="tokens" value="DOT"/>
- <property name="option" value="nl"/>
- </module>
- <module name="SeparatorWrap">
- <property name="id" value="SeparatorWrapComma"/>
- <property name="tokens" value="COMMA"/>
- <property name="option" value="EOL"/>
- </module>
- <module name="SeparatorWrap">
- <property name="id" value="SeparatorWrapEllipsis"/>
- <property name="tokens" value="ELLIPSIS"/>
- <property name="option" value="EOL"/>
- </module>
- <module name="SeparatorWrap">
- <property name="id" value="SeparatorWrapArrayDeclarator"/>
- <property name="tokens" value="ARRAY_DECLARATOR"/>
- <property name="option" value="EOL"/>
- </module>
- <module name="SeparatorWrap">
- <property name="id" value="SeparatorWrapMethodRef"/>
- <property name="tokens" value="METHOD_REF"/>
- <property name="option" value="nl"/>
- </module>
- <module name="GenericWhitespace"/>
- <module name="NoWhitespaceBefore"/>
- <module name="NoWhitespaceAfter"/>
- <module name="WhitespaceAround"/>
- <module name="WhitespaceAfter"/>
- <module name="SingleSpaceSeparator"/>
- <module name="EmptyLineSeparator">
- <property name="allowMultipleEmptyLines" value="false"/>
- <property name="allowMultipleEmptyLinesInsideClassMembers" value="false"/>
- </module>
-
- <!-- Imports -->
- <module name="AvoidStarImport"/>
- <module name="AvoidStaticImport">
- <property name="excludes" value="org.junit.Assert.*,org.hamcrest.CoreMatchers.*,org.mockito.Mockito.*,org.mockito.ArgumentMatchers.*"/>
- </module>
- <module name="IllegalImport"/>
- <module name="RedundantImport"/>
- <module name="UnusedImports"/>
- <module name="CustomImportOrder"/>
-
- <!-- Annotations -->
- <module name="AnnotationLocation">
- <property name="id" value="AnnotationLocationMostCases"/>
- <property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/>
- </module>
- <module name="AnnotationLocation">
- <property name="id" value="AnnotationLocationVariables"/>
- <property name="tokens" value="VARIABLE_DEF"/>
- <property name="allowSamelineMultipleAnnotations" value="true"/>
- </module>
- <module name="AnnotationUseStyle"/>
- <module name="MissingOverride"/>
- <module name="SuppressWarnings"/>
- <module name="MissingDeprecated"/>
- <module name="SuppressWarningsHolder"/>
-
- <!-- Modifiers -->
- <module name="ModifierOrder"/>
- <module name="RedundantModifier"/>
-
- <!-- Coding -->
- <module name="ArrayTrailingComma"/>
- <module name="CovariantEquals"/>
- <module name="DefaultComesLast"/>
- <module name="DeclarationOrder"/>
- <module name="EmptyStatement"/>
- <module name="EqualsAvoidNull"/>
- <module name="EqualsHashCode"/>
- <module name="ExplicitInitialization"/>
- <module name="FallThrough"/>
- <module name="IllegalInstantiation"/>
- <module name="IllegalCatch"/>
- <module name="IllegalThrows"/>
- <module name="IllegalType">
- <property name="tokens" value="METHOD_DEF,PARAMETER_DEF,VARIABLE_DEF"/>
- </module>
- <module name="IllegalTokenText">
- <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
- <property name="format" value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
- <property name="message" value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
- </module>
- <module name="MissingSwitchDefault"/>
- <module name="ModifiedControlVariable"/>
- <module name="MultipleVariableDeclarations"/>
- <module name="NestedForDepth"/>
- <module name="NestedIfDepth"/>
- <module name="NestedTryDepth"/>
- <module name="NoClone"/>
- <module name="NoFinalizer"/>
- <module name="SuperClone"/>
- <module name="SuperFinalize"/>
- <module name="OneStatementPerLine"/>
- <module name="OverloadMethodsDeclarationOrder"/>
- <module name="PackageDeclaration"/>
- <module name="ParameterAssignment"/>
- <module name="SimplifyBooleanExpression"/>
- <module name="SimplifyBooleanReturn"/>
- <module name="StringLiteralEquality"/>
- <module name="UnnecessaryParentheses"/>
- <module name="VariableDeclarationUsageDistance"/>
-
- <!-- Block Checks -->
- <module name="EmptyBlock"/>
- <module name="EmptyCatchBlock">
- <property name="exceptionVariableName" value="expected|ignore"/>
- </module>
- <module name="AvoidNestedBlocks"/>
- <module name="NeedBraces"/>
- <module name="LeftCurly"/>
- <module name="RightCurly"/>
-
- <!-- Class Design -->
- <module name="DesignForExtension"/>
- <module name="FinalClass"/>
- <!-- cannot recognize for lombok @NoArgsConstructor(access = AccessLevel.PRIVATE), just ignore -->
- <!--<module name="HideUtilityClassConstructor"/>-->
- <module name="OneTopLevelClass"/>
- <module name="InterfaceIsType"/>
- <module name="InnerTypeLast"/>
- <module name="VisibilityModifier"/>
- <module name="MutableException"/>
- <module name="ThrowsCount"/>
-
- <!-- Metrics -->
- <module name="BooleanExpressionComplexity"/>
- <module name="ClassDataAbstractionCoupling">
- <property name="max" value="10"/>
- </module>
- <module name="ClassFanOutComplexity"/>
- <module name="CyclomaticComplexity"/>
- <module name="NPathComplexity"/>
- <module name="JavaNCSS"/>
-
- <!-- Miscellaneous -->
- <module name="ArrayTypeStyle"/>
- <module name="UpperEll"/>
- <module name="AvoidEscapedUnicodeCharacters"/>
- <module name="DescendantToken"/>
- <module name="FinalParameters"/>
- <module name="Indentation"/>
- <module name="OuterTypeFilename"/>
- <module name="TodoComment"/>
- <module name="TrailingComment"/>
- <module name="UncommentedMain">
- <property name="excludedClasses" value="\.Bootstrap"/>
- </module>
-
- <!-- Javadoc Comments -->
- <module name="AtclauseOrder">
- <property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
- </module>
- <module name="NonEmptyAtclauseDescription"/>
- <module name="JavadocParagraph"/>
- <module name="JavadocStyle"/>
- <module name="JavadocTagContinuationIndentation"/>
- <module name="SingleLineJavadoc"/>
- <module name="SummaryJavadoc"/>
- <!--
- <module name="JavadocType">
- <property name="scope" value="public"/>
- </module>
- -->
- <module name="JavadocMethod">
- <property name="scope" value="public"/>
- <property name="allowedAnnotations" value="Override, Test, Before, After, BeforeClass, AfterClass, Parameterized, Parameters"/>
- <property name="ignoreMethodNamesRegex" value="^assert.*$|^verify.*$"/>
- <property name="tokens" value="METHOD_DEF, ANNOTATION_FIELD_DEF"/>
- </module>
-
- <!-- Filters -->
- <module name="SuppressionCommentFilter"/>
- <module name="SuppressWithNearbyCommentFilter"/>
- </module>
-</module>
diff --git a/shardingsphere-agent/src/resources/checkstyle_ci.xml b/shardingsphere-agent/src/resources/checkstyle_ci.xml
deleted file mode 100644
index 4be8057..0000000
--- a/shardingsphere-agent/src/resources/checkstyle_ci.xml
+++ /dev/null
@@ -1,238 +0,0 @@
-<?xml version="1.0"?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one or more
- ~ contributor license agreements. See the NOTICE file distributed with
- ~ this work for additional information regarding copyright ownership.
- ~ The ASF licenses this file to You under the Apache License, Version 2.0
- ~ (the "License"); you may not use this file except in compliance with
- ~ the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd">
-<module name = "Checker">
- <property name="charset" value="UTF-8"/>
- <property name="severity" value="error"/>
- <property name="fileExtensions" value="java, properties, xml"/>
- <module name="Header">
- <property name="fileExtensions" value="java"/>
- </module>
- <module name="FileTabCharacter">
- <property name="eachLine" value="true"/>
- </module>
- <module name="FileLength"/>
- <module name="NewlineAtEndOfFile">
- <property name="lineSeparator" value="lf"/>
- </module>
- <module name="Translation"/>
- <module name="UniqueProperties"/>
- <module name="SeverityMatchFilter"/>
-
- <module name="TreeWalker">
-
- <!-- Naming Conventions -->
- <module name="PackageName">
- <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
- </module>
- <module name="TypeName"/>
- <module name="MethodName"/>
- <module name="InterfaceTypeParameterName"/>
- <module name="ClassTypeParameterName"/>
- <module name="MethodTypeParameterName"/>
- <module name="ConstantName"/>
- <module name="StaticVariableName"/>
- <module name="MemberName"/>
- <module name="LocalVariableName"/>
- <module name="LocalFinalVariableName"/>
- <module name="ParameterName"/>
- <module name="CatchParameterName"/>
- <module name="AbbreviationAsWordInName">
- <property name="allowedAbbreviationLength" value="6"/>
- </module>
-
- <!-- Size Violations -->
- <module name="AnonInnerLength"/>
- <module name="MethodLength"/>
- <module name="LineLength">
- <property name="max" value="200"/>
- </module>
- <module name="OuterTypeNumber"/>
-
- <!-- Whitespace -->
- <module name="EmptyForInitializerPad"/>
- <module name="EmptyForIteratorPad"/>
- <module name="MethodParamPad"/>
- <module name="ParenPad"/>
- <module name="TypecastParenPad"/>
- <module name="NoLineWrap"/>
- <module name="OperatorWrap"/>
- <module name="SeparatorWrap">
- <property name="id" value="SeparatorWrapDot"/>
- <property name="tokens" value="DOT"/>
- <property name="option" value="nl"/>
- </module>
- <module name="SeparatorWrap">
- <property name="id" value="SeparatorWrapComma"/>
- <property name="tokens" value="COMMA"/>
- <property name="option" value="EOL"/>
- </module>
- <module name="SeparatorWrap">
- <property name="id" value="SeparatorWrapEllipsis"/>
- <property name="tokens" value="ELLIPSIS"/>
- <property name="option" value="EOL"/>
- </module>
- <module name="SeparatorWrap">
- <property name="id" value="SeparatorWrapArrayDeclarator"/>
- <property name="tokens" value="ARRAY_DECLARATOR"/>
- <property name="option" value="EOL"/>
- </module>
- <module name="SeparatorWrap">
- <property name="id" value="SeparatorWrapMethodRef"/>
- <property name="tokens" value="METHOD_REF"/>
- <property name="option" value="nl"/>
- </module>
- <module name="GenericWhitespace"/>
- <module name="NoWhitespaceBefore"/>
- <module name="NoWhitespaceAfter"/>
- <module name="WhitespaceAround"/>
- <module name="WhitespaceAfter"/>
- <module name="SingleSpaceSeparator"/>
- <module name="EmptyLineSeparator">
- <property name="allowMultipleEmptyLines" value="false"/>
- <property name="allowMultipleEmptyLinesInsideClassMembers" value="false"/>
- </module>
-
- <!-- Imports -->
- <module name="AvoidStarImport"/>
- <module name="AvoidStaticImport">
- <property name="excludes" value="org.junit.Assert.*,org.hamcrest.CoreMatchers.*,org.mockito.Mockito.*,org.mockito.ArgumentMatchers.*"/>
- </module>
- <module name="IllegalImport"/>
- <module name="RedundantImport"/>
- <module name="UnusedImports"/>
- <module name="CustomImportOrder"/>
-
- <!-- Annotations -->
- <module name="AnnotationLocation">
- <property name="id" value="AnnotationLocationMostCases"/>
- <property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/>
- </module>
- <module name="AnnotationLocation">
- <property name="id" value="AnnotationLocationVariables"/>
- <property name="tokens" value="VARIABLE_DEF"/>
- <property name="allowSamelineMultipleAnnotations" value="true"/>
- </module>
- <module name="AnnotationUseStyle"/>
- <module name="MissingOverride"/>
- <module name="SuppressWarnings"/>
- <module name="MissingDeprecated"/>
- <module name="SuppressWarningsHolder"/>
-
- <!-- Modifiers -->
- <module name="ModifierOrder"/>
- <module name="RedundantModifier"/>
-
- <!-- Coding -->
- <module name="ArrayTrailingComma"/>
- <module name="CovariantEquals"/>
- <module name="DefaultComesLast"/>
- <module name="DeclarationOrder"/>
- <module name="EmptyStatement"/>
- <module name="EqualsAvoidNull"/>
- <module name="ExplicitInitialization"/>
- <module name="FallThrough"/>
- <module name="IllegalInstantiation"/>
- <module name="IllegalCatch"/>
- <module name="IllegalThrows"/>
- <module name="IllegalType">
- <property name="tokens" value="METHOD_DEF,PARAMETER_DEF,VARIABLE_DEF"/>
- </module>
- <module name="IllegalTokenText">
- <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
- <property name="format" value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
- <property name="message" value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
- </module>
- <module name="MissingSwitchDefault"/>
- <module name="ModifiedControlVariable"/>
- <module name="MultipleVariableDeclarations"/>
- <module name="NestedIfDepth"/>
- <module name="NestedTryDepth"/>
- <module name="NoClone"/>
- <module name="NoFinalizer"/>
- <module name="SuperClone"/>
- <module name="SuperFinalize"/>
- <module name="OneStatementPerLine"/>
- <module name="OverloadMethodsDeclarationOrder"/>
- <module name="PackageDeclaration"/>
- <module name="ParameterAssignment"/>
- <module name="SimplifyBooleanExpression"/>
- <module name="SimplifyBooleanReturn"/>
- <module name="StringLiteralEquality"/>
- <module name="UnnecessaryParentheses"/>
- <module name="VariableDeclarationUsageDistance"/>
-
- <!-- Block Checks -->
- <module name="EmptyBlock"/>
- <module name="EmptyCatchBlock">
- <property name="exceptionVariableName" value="expected|ignore"/>
- </module>
- <module name="AvoidNestedBlocks"/>
- <module name="NeedBraces"/>
- <module name="LeftCurly"/>
- <module name="RightCurly"/>
-
- <!-- Class Design -->
- <module name="FinalClass"/>
- <!-- cannot recognize for lombok @NoArgsConstructor(access = AccessLevel.PRIVATE), just ignore -->
- <!--<module name="HideUtilityClassConstructor"/>-->
- <module name="OneTopLevelClass"/>
- <module name="InterfaceIsType"/>
- <module name="InnerTypeLast"/>
- <module name="VisibilityModifier"/>
- <module name="MutableException"/>
- <module name="ThrowsCount"/>
-
- <!-- Miscellaneous -->
- <module name="ArrayTypeStyle"/>
- <module name="UpperEll"/>
- <module name="AvoidEscapedUnicodeCharacters"/>
- <module name="DescendantToken"/>
- <module name="FinalParameters"/>
- <module name="Indentation"/>
- <module name="OuterTypeFilename"/>
- <module name="TodoComment"/>
- <module name="TrailingComment"/>
- <module name="UncommentedMain">
- <property name="excludedClasses" value="\.Bootstrap"/>
- </module>
-
- <!-- Javadoc Comments -->
- <module name="AtclauseOrder">
- <property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
- </module>
- <module name="NonEmptyAtclauseDescription"/>
- <module name="JavadocParagraph"/>
- <module name="JavadocStyle"/>
- <module name="JavadocTagContinuationIndentation"/>
- <module name="SingleLineJavadoc"/>
- <module name="SummaryJavadoc"/>
-
- <module name="JavadocMethod">
- <property name="scope" value="public"/>
- <property name="allowedAnnotations" value="Override, Test, Before, After, BeforeClass, AfterClass, Parameterized, Parameters"/>
- <property name="ignoreMethodNamesRegex" value="^assert.*$|^verify.*$"/>
- <property name="tokens" value="METHOD_DEF, ANNOTATION_FIELD_DEF"/>
- </module>
-
- <!-- Filters -->
- <module name="SuppressionCommentFilter"/>
- <module name="SuppressWithNearbyCommentFilter"/>
- </module>
-</module>
diff --git a/shardingsphere-agent/src/resources/copyright.txt b/shardingsphere-agent/src/resources/copyright.txt
deleted file mode 100644
index 2944f98..0000000
--- a/shardingsphere-agent/src/resources/copyright.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
diff --git a/shardingsphere-agent/src/resources/ruleset.xml b/shardingsphere-agent/src/resources/ruleset.xml
deleted file mode 100644
index b676150..0000000
--- a/shardingsphere-agent/src/resources/ruleset.xml
+++ /dev/null
@@ -1,124 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one or more
- ~ contributor license agreements. See the NOTICE file distributed with
- ~ this work for additional information regarding copyright ownership.
- ~ The ASF licenses this file to You under the Apache License, Version 2.0
- ~ (the "License"); you may not use this file except in compliance with
- ~ the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<ruleset xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="full-pmd-ruleset"
- xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
- <description>Full 5.1.1 PMD rule set</description>
- <exclude-pattern>.*/target/.*</exclude-pattern>
- <rule ref="rulesets/java/basic.xml" />
- <rule ref="rulesets/ecmascript/basic.xml" />
- <rule ref="rulesets/jsp/basic.xml" />
- <rule ref="rulesets/vm/basic.xml" />
- <rule ref="rulesets/xml/basic.xml" />
- <rule ref="rulesets/java/braces.xml" />
- <rule ref="rulesets/ecmascript/braces.xml" />
- <rule ref="rulesets/java/clone.xml" />
- <rule ref="rulesets/java/codesize.xml" />
- <rule ref="rulesets/java/comments.xml">
- <exclude name="CommentRequired" />
- </rule>
- <rule ref="rulesets/java/controversial.xml">
- <exclude name="DataflowAnomalyAnalysis" />
- <exclude name="OnlyOneReturn" />
- <exclude name="AtLeastOneConstructor" />
- <exclude name="DefaultPackage" />
- <exclude name="CallSuperInConstructor" />
- <exclude name="UseConcurrentHashMap" />
- <exclude name="AvoidLiteralsInIfCondition" />
- <exclude name="AvoidUsingVolatile" />
- </rule>
- <rule ref="rulesets/java/coupling.xml">
- <exclude name="LawOfDemeter" />
- <exclude name="ExcessiveImports" />
- </rule>
- <rule ref="rulesets/java/design.xml">
- <exclude name="ConfusingTernary" />
- <exclude name="FinalFieldCouldBeStatic" />
- <exclude name="SimpleDateFormatNeedsLocale" />
- <exclude name="UseLocaleWithCaseConversions" />
- <exclude name="ImmutableField" />
- <exclude name="AvoidSynchronizedAtMethodLevel" />
- <exclude name="SingularField" />
- <exclude name="AbstractClassWithoutAnyMethod" />
- <exclude name="UncommentedEmptyMethod" />
- <exclude name="AbstractClassWithoutAbstractMethod" />
- <exclude name="EmptyMethodInAbstractClassShouldBeAbstract" />
- <exclude name="UseVarargs" />
- </rule>
- <rule ref="rulesets/java/empty.xml" />
- <rule ref="rulesets/java/basic.xml" />
- <rule ref="rulesets/java/finalizers.xml" />
- <rule ref="rulesets/java/imports.xml">
- <exclude name="TooManyStaticImports" />
- </rule>
- <rule ref="rulesets/java/j2ee.xml">
- <exclude name="DoNotUseThreads" />
- </rule>
- <rule ref="rulesets/java/junit.xml">
- <exclude name="JUnitAssertionsShouldIncludeMessage" />
- <exclude name="JUnitTestContainsTooManyAsserts" />
- <exclude name="TestClassWithoutTestCases" />
- </rule>
- <rule ref="rulesets/java/logging-jakarta-commons.xml" />
- <rule ref="rulesets/java/logging-java.xml" />
- <rule ref="rulesets/java/migrating.xml" />
- <rule ref="rulesets/java/naming.xml">
- <exclude name="LongVariable" />
- </rule>
- <rule ref="rulesets/java/optimizations.xml">
- <exclude name="LocalVariableCouldBeFinal" />
- <exclude name="SimplifyStartsWith" />
- <exclude name="AvoidInstantiatingObjectsInLoops" />
- </rule>
- <rule ref="rulesets/java/sunsecure.xml" />
- <rule ref="rulesets/java/strictexception.xml">
- <exclude name="AvoidCatchingThrowable" />
- <exclude name="AvoidCatchingGenericException" />
- <exclude name="SignatureDeclareThrowsException" />
- </rule>
- <rule ref="rulesets/java/strings.xml">
- <exclude name="AvoidDuplicateLiterals" />
- </rule>
- <rule ref="rulesets/ecmascript/unnecessary.xml" />
- <rule ref="rulesets/java/unnecessary.xml" />
- <rule ref="rulesets/java/basic.xml" />
- <rule ref="rulesets/ecmascript/unnecessary.xml" />
- <rule ref="rulesets/java/unusedcode.xml">
- <exclude name="UnusedPrivateField" />
- <exclude name="UnusedPrivateMethod" />
- </rule>
- <rule ref="rulesets/xsl/xpath.xml" />
-
- <rule ref="rulesets/java/comments.xml/CommentSize">
- <properties>
- <property name="maxLines" value="40" />
- <property name="maxLineLength" value="160" />
- </properties>
- </rule>
- <rule ref="rulesets/java/codesize.xml/TooManyMethods">
- <properties>
- <property name="maxmethods" value="30" />
- </properties>
- </rule>
- <rule ref="rulesets/java/design.xml/CloseResource">
- <properties>
- <property name="types" value="[java.sql.Connection, java.sql.ResultSet]" />
- </properties>
- </rule>
-</ruleset>