diff --git a/eventmesh-examples/src/main/java/org/apache/eventmesh/selector/NacosSelector.java b/eventmesh-examples/src/main/java/org/apache/eventmesh/selector/NacosSelector.java index 35a6f0a002..e2bafba3df 100644 --- a/eventmesh-examples/src/main/java/org/apache/eventmesh/selector/NacosSelector.java +++ b/eventmesh-examples/src/main/java/org/apache/eventmesh/selector/NacosSelector.java @@ -1,3 +1,20 @@ +/* + * 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. + */ + package org.apache.eventmesh.selector; import org.apache.eventmesh.client.selector.Selector; diff --git a/eventmesh-filter-plugin/build.gradle b/eventmesh-filter-plugin/build.gradle new file mode 100644 index 0000000000..d973dcedae --- /dev/null +++ b/eventmesh-filter-plugin/build.gradle @@ -0,0 +1,16 @@ +/* + * 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. + */ \ No newline at end of file diff --git a/eventmesh-filter-plugin/eventmesh-filter-api/build.gradle b/eventmesh-filter-plugin/eventmesh-filter-api/build.gradle new file mode 100644 index 0000000000..51e1465ceb --- /dev/null +++ b/eventmesh-filter-plugin/eventmesh-filter-api/build.gradle @@ -0,0 +1,23 @@ +/* + * 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. + */ + +dependencies { + api project(":eventmesh-spi") + api project(":eventmesh-common") + + implementation "io.cloudevents:cloudevents-core" +} \ No newline at end of file diff --git a/eventmesh-filter-plugin/eventmesh-filter-api/gradle.properties b/eventmesh-filter-plugin/eventmesh-filter-api/gradle.properties new file mode 100644 index 0000000000..a9fd83fea0 --- /dev/null +++ b/eventmesh-filter-plugin/eventmesh-filter-api/gradle.properties @@ -0,0 +1,16 @@ +# +# 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. +# \ No newline at end of file diff --git a/eventmesh-webhook/eventmesh-webhook-receive/src/main/java/org/apache/eventmesh/webhook/receive/protocol/GithubProtocol.java b/eventmesh-webhook/eventmesh-webhook-receive/src/main/java/org/apache/eventmesh/webhook/receive/protocol/GithubProtocol.java index 1980c0c7ed..da3c87e9ae 100644 --- a/eventmesh-webhook/eventmesh-webhook-receive/src/main/java/org/apache/eventmesh/webhook/receive/protocol/GithubProtocol.java +++ b/eventmesh-webhook/eventmesh-webhook-receive/src/main/java/org/apache/eventmesh/webhook/receive/protocol/GithubProtocol.java @@ -43,7 +43,7 @@ public class GithubProtocol implements ManufacturerProtocol { private static final String H_MAC_SHA = "HmacSHA256"; - private static final Char ZERO_CHAR = '0'; + private static final char ZERO_CHAR = '0'; public Logger logger = LoggerFactory.getLogger(this.getClass()); diff --git a/settings.gradle b/settings.gradle index 18c0c26dd6..dc089f0b33 100644 --- a/settings.gradle +++ b/settings.gradle @@ -65,3 +65,5 @@ include 'eventmesh-webhook:eventmesh-webhook-api' include 'eventmesh-webhook:eventmesh-webhook-admin' include 'eventmesh-webhook:eventmesh-webhook-receive' +include 'eventmesh-filter-plugin' +include 'eventmesh-filter-plugin:eventmesh-filter-api'