diff --git a/LICENSE b/LICENSE index 5ed0db7d..d6456956 100644 --- a/LICENSE +++ b/LICENSE @@ -1,3 +1,4 @@ + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -186,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2018-2022 北京华夏春松科技有限公司 + 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. diff --git a/compose/plugins/.gitignore b/compose/server/plugins/.gitignore similarity index 100% rename from compose/plugins/.gitignore rename to compose/server/plugins/.gitignore diff --git a/plugins/sample/pom.xml b/plugins/sample/pom.xml index d302e107..536b0cd8 100644 --- a/plugins/sample/pom.xml +++ b/plugins/sample/pom.xml @@ -92,7 +92,7 @@ com.cskefu.plugins.sample.Sample true - ../../compose/plugins + ../../compose/server/plugins diff --git a/plugins/sample/src/main/java/com/cskefu/plugins/sample/Activator.java b/plugins/sample/src/main/java/com/cskefu/plugins/sample/Activator.java index f2ba96a4..dca33981 100644 --- a/plugins/sample/src/main/java/com/cskefu/plugins/sample/Activator.java +++ b/plugins/sample/src/main/java/com/cskefu/plugins/sample/Activator.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.plugins.sample; import com.cskefu.mod.plugin.AbstractPluginActivator; diff --git a/plugins/sample/src/main/java/com/cskefu/plugins/sample/Sample.java b/plugins/sample/src/main/java/com/cskefu/plugins/sample/Sample.java index 275c2121..32e5d0fd 100644 --- a/plugins/sample/src/main/java/com/cskefu/plugins/sample/Sample.java +++ b/plugins/sample/src/main/java/com/cskefu/plugins/sample/Sample.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.plugins.sample; import com.cskefu.mod.plugin.IPlugin; diff --git a/server/scripts/deploy.sh b/server/bin/deploy.sh similarity index 100% rename from server/scripts/deploy.sh rename to server/bin/deploy.sh diff --git a/server/scripts/dev.sh b/server/bin/dev.sh similarity index 100% rename from server/scripts/dev.sh rename to server/bin/dev.sh diff --git a/server/scripts/package.sh b/server/bin/package.sh similarity index 100% rename from server/scripts/package.sh rename to server/bin/package.sh diff --git a/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/AbstractPluginActivator.java b/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/AbstractPluginActivator.java index 696bc452..7017eb19 100644 --- a/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/AbstractPluginActivator.java +++ b/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/AbstractPluginActivator.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.mod.plugin; import lombok.extern.slf4j.Slf4j; diff --git a/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/IPlugin.java b/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/IPlugin.java index 4407f573..54d8eb02 100644 --- a/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/IPlugin.java +++ b/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/IPlugin.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.mod.plugin; import com.cskefu.mod.plugin.dto.ActionResponse; diff --git a/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/PluginDescriptor.java b/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/PluginDescriptor.java index 0411ef6d..455d6561 100644 --- a/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/PluginDescriptor.java +++ b/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/PluginDescriptor.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.mod.plugin; import java.util.Hashtable; diff --git a/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/dto/ActionResponse.java b/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/dto/ActionResponse.java index d6532698..26434fcd 100644 --- a/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/dto/ActionResponse.java +++ b/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/dto/ActionResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.mod.plugin.dto; import lombok.Builder; diff --git a/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/dto/NotificationResponse.java b/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/dto/NotificationResponse.java index e9ef964f..d31fc92f 100644 --- a/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/dto/NotificationResponse.java +++ b/server/mod-plugin/src/main/java/com/cskefu/mod/plugin/dto/NotificationResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.mod.plugin.dto; import lombok.Builder; diff --git a/server/mod-plugin/src/test/java/com/cskefu/mod/plugin/AbstractPluginActivatorTest.java b/server/mod-plugin/src/test/java/com/cskefu/mod/plugin/AbstractPluginActivatorTest.java index 24845522..144e706b 100644 --- a/server/mod-plugin/src/test/java/com/cskefu/mod/plugin/AbstractPluginActivatorTest.java +++ b/server/mod-plugin/src/test/java/com/cskefu/mod/plugin/AbstractPluginActivatorTest.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.mod.plugin; import static org.mockito.ArgumentMatchers.any; diff --git a/server/pom.xml b/server/pom.xml index 6a2af02d..9b678a4c 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -140,6 +140,7 @@ test + @@ -208,4 +209,12 @@ + + + Apache-2.0 + https://github.com/cskefu/cskefu/blob/develop/LICENSE + repo + A business-friendly OSS license + + diff --git a/server/serving-api/src/main/java/com/cskefu/serving/api/SampleApplication.java b/server/serving-api/src/main/java/com/cskefu/serving/api/SampleApplication.java index 70b2ae3e..cd9b1081 100644 --- a/server/serving-api/src/main/java/com/cskefu/serving/api/SampleApplication.java +++ b/server/serving-api/src/main/java/com/cskefu/serving/api/SampleApplication.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.serving.api; import com.cskefu.serving.api.config.PluginsConfigurer; diff --git a/server/serving-api/src/main/java/com/cskefu/serving/api/config/PluginsConfigurer.java b/server/serving-api/src/main/java/com/cskefu/serving/api/config/PluginsConfigurer.java index f876d5a4..df749d70 100644 --- a/server/serving-api/src/main/java/com/cskefu/serving/api/config/PluginsConfigurer.java +++ b/server/serving-api/src/main/java/com/cskefu/serving/api/config/PluginsConfigurer.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.serving.api.config; import java.util.Map; diff --git a/server/serving-api/src/main/java/com/cskefu/serving/api/controllers/SampleController.java b/server/serving-api/src/main/java/com/cskefu/serving/api/controllers/SampleController.java index 4d929325..e995bf2a 100644 --- a/server/serving-api/src/main/java/com/cskefu/serving/api/controllers/SampleController.java +++ b/server/serving-api/src/main/java/com/cskefu/serving/api/controllers/SampleController.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.serving.api.controllers; import com.cskefu.mod.plugin.dto.ActionResponse; diff --git a/server/serving-api/src/main/java/com/cskefu/serving/api/dto/Sample.java b/server/serving-api/src/main/java/com/cskefu/serving/api/dto/Sample.java index 949a9521..5e460ffe 100644 --- a/server/serving-api/src/main/java/com/cskefu/serving/api/dto/Sample.java +++ b/server/serving-api/src/main/java/com/cskefu/serving/api/dto/Sample.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.serving.api.dto; import lombok.Builder; diff --git a/server/serving-api/src/main/java/com/cskefu/serving/api/service/PluginList.java b/server/serving-api/src/main/java/com/cskefu/serving/api/service/PluginList.java index a9f1262c..c3a0d076 100644 --- a/server/serving-api/src/main/java/com/cskefu/serving/api/service/PluginList.java +++ b/server/serving-api/src/main/java/com/cskefu/serving/api/service/PluginList.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.serving.api.service; import com.cskefu.mod.plugin.IPlugin; diff --git a/server/serving-api/src/main/java/com/cskefu/serving/api/service/PluginService.java b/server/serving-api/src/main/java/com/cskefu/serving/api/service/PluginService.java index bc1a777b..e9710935 100644 --- a/server/serving-api/src/main/java/com/cskefu/serving/api/service/PluginService.java +++ b/server/serving-api/src/main/java/com/cskefu/serving/api/service/PluginService.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.serving.api.service; import com.cskefu.serving.api.config.PluginsConfigurer; diff --git a/server/serving-api/src/main/java/com/cskefu/serving/api/service/SpringAwareBundleListener.java b/server/serving-api/src/main/java/com/cskefu/serving/api/service/SpringAwareBundleListener.java index cd3ce4d0..b6b10a72 100644 --- a/server/serving-api/src/main/java/com/cskefu/serving/api/service/SpringAwareBundleListener.java +++ b/server/serving-api/src/main/java/com/cskefu/serving/api/service/SpringAwareBundleListener.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2018-2023 北京华夏春松科技有限公司, + * + * 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 com.cskefu.serving.api.service; import com.cskefu.mod.plugin.IPlugin;