diff --git a/.gitignore b/.gitignore index 78079a17a81797c4da9cfd295759a7c3c510b256..d2dd4004e95485bc1b0e260c06b1c90f8cbcee54 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,17 @@ +# Copyright © 2020 Amazon Web Services +# +# 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. + # Compiled class file *.class @@ -39,3 +53,7 @@ load-tests/*.pyc # Environment configuration *.env .sts4* + + +### IntelliJ IDEA ### +*.iml diff --git a/NOTICE b/NOTICE index 62f6feabd729d1ec75b71aa6e300fc5e8406bcb8..2d5a7492984461b1b32c71f5a6d8d75c90c2e6cb 100644 --- a/NOTICE +++ b/NOTICE @@ -162,10 +162,10 @@ The following software have components provided under the terms of this license: - Microsoft Application Insights Java SDK Spring Boot starter (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Java SDK Web Module (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Log4j 2 Appender (from https://github.com/Microsoft/ApplicationInsights-Java) -- Mockito (from http://www.mockito.org) -- Mockito (from http://mockito.org) - Mockito (from http://mockito.org) - Mockito (from http://www.mockito.org) +- Mockito (from http://www.mockito.org) +- Mockito (from http://mockito.org) - Netty Reactive Streams Implementation (from ) - Netty/Buffer (from http://netty.io/) - Netty/Codec (from ) @@ -310,9 +310,6 @@ The following software have components provided under the terms of this license: - org.xmlunit:xmlunit-core (from http://www.xmlunit.org/) - parent-join (from https://github.com/elastic/elasticsearch) - parent-join (from https://github.com/elastic/elasticsearch) -- powermock-api-mockito (from ) -- powermock-api-mockito-common (from ) -- powermock-api-support (from ) - powermock-api-support (from ) - powermock-core (from http://www.powermock.org) - powermock-module-junit4 (from http://www.powermock.org) @@ -745,9 +742,9 @@ The following software have components provided under the terms of this license: - Microsoft Azure client library for KeyVault Secrets (from https://github.com/Azure/azure-sdk-for-java) - Microsoft Azure common module for Storage (from https://github.com/Azure/azure-sdk-for-java) - Mockito (from http://www.mockito.org) -- Mockito (from http://mockito.org) - Mockito (from http://www.mockito.org) - Mockito (from http://mockito.org) +- Mockito (from http://mockito.org) - Netty/Codec/HTTP (from ) - Netty/Common (from ) - Project Lombok (from https://projectlombok.org) @@ -756,7 +753,6 @@ The following software have components provided under the terms of this license: - adal4j (from https://github.com/AzureAD/azure-activedirectory-library-for-java) - azure-documentdb (from https://azure.microsoft.com/en-us/services/cosmos-db/) - msal4j (from https://github.com/AzureAD/microsoft-authentication-library-for-java) -- powermock-api-mockito (from ) - spring-security-core (from http://spring.io/spring-security) ======================================================================== diff --git a/provider/search-aws/build-aws/Dockerfile b/provider/search-aws/build-aws/Dockerfile index dbf21ea74004036e15e817c95587b219754eebba..bf8c0445d78e2a7d98687eabf98ad39d74e2993e 100644 --- a/provider/search-aws/build-aws/Dockerfile +++ b/provider/search-aws/build-aws/Dockerfile @@ -1,4 +1,4 @@ -# Copyright © Amazon Web Services +# Copyright © 2020 Amazon Web Services # # 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/provider/search-aws/build-aws/build-info.py b/provider/search-aws/build-aws/build-info.py index 12935424a5a4a5e9368afda46369856e1c56df45..8880bfeb764cce2f3cb7817066dff27b8652bc88 100644 --- a/provider/search-aws/build-aws/build-info.py +++ b/provider/search-aws/build-aws/build-info.py @@ -1,3 +1,17 @@ +# Copyright © 2020 Amazon Web Services +# +# 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 boto3 import json import os diff --git a/provider/search-aws/build-aws/buildspec.yaml b/provider/search-aws/build-aws/buildspec.yaml index c0d6861f4600550511623ce86d2ee3dda961add8..05bca04ccd9dee15f7ef9ad8e169e80b7b6c92bc 100644 --- a/provider/search-aws/build-aws/buildspec.yaml +++ b/provider/search-aws/build-aws/buildspec.yaml @@ -1,4 +1,4 @@ -# Copyright © Amazon Web Services +# Copyright © 2020 Amazon Web Services # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ version: 0.2 phases: install: runtime-versions: - java: openjdk8 + java: corretto8 commands: - if [ $(echo $CODEBUILD_SOURCE_VERSION | grep -c ^refs/heads.*) -eq 1 ]; then echo "Branch name found"; else echo "This build only supports branch builds" && exit 1; fi - apt-get update -y @@ -29,9 +29,8 @@ phases: - mvn -version - echo $JAVA_HOME #WHY - mkdir -p /root/.m2 - - aws s3 sync s3://$M2_REPO_S3_BUCKET /root/.m2 # copy previous state of the shared libraries' .m2 folder from S3 to local - cp ./provider/search-aws/maven/settings.xml /root/.m2/settings.xml # copy the AWS-specific settings.xml to the CodeBuild instance's .m2 folder - - cat /root/.m2/settings.xml + - export AWS_OSDU_DEV_MAVEN_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain osdu-dev --domain-owner 888733619319 --query authorizationToken --output text` pre_build: commands: - echo "Logging in to Amazon ECR..." diff --git a/provider/search-aws/maven/settings.xml b/provider/search-aws/maven/settings.xml index d8b2e83a4de4eb723b11c866fe69fdfdc48e8c25..b8192246c94558d4c2d65ce1caf42871542dd79e 100644 --- a/provider/search-aws/maven/settings.xml +++ b/provider/search-aws/maven/settings.xml @@ -1,9 +1,41 @@ + + + + aws-osdu-dev-maven + + true + + + + aws-osdu-dev-maven + ${env.AWS_OSDU_DEV_MAVEN_URL} + + + gitlab-os-core-common-maven + https://community.opengroup.org/api/v4/projects/67/packages/maven + + + credentialsConfiguration @@ -20,13 +52,25 @@ - - os-core - ${azure.devops.username} - - ${azure.devops.token} + aws-osdu-dev-maven + aws + ${env.AWS_OSDU_DEV_MAVEN_AUTH_TOKEN} - - + + + + + + + + + + + + + credentialsConfiguration + + + \ No newline at end of file diff --git a/provider/search-aws/pom.xml b/provider/search-aws/pom.xml index 185af0e9a1eda636ac118ea8329063c6ee926b65..3c6b28877521ccaed877b804061e22a20cdc5de9 100644 --- a/provider/search-aws/pom.xml +++ b/provider/search-aws/pom.xml @@ -1,6 +1,6 @@