diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml
new file mode 100644
index 0000000000..26d8a14c92
--- /dev/null
+++ b/.github/workflows/license-check.yml
@@ -0,0 +1,45 @@
+# Copyright (c) 2020 Contributors to the Eclipse Foundation
+#
+# See the NOTICE file(s) distributed with this work for additional
+# information regarding copyright ownership.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License 2.0 which is available at
+# http://www.eclipse.org/legal/epl-2.0
+#
+# SPDX-License-Identifier: EPL-2.0
+name: license-check
+
+on:
+ # Run build for any PR
+ pull_request:
+
+jobs:
+ check-license-header-year:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: jitterbit/get-changed-files@v1
+ id: the-files
+ - name: Printing added files
+ run: |
+ echo "Added:"
+ echo "${{ steps.the-files.outputs.added }}"
+ - name: Ensure license year for added files is the file's creation year
+ shell: bash
+ run: |
+ included_file_endings=".*\.(java|xml|yml)"
+ current_year=$(date +'%Y')
+ missing_counter=0
+ for file in ${{ steps.the-files.outputs.added }}; do
+ if [[ $file =~ $included_file_endings ]]; then
+ file_creation_year=$(git log --format=%aD $file | tail -1 | awk '{print $4}')
+ if grep -q "Copyright (c) $file_creation_year Contributors to the Eclipse Foundation" $file; then
+ printf "\xE2\x9C\x94 $file\n"
+ else
+ printf "\xE2\x9D\x8C $file\n\tcopyright header with file creation year '$file_creation_year' is missing in added file\n"
+ missing_counter=$(expr $missing_counter + 1)
+ fi
+ fi
+ done
+ exit $missing_counter
\ No newline at end of file
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index bc80d721b5..7612eb4ebf 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -1,3 +1,13 @@
+# Copyright (c) 2020 Contributors to the Eclipse Foundation
+#
+# See the NOTICE file(s) distributed with this work for additional
+# information regarding copyright ownership.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License 2.0 which is available at
+# http://www.eclipse.org/legal/epl-2.0
+#
+# SPDX-License-Identifier: EPL-2.0
name: build
on:
diff --git a/.github/workflows/push-dockerhub.yml b/.github/workflows/push-dockerhub.yml
index 3864e08df8..75499df6b9 100644
--- a/.github/workflows/push-dockerhub.yml
+++ b/.github/workflows/push-dockerhub.yml
@@ -1,3 +1,13 @@
+# Copyright (c) 2020 Contributors to the Eclipse Foundation
+#
+# See the NOTICE file(s) distributed with this work for additional
+# information regarding copyright ownership.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License 2.0 which is available at
+# http://www.eclipse.org/legal/epl-2.0
+#
+# SPDX-License-Identifier: EPL-2.0
name: push-dockerhub
on:
diff --git a/bom/pom.xml b/bom/pom.xml
index 962e6f1775..2d62afc1f5 100755
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -88,7 +88,7 @@
When using the HTTP API you can authenticate with your Google account in order to use
- an user ID belonging to only you.
- WARNING: This currently won't work due to a missing feature
- in swagger-ui 3.x: swagger-ui #4084 and
- due to a missing feature in Ditto that Google 'accept_token' are not supported:
- Ditto #114.
+ an user ID belonging to only you.
Alternatively (also in order to connect to the WebSocket API) you can use one of the pre-defined user/password diff --git a/deployment/docker/swagger3-index.html b/deployment/docker/swagger3-index.html index 65e915ec2d..7c74434618 100644 --- a/deployment/docker/swagger3-index.html +++ b/deployment/docker/swagger3-index.html @@ -44,13 +44,6 @@