You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2020/05/02 19:08:22 UTC
[airavata-custos] branch develop updated: adding rat plugin for
license checks
This is an automated email from the ASF dual-hosted git repository.
smarru pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-custos.git
The following commit(s) were added to refs/heads/develop by this push:
new 648fdc5 adding rat plugin for license checks
new 4d0f6b4 Merge pull request #52 from smarru/develop
648fdc5 is described below
commit 648fdc5971f54de9ff819fbe4e1c22de962084fc
Author: Suresh Marru <sm...@apache.org>
AuthorDate: Sat May 2 15:05:51 2020 -0400
adding rat plugin for license checks
---
.asf.yaml | 18 ++++++++++++++++
.travis.yml | 1 -
README.md | 19 ++++++++++++++++
custos-utilities/oidc-scripts/oauth-flow/setenv.sh | 18 ++++++++++++++++
custos-utilities/oidc-scripts/oauth-flow/token.sh | 18 ++++++++++++++++
custos-utilities/oidc-scripts/tenant/setenv.sh | 18 ++++++++++++++++
.../oidc-scripts/tenant/tm-admin-activation.sh | 18 ++++++++++++++++
.../oidc-scripts/tenant/tm-admin-post.sh | 18 ++++++++++++++++
custos-utilities/oidc-scripts/tenant/tm-delete.sh | 18 ++++++++++++++++
custos-utilities/oidc-scripts/tenant/tm-get.sh | 18 ++++++++++++++++
custos-utilities/oidc-scripts/tenant/tm-post.sh | 18 ++++++++++++++++
custos-utilities/oidc-scripts/tenant/tm-put.sh | 18 ++++++++++++++++
custos-utilities/prometheus/prometheus.yml | 18 ++++++++++++++++
pom.xml | 25 ++++++++++++++++++++++
14 files changed, 242 insertions(+), 1 deletion(-)
diff --git a/.asf.yaml b/.asf.yaml
index 552903f..8b57bc3 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -1,3 +1,21 @@
+#
+# 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.
+#
notifications:
commits: commits@airavata.apache.org
# Send all issue emails (new, closed, comments) to issues@
diff --git a/.travis.yml b/.travis.yml
index 92ec7bd..17d1570 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,4 @@
#
-#
# 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
diff --git a/README.md b/README.md
index 7e9a97f..04d06ee 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,22 @@
+<!--
+ 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.
+-->
+
# Apache Airavata Custos Security
[![License](http://img.shields.io/badge/license-Apache--2-blue.svg?style=flat)](https://apache.org/licenses/LICENSE-2.0)
diff --git a/custos-utilities/oidc-scripts/oauth-flow/setenv.sh b/custos-utilities/oidc-scripts/oauth-flow/setenv.sh
index 2b29e3a..2793c38 100644
--- a/custos-utilities/oidc-scripts/oauth-flow/setenv.sh
+++ b/custos-utilities/oidc-scripts/oauth-flow/setenv.sh
@@ -1,4 +1,22 @@
#!/bin/bash
+#
+# 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.
+#
# This file contains the environment variables for the service. Set them here and they should
# get picked up by each script as needed (this assumes everything is being run from the current
# directory).
diff --git a/custos-utilities/oidc-scripts/oauth-flow/token.sh b/custos-utilities/oidc-scripts/oauth-flow/token.sh
index 310d5ef..7dc1b89 100644
--- a/custos-utilities/oidc-scripts/oauth-flow/token.sh
+++ b/custos-utilities/oidc-scripts/oauth-flow/token.sh
@@ -1,4 +1,22 @@
#!/bin/bash
+#
+# 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.
+#
# A script that performs a cURL call to the custos server that has the client management API enabled on it.
# This will issue a POST to the endpoint (as per RFC 7591) and will create a new client on the server
# from the given JSON object.
diff --git a/custos-utilities/oidc-scripts/tenant/setenv.sh b/custos-utilities/oidc-scripts/tenant/setenv.sh
index bba4b0c..7c1714e 100644
--- a/custos-utilities/oidc-scripts/tenant/setenv.sh
+++ b/custos-utilities/oidc-scripts/tenant/setenv.sh
@@ -1,4 +1,22 @@
#!/bin/bash
+#
+# 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.
+#
# This file contains the environment variables for the service. Set them here and they should
# get picked up by each script as needed (this assumes everything is being run from the current
# directory).
diff --git a/custos-utilities/oidc-scripts/tenant/tm-admin-activation.sh b/custos-utilities/oidc-scripts/tenant/tm-admin-activation.sh
index 00aa5b0..3f6596d 100644
--- a/custos-utilities/oidc-scripts/tenant/tm-admin-activation.sh
+++ b/custos-utilities/oidc-scripts/tenant/tm-admin-activation.sh
@@ -1,4 +1,22 @@
#!/bin/bash
+#
+# 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.
+#
# A script that performs a cURL call to the custos server that has the client management API enabled on it.
# This will issue a POST to the endpoint (as per RFC 7591) and will create a new client on the server
# from the given JSON object.
diff --git a/custos-utilities/oidc-scripts/tenant/tm-admin-post.sh b/custos-utilities/oidc-scripts/tenant/tm-admin-post.sh
index eb6b6d5..a077e6e 100644
--- a/custos-utilities/oidc-scripts/tenant/tm-admin-post.sh
+++ b/custos-utilities/oidc-scripts/tenant/tm-admin-post.sh
@@ -1,4 +1,22 @@
#!/bin/bash
+#
+# 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.
+#
# A script that performs a cURL call to the custos server that has the client management API enabled on it.
# This will issue a POST to the endpoint (as per RFC 7591) and will create a new client on the server
# from the given JSON object.
diff --git a/custos-utilities/oidc-scripts/tenant/tm-delete.sh b/custos-utilities/oidc-scripts/tenant/tm-delete.sh
index 72449e3..f3aab43 100644
--- a/custos-utilities/oidc-scripts/tenant/tm-delete.sh
+++ b/custos-utilities/oidc-scripts/tenant/tm-delete.sh
@@ -1,4 +1,22 @@
#!/bin/bash
+#
+# 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.
+#
# A script that performs a cURL call to the custos server that has the client management API enabled on it.
# This will issue a POST to the endpoint (as per RFC 7591) and will create a new client on the server
# from the given JSON object.
diff --git a/custos-utilities/oidc-scripts/tenant/tm-get.sh b/custos-utilities/oidc-scripts/tenant/tm-get.sh
index e59e834..b220f03 100644
--- a/custos-utilities/oidc-scripts/tenant/tm-get.sh
+++ b/custos-utilities/oidc-scripts/tenant/tm-get.sh
@@ -1,4 +1,22 @@
#!/bin/bash
+#
+# 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.
+#
# A script that performs a cURL call to the custos server that has the client management API enabled on it.
# This will issue a POST to the endpoint (as per RFC 7591) and will create a new client on the server
# from the given JSON object.
diff --git a/custos-utilities/oidc-scripts/tenant/tm-post.sh b/custos-utilities/oidc-scripts/tenant/tm-post.sh
index 6555328..5fa777e 100644
--- a/custos-utilities/oidc-scripts/tenant/tm-post.sh
+++ b/custos-utilities/oidc-scripts/tenant/tm-post.sh
@@ -1,4 +1,22 @@
#!/bin/bash
+#
+# 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.
+#
# A script that performs a cURL call to the custos server that has the client management API enabled on it.
# This will issue a POST to the endpoint (as per RFC 7591) and will create a new client on the server
# from the given JSON object.
diff --git a/custos-utilities/oidc-scripts/tenant/tm-put.sh b/custos-utilities/oidc-scripts/tenant/tm-put.sh
index 2bde21f..4425dc6 100644
--- a/custos-utilities/oidc-scripts/tenant/tm-put.sh
+++ b/custos-utilities/oidc-scripts/tenant/tm-put.sh
@@ -1,4 +1,22 @@
#!/bin/bash
+#
+# 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.
+#
# A script that performs a cURL call to the custos server that has the client management API enabled on it.
# This will issue a POST to the endpoint (as per RFC 7591) and will create a new client on the server
# from the given JSON object.
diff --git a/custos-utilities/prometheus/prometheus.yml b/custos-utilities/prometheus/prometheus.yml
index 09709cb..3310434 100644
--- a/custos-utilities/prometheus/prometheus.yml
+++ b/custos-utilities/prometheus/prometheus.yml
@@ -1,3 +1,21 @@
+#
+# 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.
+#
scrape_configs:
- job_name: 'prometheus'
scrape_interval: 10s
diff --git a/pom.xml b/pom.xml
index c297066..d21875e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -378,6 +378,31 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>release</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ <version>0.13</version>
+ <configuration>
+ <excludes>
+ <exclude>**/*.json</exclude>
+ </excludes>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>verify</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<build>