From 4b7296c0c693e1b1bb261e2a3df0a7bde875eb13 Mon Sep 17 00:00:00 2001 From: gudaoxuri Date: Fri, 12 Jan 2024 08:37:29 +0800 Subject: [PATCH] Remove copyright comment. --- README.adoc | 51 +- ROADMAP.adoc | 35 - deploy.sh | 16 +- devops/cicd/gitlabci/.gitlab-ci-template.yml | 17 - devops/cicd/jenkins/scripts/dew-devops.groovy | 16 +- .../scripts/dew-maven-agent-update.groovy | 16 - devops/devops-test-example.properties | 15 - devops/devops-test.properties | 15 - devops/it/pom.xml | 25 +- .../it/helloworld-backend/invoker.properties | 15 - devops/it/src/it/helloworld-backend/pom.xml | 22 +- .../idealworld/dew/devops/it/Application.java | 16 - .../idealworld/dew/devops/it/Controller.java | 16 - .../src/it/helloworld-backend/verify.groovy | 16 - .../it/helloworld-frontend/babel.config.js | 16 - .../it/helloworld-frontend/invoker.properties | 15 - devops/it/src/it/helloworld-frontend/pom.xml | 22 +- .../it/helloworld-frontend/public/index.html | 41 +- .../it/src/it/helloworld-frontend/src/App.vue | 16 - .../src/components/HelloWorld.vue | 16 - .../it/src/it/helloworld-frontend/src/main.js | 16 - .../src/it/helloworld-frontend/verify.groovy | 16 - .../it/helloworld-library/invoker.properties | 15 - devops/it/src/it/helloworld-library/pom.xml | 22 +- .../idealworld/dew/devops/it/SomeHelper.java | 16 - .../src/it/helloworld-library/verify.groovy | 16 - .../it/todo/backend/libraries/common/pom.xml | 22 +- .../dew/devops/it/todo/common/Constants.java | 16 - .../it/todo/common/TodoParentApplication.java | 16 - .../it/todo/common/domain/IdEntity.java | 16 - .../dew/devops/it/todo/common/SomeTest.java | 16 - .../it/todo/backend/services/compute/pom.xml | 22 +- .../todo/compute/TodoComputeApplication.java | 16 - .../compute/controller/ComputeController.java | 16 - .../todo/compute/service/ComputeService.java | 16 - .../it/todo/backend/services/kernel/pom.xml | 25 +- .../it/todo/kernel/TodoKernelApplication.java | 16 - .../kernel/controller/TodoController.java | 16 - .../devops/it/todo/kernel/domain/Todo.java | 16 - .../kernel/repository/TodoRepository.java | 16 - .../it/todo/kernel/service/TodoService.java | 16 - .../dew/devops/it/todo/kernel/KernelTest.java | 16 - .../it/todo/backend/services/notifier/pom.xml | 22 +- .../notifier/TodoNotifierApplication.java | 16 - .../controller/NotifierController.java | 23 +- devops/it/src/it/todo/frontend/.gitignore | 3 +- devops/it/src/it/todo/frontend/config/dev.js | 16 - .../it/src/it/todo/frontend/config/index.js | 16 - devops/it/src/it/todo/frontend/config/prod.js | 16 - devops/it/src/it/todo/frontend/config/uat.js | 16 - devops/it/src/it/todo/frontend/global.d.ts | 16 - devops/it/src/it/todo/frontend/pom.xml | 22 +- devops/it/src/it/todo/frontend/src/app.scss | 16 - devops/it/src/it/todo/frontend/src/app.tsx | 16 - .../src/components/dew-header/dew-header.scss | 16 - .../src/components/dew-header/dew-header.tsx | 16 - devops/it/src/it/todo/frontend/src/index.html | 25 +- .../it/todo/frontend/src/pages/todo/todo.scss | 16 +- .../it/todo/frontend/src/pages/todo/todo.tsx | 16 - .../src/it/todo/frontend/src/services/api.ts | 16 - devops/it/src/it/todo/invoker.properties | 15 - devops/it/src/it/todo/pom.xml | 22 +- devops/it/src/it/todo/verify.groovy | 16 - .../dew/devops/it/BasicProcessor.java | 19 +- .../dew/devops/it/InitAndCleanIT.java | 37 +- .../it/verify/HelloWorldBackendVerify.java | 53 +- .../it/verify/HelloWorldFrontendVerify.java | 45 +- .../it/verify/HelloWorldLibraryVerify.java | 19 +- .../dew/devops/it/verify/TodoVerify.java | 22 +- .../dew/devops/it/verify/Verify.java | 20 +- devops/maven/dew-maven-agent/pom.xml | 23 +- .../dew/devops/agent/MavenAgent.java | 16 - .../dew/devops/agent/SkipCheck.java | 16 - .../dew/devops/agent/Transformer.java | 18 +- .../dew/devops/agent/BuildTest.java | 18 +- .../lifecycle/internal/LifecycleStarter.java | 173 +- .../lifecycle/internal/MojoExecutor.java | 356 +- .../dew/devops/agent/BuildTest.java | 18 +- .../lifecycle/internal/MojoExecutor.java | 358 +- .../singlethreaded/SingleThreadedBuilder.java | 30 +- .../dew/devops/agent/BuildTest.java | 18 +- .../lifecycle/internal/MojoExecutor.java | 52 +- .../singlethreaded/SingleThreadedBuilder.java | 24 +- .../dew/devops/agent/BuildTest.java | 18 +- .../lifecycle/internal/MojoExecutor.java | 340 +- .../singlethreaded/SingleThreadedBuilder.java | 30 +- .../dew/devops/agent/BuildTest.java | 18 +- .../lifecycle/internal/MojoExecutor.java | 340 +- .../singlethreaded/SingleThreadedBuilder.java | 30 +- .../dew/devops/agent/BuildTest.java | 18 +- .../lifecycle/internal/MojoExecutor.java | 342 +- .../singlethreaded/SingleThreadedBuilder.java | 30 +- .../dew/devops/agent/BuildTest.java | 18 +- .../lifecycle/internal/MojoExecutor.java | 342 +- .../singlethreaded/SingleThreadedBuilder.java | 30 +- devops/maven/dew-maven-plugin/pom.xml | 23 +- .../idealworld/dew/devops/kernel/DevOps.java | 56 +- .../devops/kernel/config/ConfigBuilder.java | 133 +- .../dew/devops/kernel/config/DewApp.java | 25 +- .../dew/devops/kernel/config/DewConfig.java | 16 - .../dew/devops/kernel/config/DewDocker.java | 18 +- .../dew/devops/kernel/config/DewKube.java | 19 +- .../dew/devops/kernel/config/DewProfile.java | 19 +- .../dew/devops/kernel/config/FinalConfig.java | 16 - .../kernel/config/FinalProjectConfig.java | 17 - .../kernel/exception/ConfigException.java | 17 - .../kernel/exception/GitDiffException.java | 19 +- .../exception/GlobalProcessException.java | 17 - .../exception/ProjectProcessException.java | 17 - .../dew/devops/kernel/flow/BasicFlow.java | 16 - .../devops/kernel/flow/NoNeedProcessFLow.java | 16 - .../kernel/flow/debug/DefaultDebugFlow.java | 35 +- .../kernel/flow/log/DefaultLogFlow.java | 22 +- .../flow/refresh/DefaultRefreshFlow.java | 77 +- .../kernel/flow/release/BasicPrepareFlow.java | 25 +- .../kernel/flow/release/DockerBuildFlow.java | 25 +- .../kernel/flow/release/KubeReleaseFlow.java | 73 +- .../kernel/flow/release/MavenReleaseFlow.java | 22 +- .../flow/rollback/DefaultRollbackFlow.java | 34 +- .../kernel/flow/scale/DefaultScaleFlow.java | 16 - .../flow/unrelease/DefaultUnReleaseFlow.java | 16 - .../function/ExecuteEventProcessor.java | 72 +- .../kernel/function/NeedProcessChecker.java | 69 +- .../devops/kernel/function/PodSelector.java | 41 +- .../kernel/function/StatusReporter.java | 16 - .../kernel/function/VersionController.java | 46 +- .../devops/kernel/helper/DockerHelper.java | 29 +- .../dew/devops/kernel/helper/DockerOpt.java | 70 +- .../dew/devops/kernel/helper/GitHelper.java | 16 - .../dew/devops/kernel/helper/GitOpt.java | 25 +- .../kernel/helper/KubeBasicMetadataMeta.java | 16 - .../devops/kernel/helper/KubeBasicRes.java | 16 - .../dew/devops/kernel/helper/KubeHelper.java | 20 +- .../dew/devops/kernel/helper/KubeOpt.java | 201 +- .../dew/devops/kernel/helper/KubeRES.java | 16 - .../devops/kernel/helper/KubeWatchCall.java | 19 +- .../kernel/helper/MultiInstProcessor.java | 16 - .../dew/devops/kernel/helper/YamlHelper.java | 16 - .../kernel/plugin/appkind/AppKindPlugin.java | 16 - .../FrontendNativeNodeAppKindPlugin.java | 17 - .../FrontendNativeNodeBuildFlow.java | 31 +- .../FrontendNativeNodePrepareFlow.java | 19 +- .../FrontendNonNativeNodeAppKindPlugin.java | 17 - .../FrontendNonNativeNodeBuildFlow.java | 27 +- .../FrontendNonNativeNodePrepareFlow.java | 19 +- .../appkind/jvmlib/JvmLibAppKindPlugin.java | 16 - .../JvmServiceSpringBootAppKindPlugin.java | 30 +- .../JvmServiceSpringBootBuildFlow.java | 34 +- .../JvmServiceSpringBootPrepareFlow.java | 16 - .../plugin/appkind/pom/PomAppKindPlugin.java | 16 - .../kernel/plugin/deploy/DeployPlugin.java | 16 - .../kubernetes/KubernetesDeployPlugin.java | 19 +- .../deploy/maven/MavenDeployPlugin.java | 19 +- .../kernel/resource/KubeConfigMapBuilder.java | 17 - .../resource/KubeDeploymentBuilder.java | 55 +- .../KubeHorizontalPodAutoscalerBuilder.java | 19 +- .../kernel/resource/KubeResourceBuilder.java | 16 - .../kernel/resource/KubeServiceBuilder.java | 45 +- .../dew/devops/kernel/util/DewLog.java | 16 - .../kernel/util/ExecuteOnceProcessor.java | 16 - .../kernel/util/ExitMonitorProcessor.java | 16 - .../dew/devops/kernel/util/ShellHelper.java | 17 - .../dew/devops/maven/MavenDevOps.java | 84 +- .../maven/function/AppKindPluginSelector.java | 37 +- .../maven/function/DependenciesResolver.java | 24 +- .../maven/function/DeployPluginSelector.java | 17 - .../maven/function/MavenSkipProcessor.java | 16 - .../dew/devops/maven/mojo/BasicMojo.java | 790 +- .../dew/devops/maven/mojo/DebugMojo.java | 16 - .../dew/devops/maven/mojo/InitMojo.java | 16 - .../dew/devops/maven/mojo/LogMojo.java | 16 - .../dew/devops/maven/mojo/RefreshMojo.java | 16 - .../dew/devops/maven/mojo/ReleaseMojo.java | 44 +- .../dew/devops/maven/mojo/RollbackMojo.java | 16 - .../dew/devops/maven/mojo/ScaleMojo.java | 16 - .../dew/devops/maven/mojo/UnReleaseMojo.java | 16 - .../jvmservice_springboot/debug-clear.sh | 16 - .../jvmservice_springboot/debug-java.sh | 16 - .../jvmservice_springboot/run-java.sh | 16 - .../idealworld/dew/devops/BasicTest.java | 19 +- .../kernel/config/TestConfigBuilder.java | 142 +- .../kernel/helper/DockerHelperTest.java | 51 +- .../devops/kernel/helper/KubeHelperTest.java | 205 +- .../dew/devops/kernel/helper/TestYaml.java | 16 - .../dew/devops/kernel/helper/TestYamlSub.java | 16 - .../devops/kernel/helper/YamlHelperTest.java | 17 - .../idealworld/dew/devops/misc/MockTest.java | 19 +- .../src/test/java/mock/Mock.java | 16 - .../src/test/java/mock/MockGitOpt.java | 16 - devops/pom.xml | 22 +- devops/sh/dew-devops.sh | 16 +- docs/index.html | 6606 +++++++++++------ docs/pom.xml | 30 +- examples/auth-example/pom.xml | 22 +- .../example/auth/AuthExampleApplication.java | 16 - .../example/auth/AuthExampleController.java | 19 +- .../dew/example/auth/dto/OptInfoExt.java | 16 - .../idealworld/dew/example/AuthTest.java | 22 +- examples/bone-example/pom.xml | 22 +- .../example/bone/BoneExampleApplication.java | 16 - .../dew/example/bone/BoneExampleConfig.java | 16 - .../example/bone/BoneExampleInitiator.java | 17 - .../bone-example/native-image.properties | 16 +- .../bone/BoneExampleApplicationTest.java | 19 +- examples/cluster-example/pom.xml | 22 +- .../cluster/ClusterExampleApplication.java | 16 - .../cluster/ClusterExampleInitiator.java | 22 +- examples/hbase-example/pom.xml | 22 +- .../hbase/HBaseExampleApplication.java | 16 - .../example/hbase/HBaseExampleInitiator.java | 17 - examples/idempotent-example/pom.xml | 22 +- .../idempotent/IdempotentController.java | 16 - .../IdempotentExampleApplication.java | 17 - .../example/idempotent/IdempotentService.java | 16 - examples/pom.xml | 22 +- examples/skywalking-example/pom.xml | 23 +- .../SkyWalkingExampleApplication.java | 18 +- .../SkyWalkingExampleController.java | 22 +- examples/web-example/pom.xml | 23 +- .../dew/example/web/RbumCertDto.java | 17 - .../example/web/WebExample2Controller.java | 19 +- .../example/web/WebExampleApplication.java | 16 - .../dew/example/web/WebExampleController.java | 26 +- .../dew/example/web/DewSDKGenTest.java | 43 +- framework/assists/sdkgen-maven-plugin/pom.xml | 24 +- .../idealworld/dew/sdkgen/Constants.java | 16 - .../dew/sdkgen/helper/HandlebarsHelper.java | 16 - .../dew/sdkgen/helper/MavenHelper.java | 45 +- .../dew/sdkgen/helper/NameHelper.java | 16 - .../lang/java/DewJavaClientCodegen.java | 16 - .../dew/sdkgen/maven/SDKGenerateMojo.java | 17 - .../dew/sdkgen/maven/TestGenerateMojo.java | 17 - .../sdkgen/process/SDKGenerateProcess.java | 18 +- .../dew/sdkgen/process/SDKReleaseProcess.java | 21 +- .../sdkgen/process/TestGenerateProcess.java | 42 +- .../resources/handlebars/Java/sdk.mustache | 3 +- .../idealworld/dew/devops/BasicTest.java | 17 - framework/checkstyle/checkstyle.xml | 187 +- framework/modules/boot-starter/pom.xml | 22 +- .../main/java/group/idealworld/dew/Dew.java | 42 +- .../java/group/idealworld/dew/DewStartup.java | 16 - .../group/idealworld/dew/core/DewConfig.java | 19 +- .../group/idealworld/dew/core/DewContext.java | 16 - .../idealworld/dew/core/auth/AuthAdapter.java | 16 - .../dew/core/auth/AuthAutoConfiguration.java | 16 - .../dew/core/auth/BasicAuthAdapter.java | 34 +- .../dew/core/auth/dto/BasicOptInfo.java | 17 - .../idealworld/dew/core/auth/dto/OptInfo.java | 16 - .../dew/core/basic/fun/VoidExecutor.java | 16 - .../dew/core/basic/fun/VoidPredicate.java | 16 - .../basic/loading/DewLoadImmediately.java | 16 - .../dew/core/basic/resp/StandardResp.java | 61 +- .../dew/core/basic/utils/NetUtils.java | 16 - .../convert/ConvertAutoConfiguration.java | 17 - .../basic/utils/convert/InstantConvert.java | 16 - .../utils/convert/LocalDateConverter.java | 16 - .../utils/convert/LocalDateTimeConverter.java | 16 - .../utils/convert/LocalTimeConverter.java | 16 - .../dew/core/doc/DocAutoConfiguration.java | 117 +- .../dew/core/notification/AbsChannel.java | 16 - .../dew/core/notification/Channel.java | 16 - .../dew/core/notification/DDChannel.java | 19 +- .../dew/core/notification/HTTPChannel.java | 16 - .../dew/core/notification/MAILChannel.java | 19 +- .../dew/core/notification/Notify.java | 57 +- .../dew/core/notification/NotifyConfig.java | 16 - .../web/error/ErrorAutoConfiguration.java | 18 +- .../dew/core/web/error/ErrorController.java | 47 +- .../interceptor/AutoTrimConfiguration.java | 18 - .../interceptor/BasicHandlerInterceptor.java | 16 - .../IdentInfoHandlerInterceptor.java | 29 +- .../InterceptorWebAutoConfiguration.java | 16 - .../interceptor/RouterHandlerInterceptor.java | 36 +- .../interceptor/TokenHandlerInterceptor.java | 18 +- .../dew/core/web/validation/CreateGroup.java | 16 - .../dew/core/web/validation/IdNumber.java | 20 +- .../web/validation/IdNumberValidator.java | 16 - .../dew/core/web/validation/Phone.java | 20 +- .../core/web/validation/PhoneValidator.java | 16 - .../dew/core/web/validation/RemoveGroup.java | 16 - .../dew/core/web/validation/UpdateGroup.java | 16 - .../com/trc/test/BootTestApplication.java | 16 - .../test/java/com/trc/test/GeneralTest.java | 20 +- .../test/java/com/trc/test/IdentInfoTest.java | 74 +- .../com/trc/test/auth/AuthController.java | 21 +- .../test/java/com/trc/test/auth/AuthTest.java | 330 +- .../java/com/trc/test/auth/OptInfoExt.java | 16 - .../com/trc/test/cluster/ClusterTest.java | 20 +- .../notification/NotifyIntegrationTest.java | 17 - .../com/trc/test/notification/NotifyTest.java | 121 +- .../java/com/trc/test/web/AuthException.java | 16 - .../java/com/trc/test/web/WebController.java | 28 +- .../test/java/com/trc/test/web/WebTest.java | 272 +- .../com/trc/test/web2/Web2Controller.java | 17 - framework/modules/cluster-common-test/pom.xml | 22 +- .../core/cluster/test/ClusterCacheTest.java | 19 +- .../cluster/test/ClusterElectionTest.java | 16 - .../core/cluster/test/ClusterLockTest.java | 16 - .../dew/core/cluster/test/ClusterMQTest.java | 16 - .../dew/core/cluster/test/ClusterMapTest.java | 16 - framework/modules/cluster-common/pom.xml | 22 +- .../dew/core/cluster/AbsClusterElection.java | 17 - .../dew/core/cluster/AbsClusterMQ.java | 22 +- .../idealworld/dew/core/cluster/Cluster.java | 25 +- .../dew/core/cluster/ClusterCache.java | 24 +- .../dew/core/cluster/ClusterCacheWrap.java | 16 - .../dew/core/cluster/ClusterElection.java | 16 - .../dew/core/cluster/ClusterElectionWrap.java | 16 - .../dew/core/cluster/ClusterLock.java | 22 +- .../dew/core/cluster/ClusterLockWrap.java | 16 - .../dew/core/cluster/ClusterMQ.java | 19 - .../dew/core/cluster/ClusterMap.java | 16 - .../dew/core/cluster/ClusterMapWrap.java | 22 +- .../dew/core/cluster/VoidProcessFun.java | 16 - .../dew/core/cluster/dto/MessageHeader.java | 16 - .../dew/core/cluster/dto/MessageWrap.java | 16 - .../exception/NotImplementedException.java | 16 - .../dew/core/cluster/ha/ClusterHA.java | 16 - .../dew/core/cluster/ha/H2ClusterHA.java | 28 +- .../dew/core/cluster/ha/dto/HAConfig.java | 17 - .../cluster/ha/entity/PrepareCommitMsg.java | 16 - framework/modules/cluster-hazelcast/pom.xml | 22 +- .../spi/hazelcast/HazelcastAdapter.java | 19 +- .../hazelcast/HazelcastAutoConfiguration.java | 27 +- .../spi/hazelcast/HazelcastClusterLock.java | 16 - .../hazelcast/HazelcastClusterLockWrap.java | 16 - .../spi/hazelcast/HazelcastClusterMQ.java | 20 +- .../spi/hazelcast/HazelcastClusterMap.java | 17 - .../hazelcast/HazelcastClusterMapWrap.java | 16 - .../spi/hazelcast/HazelcastConfig.java | 16 - .../dew/core/cluster/ClusterTest.java | 16 - framework/modules/cluster-mqtt/pom.xml | 22 +- .../core/cluster/spi/mqtt/MqttAdapter.java | 19 +- .../spi/mqtt/MqttAutoConfiguration.java | 16 - .../core/cluster/spi/mqtt/MqttClusterMQ.java | 24 +- .../dew/core/cluster/spi/mqtt/MqttConfig.java | 16 - .../dew/core/cluster/ClusterTest.java | 18 +- framework/modules/cluster-rabbit/pom.xml | 22 +- .../cluster/spi/rabbit/RabbitAdapter.java | 16 - .../spi/rabbit/RabbitAutoConfiguration.java | 16 - .../cluster/spi/rabbit/RabbitClusterMQ.java | 29 +- .../cluster/spi/rabbit/ReceiveBeforeFun.java | 16 - .../cluster/spi/rabbit/ReceiveErrorFun.java | 16 - .../cluster/spi/rabbit/ReceiveFinishFun.java | 16 - .../cluster/spi/rabbit/SendBeforeFun.java | 16 - .../core/cluster/spi/rabbit/SendErrorFun.java | 16 - .../cluster/spi/rabbit/SendFinishFun.java | 16 - .../dew/core/cluster/ClusterTest.java | 18 +- framework/modules/cluster-redis/pom.xml | 22 +- .../cluster/spi/redis/MultiRedisConfig.java | 17 - .../spi/redis/RedisAutoConfiguration.java | 30 +- .../cluster/spi/redis/RedisClusterCache.java | 21 +- .../spi/redis/RedisClusterCacheWrap.java | 19 +- .../spi/redis/RedisClusterElection.java | 16 - .../spi/redis/RedisClusterElectionWrap.java | 16 - .../cluster/spi/redis/RedisClusterLock.java | 16 - .../spi/redis/RedisClusterLockWrap.java | 16 - .../cluster/spi/redis/RedisClusterMQ.java | 21 +- .../cluster/spi/redis/RedisClusterMap.java | 19 +- .../spi/redis/RedisClusterMapWrap.java | 16 - .../redis/MultiConnectionConfiguration.java | 33 +- .../dew/core/cluster/ClusterTest.java | 28 +- framework/modules/cluster-rocket/pom.xml | 22 +- .../cluster/spi/rocket/ReceiveBeforeFun.java | 17 - .../cluster/spi/rocket/ReceiveErrorFun.java | 17 - .../cluster/spi/rocket/ReceiveFinishFun.java | 17 - .../cluster/spi/rocket/RocketAdapter.java | 17 - .../spi/rocket/RocketAutoConfiguration.java | 17 - .../cluster/spi/rocket/RocketClusterMQ.java | 27 +- .../cluster/spi/rocket/SendBeforeFun.java | 17 - .../core/cluster/spi/rocket/SendErrorFun.java | 17 - .../cluster/spi/rocket/SendFinishFun.java | 17 - .../dew/core/cluster/ClusterTest.java | 18 +- framework/modules/cluster-skywalking/pom.xml | 25 +- framework/modules/dbutils-starter/pom.xml | 22 +- .../idealworld/dew/core/dbutils/DewDB.java | 51 +- .../dew/core/dbutils/DewDBUtils.java | 17 +- .../dew/core/dbutils/dialect/Dialect.java | 21 +- .../core/dbutils/dialect/DialectFactory.java | 16 - .../dew/core/dbutils/dialect/DialectType.java | 16 - .../dew/core/dbutils/dialect/HiveDialect.java | 114 +- .../core/dbutils/dialect/MySQLDialect.java | 25 +- .../core/dbutils/dialect/PostgresDialect.java | 32 +- .../dew/core/dbutils/dto/DBUtilsConfig.java | 16 - .../dew/core/dbutils/dto/DSConfig.java | 16 - .../idealworld/dew/core/dbutils/dto/Meta.java | 16 - .../idealworld/dew/core/dbutils/dto/Page.java | 19 +- .../dew/core/dbutils/process/DBExecutor.java | 50 +- .../dew/core/dbutils/process/DSLoader.java | 17 +- .../dew/core/dbutils/utils/YamlHelper.java | 16 - .../idealworld/dew/core/dbutils/DBTest.java | 77 +- .../idealworld/dew/core/dbutils/User.java | 16 - framework/modules/hbase-starter/pom.xml | 22 +- .../core/hbase/HBaseAutoConfiguration.java | 34 +- .../dew/core/hbase/HBaseOperation.java | 22 +- .../dew/core/hbase/HBaseProperties.java | 33 +- .../dew/core/hbase/HBaseRunTimeException.java | 17 +- .../dew/core/hbase/HBaseTemplate.java | 24 +- .../dew/core/hbase/MutatorCallback.java | 21 +- .../idealworld/dew/core/hbase/RowMapper.java | 16 - .../dew/core/hbase/TableCallback.java | 16 - .../idealworld/dew/core/hbase/HBaseTest.java | 24 +- framework/modules/idempotent-starter/pom.xml | 22 +- .../dew/idempotent/DewIdempotent.java | 23 +- .../dew/idempotent/DewIdempotentConfig.java | 16 - .../idempotent/annotations/Idempotent.java | 16 - .../interceptor/IdempotentException.java | 16 - .../IdempotentHandlerInterceptor.java | 32 +- .../IdempotentWebAutoConfiguration.java | 17 - .../strategy/BloomFilterProcessor.java | 16 - .../strategy/IdempotentProcessor.java | 17 - .../idempotent/strategy/ItemProcessor.java | 16 - .../dew/idempotent/strategy/StatusEnum.java | 16 - .../dew/idempotent/strategy/StrategyEnum.java | 16 - .../dew/idempotent/IdempotentApplication.java | 17 - .../dew/idempotent/IdempotentController.java | 17 - .../dew/idempotent/IdempotentTest.java | 18 +- framework/modules/ossutils-starter/pom.xml | 22 +- framework/modules/parent-starter/pom.xml | 26 +- framework/modules/test-starter/pom.xml | 22 +- .../idealworld/dew/test/MqttExtension.java | 75 +- .../idealworld/dew/test/MySqlExtension.java | 22 +- .../dew/test/PostgreSqlExtension.java | 11 +- .../dew/test/RabbitMQExtension.java | 23 +- .../idealworld/dew/test/RedisExtension.java | 19 +- .../dew/test/RocketMQExtension.java | 28 +- framework/pom.xml | 22 +- pom.xml | 24 +- 428 files changed, 7813 insertions(+), 12536 deletions(-) delete mode 100644 ROADMAP.adoc diff --git a/README.adoc b/README.adoc index 301a3bed6..61688a793 100644 --- a/README.adoc +++ b/README.adoc @@ -1,8 +1,6 @@ [NOTE] ==== -本分支构建 ``Dew`` 3.x 版本,此版本移除了 `Spring Cloud`,服务调度完全基于 `Istio` 以进一步简化服务开发。 - -最新稳定版是 `2.1.0-rc` 请切换到 https://github.com/gudaoxuri/dew/tree/2.1.0-rc[2.1.0-RC] tag. +本分支构建 ``Dew`` 3.x 版本,此版本移除了 `Spring Cloud`,服务调度完全基于 `k8s` 以进一步简化服务开发。 如需基于 ``Spring boot 1.x`` 的非容器版本请切换到 https://github.com/gudaoxuri/dew/tree/1.5.1-RC[1.5.1-RC] tag. @@ -16,7 +14,7 @@ image::https://api.codacy.com/project/badge/Grade/aacfdad1579043f0a2c1928b53096b image::https://img.shields.io/badge/license-ASF2-blue.svg["Apache License 2",link="https://www.apache.org/licenses/LICENSE-2.0.txt"] image::https://img.shields.io/maven-central/v/group.idealworld.dew/parent-starter[Maven Central] -微服务一站式解决方案( http://doc.dew.idealworld.group ),提供:架构指南、容器优先/兼容Spring与Service Mesh的框架、最佳实践及DevOps标准化流程。 +微服务一站式解决方案( http://doc.dew.idealworld.group ),提供:架构指南、容器优先/兼容Spring与Service Mesh的框架、最佳实践。 [quote,] ____ @@ -51,7 +49,7 @@ ____ 上述问题是Dew必须面对的,应对的设计核心理念是: ---- -提供微服务架构指南 + 扩展主流微服务框架 + 标准化DevOps流程 +提供微服务架构指南 + 扩展主流微服务框架 ---- .**提供微服务架构指南** @@ -68,40 +66,6 @@ ____ 实现上我们选择 `Spring Boot` 这一业界主流框架,对上兼容 `Spring Boot` 与 `Service Mesh`。 -.**标准化DevOps流程** - -目前市场有两种主流的DevOps做法: - -* 以 ``Jenkins X`` 、 ``Gitlab CI`` 为代表的CI/CD工具主导的DevOps流程 - -> **集成度低、操作不友好** -> -> DevOps是一个系统性工程,想通过传统的CI/CD工具的方法实现难度较大 - -* 以 http://https://develop.aliyun.com/devops[阿里云] 、 https://azure.microsoft.com/zh-cn/solutions/devops/[Azure] -为代表的云厂商DevOps方案 - -> **平台依赖,不通用** -> -> 云厂商方案做了高度集成,弥补了工具型方案的不足,但问题也很明显,各厂商都有自己的一套标准,互不兼容,导致平台绑定,无法迁移 - -``Dew`` 在DevOps上另辟蹊径,以Maven为核心构建,其优点在于: - -. Maven是行业标准,并且兼容除JVM外的其它语言环境,可支撑所有主流项目 -. 可在本地执行完成DevOps开发流程,也可与CI/CD工具整合提供测试/生产等环境的DevOps -. 对CI/CD工具的依赖度低、开源、标准化,无厂商绑定 - -基于这一理念,我们提供的一体化的Maven插件,实现了: - -. CI/CD流程支持,自动化依赖管理、测试、质检、打包与发布、回滚、远程Debug等 -. 全面容器化,所有环境均为容器方案 -. 支持与 ``Gitlab CI`` 或其它 CI/CD服务整合 -. 实现针对JVM服务、类库、前端等主流项目的支撑 - -==== -一言蔽之, ``Dew`` 致力于成为微服务一站式解决方案。 -==== - === 项目结构 ---- @@ -115,14 +79,17 @@ ____ |- |- |- cluster-rabbit // RabbitMQ集群能力实现 |- |- |- cluster-redis // Redis集群能力实现 |- |- |- cluster-mqtt // MQTT集群能力实现 +|- |- |- cluster-rocket // Rocket MQ集群能力实现 +|- |- |- cluster-skywalking // Skywalking集群能力实现 |- |- |- idempotent-starter // 幂等处理模块 -|- |- |- notification // 通知处理模块 -|- |- |- test-starter // 单元测试模块 +|- |- |- dbutils-starter // 动态数据库处理模块 +|- |- |- ossutils-starter // OSS处理模块 |- |- |- hbase-starter // Spring Boot HBase Starter 模块 +|- |- |- test-starter // 单元测试模块 |- |- assists // 框架辅助工具 |- |- |- sdkgen-maven-plugin // SDK自动生成、上传插件 |- |- checkstyle // 项目CheckStyle -|- devops // DevOps部分 +|- devops // DevOps部分 【!新版本暂不可用!】 |- |- maven // DevOps使用到的Maven插件 |- |- |- dew-maven-plugin // DevOps核心插件 |- |- |- dew-maven-agent // DevOps部署优化插件 diff --git a/ROADMAP.adoc b/ROADMAP.adoc deleted file mode 100644 index f47423f96..000000000 --- a/ROADMAP.adoc +++ /dev/null @@ -1,35 +0,0 @@ -=== 路线图 - -* 3.0.0 - -. 支持GraalVM -. 支持Service Mesh -. 支持K3s -. 支持Swagger转SDK -. 去除Spring Cloud依赖 - -* 2.1.0 - -. 支持Java 11 - -* 2.0.0 - -. 升级到Spring Boot 2.x -. 实现兼容Spring Cloud与Istio的部署、监控架构 -. 引入DevOps流程 - -* 1.5.0 - -. 迁移小泰科技Fork版本到开源版本 -. Review及优化代码去除不常用功能 - -* 1.x - -. 实现核心功能,为公司各项目的研发提供能力支撑 - - - - - - - diff --git a/deploy.sh b/deploy.sh index 7d06af088..071612aa1 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,18 +1,4 @@ #!/bin/bash -# -# Copyright 2022. the original author or authors -# -# 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. -# + mvn -Ddew.it.skip=true clean deploy -P release diff --git a/devops/cicd/gitlabci/.gitlab-ci-template.yml b/devops/cicd/gitlabci/.gitlab-ci-template.yml index c6f658a55..1e23d5fa7 100644 --- a/devops/cicd/gitlabci/.gitlab-ci-template.yml +++ b/devops/cicd/gitlabci/.gitlab-ci-template.yml @@ -1,20 +1,3 @@ -# -# Copyright 2019. the original author or authors. -# -# 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. -# -# ====================================================== - # 此为 Gitlab CI的模板文件 # 各配置说明见 https://docs.gitlab.com/ee/ci/yaml/ diff --git a/devops/cicd/jenkins/scripts/dew-devops.groovy b/devops/cicd/jenkins/scripts/dew-devops.groovy index 535a727e6..be4e56c6b 100644 --- a/devops/cicd/jenkins/scripts/dew-devops.groovy +++ b/devops/cicd/jenkins/scripts/dew-devops.groovy @@ -301,21 +301,7 @@ pipeline { } } -/* - * Copyright 2022. gudaoxuri - * - * 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. - */ + /* 参数化构建参数: diff --git a/devops/cicd/jenkins/scripts/dew-maven-agent-update.groovy b/devops/cicd/jenkins/scripts/dew-maven-agent-update.groovy index e112d1a77..8f65e2d3a 100644 --- a/devops/cicd/jenkins/scripts/dew-maven-agent-update.groovy +++ b/devops/cicd/jenkins/scripts/dew-maven-agent-update.groovy @@ -1,19 +1,3 @@ -/* - * Copyright 2022. gudaoxuri - * - * 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. - */ - /* * 需要以下参数化构建参数 * jenkins_agents 需要更新的Jenkins节点,多个以,逗号分隔,如不填写,默认为master diff --git a/devops/devops-test-example.properties b/devops/devops-test-example.properties index e1d97e7dd..09ffcdb56 100644 --- a/devops/devops-test-example.properties +++ b/devops/devops-test-example.properties @@ -1,18 +1,3 @@ -# -# Copyright 2022. the original author or authors -# -# 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. -# dew_devops_docker_host=tcp://10.200.131.215:2375 # Docker registry url, nullable dew_devops_docker_registry_url=https://harbor.dew.idealworld.group/v2 diff --git a/devops/devops-test.properties b/devops/devops-test.properties index 730280b96..0e1d0757c 100644 --- a/devops/devops-test.properties +++ b/devops/devops-test.properties @@ -1,18 +1,3 @@ -# -# Copyright 2022. the original author or authors -# -# 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. -# dew_devops_docker_host=tcp://dockerd.dew.test:2375 # Docker registry url, nullable dew_devops_docker_registry_url=https://harbor.dew.test/v2 diff --git a/devops/it/pom.xml b/devops/it/pom.xml index 8a28fd769..0c21dab50 100644 --- a/devops/it/pom.xml +++ b/devops/it/pom.xml @@ -1,23 +1,7 @@ - - + xmlns="http://maven.apache.org/POM/4.0.0" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 group.idealworld.dew @@ -197,7 +181,8 @@ ${dew_devops_it_snapshotRepository_id} - ${dew_devops_it_snapshotRepository_url} + + ${dew_devops_it_snapshotRepository_url} @@ -214,4 +199,4 @@ - + \ No newline at end of file diff --git a/devops/it/src/it/helloworld-backend/invoker.properties b/devops/it/src/it/helloworld-backend/invoker.properties index 9dffad286..1a6d7f0a4 100644 --- a/devops/it/src/it/helloworld-backend/invoker.properties +++ b/devops/it/src/it/helloworld-backend/invoker.properties @@ -1,18 +1,3 @@ -# -# Copyright 2022. the original author or authors -# -# 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. -# invoker.goals.1=-P devops deploy -Ddew_devops_profile=test invoker.mavenOpts=-Djdk.tls.client.protocols=TLSv1.2 -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true invoker.debug=false diff --git a/devops/it/src/it/helloworld-backend/pom.xml b/devops/it/src/it/helloworld-backend/pom.xml index 9895fd2f2..c1e0fadf2 100644 --- a/devops/it/src/it/helloworld-backend/pom.xml +++ b/devops/it/src/it/helloworld-backend/pom.xml @@ -1,23 +1,7 @@ - - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 @@ -66,4 +50,4 @@ - + \ No newline at end of file diff --git a/devops/it/src/it/helloworld-backend/src/main/java/group/idealworld/dew/devops/it/Application.java b/devops/it/src/it/helloworld-backend/src/main/java/group/idealworld/dew/devops/it/Application.java index d904c2cd9..87255c576 100644 --- a/devops/it/src/it/helloworld-backend/src/main/java/group/idealworld/dew/devops/it/Application.java +++ b/devops/it/src/it/helloworld-backend/src/main/java/group/idealworld/dew/devops/it/Application.java @@ -1,19 +1,3 @@ -/* - * Copyright 2020. the original author or authors. - * - * 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. - */ - package group.idealworld.dew.devops.it; import org.springframework.boot.autoconfigure.SpringBootApplication; diff --git a/devops/it/src/it/helloworld-backend/src/main/java/group/idealworld/dew/devops/it/Controller.java b/devops/it/src/it/helloworld-backend/src/main/java/group/idealworld/dew/devops/it/Controller.java index bf91e6b6c..ecabe8d7e 100644 --- a/devops/it/src/it/helloworld-backend/src/main/java/group/idealworld/dew/devops/it/Controller.java +++ b/devops/it/src/it/helloworld-backend/src/main/java/group/idealworld/dew/devops/it/Controller.java @@ -1,19 +1,3 @@ -/* - * Copyright 2020. the original author or authors. - * - * 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. - */ - package group.idealworld.dew.devops.it; import org.springframework.web.bind.annotation.GetMapping; diff --git a/devops/it/src/it/helloworld-backend/verify.groovy b/devops/it/src/it/helloworld-backend/verify.groovy index 84aa8aadd..528d906a2 100644 --- a/devops/it/src/it/helloworld-backend/verify.groovy +++ b/devops/it/src/it/helloworld-backend/verify.groovy @@ -1,19 +1,3 @@ -/* - * Copyright 2022. gudaoxuri - * - * 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. - */ - import group.idealworld.dew.devops.it.verify.HelloWorldBackendVerify new HelloWorldBackendVerify().verify(basedir) diff --git a/devops/it/src/it/helloworld-frontend/babel.config.js b/devops/it/src/it/helloworld-frontend/babel.config.js index 78b93acad..ba179669a 100644 --- a/devops/it/src/it/helloworld-frontend/babel.config.js +++ b/devops/it/src/it/helloworld-frontend/babel.config.js @@ -1,19 +1,3 @@ -/* - * Copyright 2022. the original author or authors - * - * 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. - */ - module.exports = { presets: [ '@vue/app' diff --git a/devops/it/src/it/helloworld-frontend/invoker.properties b/devops/it/src/it/helloworld-frontend/invoker.properties index 9dffad286..1a6d7f0a4 100644 --- a/devops/it/src/it/helloworld-frontend/invoker.properties +++ b/devops/it/src/it/helloworld-frontend/invoker.properties @@ -1,18 +1,3 @@ -# -# Copyright 2022. the original author or authors -# -# 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. -# invoker.goals.1=-P devops deploy -Ddew_devops_profile=test invoker.mavenOpts=-Djdk.tls.client.protocols=TLSv1.2 -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true invoker.debug=false diff --git a/devops/it/src/it/helloworld-frontend/pom.xml b/devops/it/src/it/helloworld-frontend/pom.xml index 916546be1..6a251c9e2 100644 --- a/devops/it/src/it/helloworld-frontend/pom.xml +++ b/devops/it/src/it/helloworld-frontend/pom.xml @@ -1,23 +1,7 @@ - - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 @@ -63,4 +47,4 @@ - + \ No newline at end of file diff --git a/devops/it/src/it/helloworld-frontend/public/index.html b/devops/it/src/it/helloworld-frontend/public/index.html index 3ccded232..d32fcb523 100644 --- a/devops/it/src/it/helloworld-frontend/public/index.html +++ b/devops/it/src/it/helloworld-frontend/public/index.html @@ -1,34 +1,21 @@ - - + - - - - - hello-world + + + + + hello-world + - +
+ - + + \ No newline at end of file diff --git a/devops/it/src/it/helloworld-frontend/src/App.vue b/devops/it/src/it/helloworld-frontend/src/App.vue index ca4046ee4..fcc566279 100644 --- a/devops/it/src/it/helloworld-frontend/src/App.vue +++ b/devops/it/src/it/helloworld-frontend/src/App.vue @@ -1,19 +1,3 @@ - -