Commit c36b729b authored by David Diederich's avatar David Diederich
Browse files

Initial Import

parents
.DS_Store
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
# build artifacts
target/
# Intellij files
.idea
*.iml
Copyright 2017-2019 Schlumberger
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.
# Introduction
This repository houses code that is used across the Microsoft Azure hosted OSDU and OpenDES platforms. The intention of this repository is to minimize code duplication for common scenarios such as dependency configuration for services in Azure (KeyVault, Cosmos, Storage and others).
# Pre-requisites
You need
1. Maven 3.6.x
2. Java 1.8
# Local Usage
```bash
# Compile the codebase
$ mvn compile
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
...
# Unit test the codebase
$ mvn test
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
...
```
# Getting started guide
##Installation
You need to connect to our feed on [Azure DevOps](https://slb-swt.visualstudio.com/data-at-rest/ProdOps%20-%20Production%20Engineer/_packaging?feed=slb-dps&_a=feed) and add the artifact `core-lib-azure` as a dependency to your Maven or Gradle build.
**Example**
```xml
<project>
<properties>
<azure.corelib.version>0.0.1</azure.corelib.version>
</properties>
<dependencies>
<dependency>
<groupId>org.opengroup.osdu</groupId>
<artifactId>core-lib-azure</artifactId>
<version>${azure.corelib.version}</version>
</dependency>
</dependencies>
</project>
```
# Copyright © Microsoft Corporation
#
# 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.
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
trigger:
branches:
include:
- master
paths:
exclude:
- README.md
- .gitignore
pool:
name: Hosted Ubuntu 1604
demands: maven
steps:
- task: Maven@3
inputs:
mavenPomFile: './pom.xml'
goals: 'clean install'
options: '--settings ./maven/settings.xml -DVSTS_FEED_TOKEN=$(VSTS_FEED_TOKEN)'
testResultsFiles: '**/TEST-*.xml'
codeCoverageToolOption: JaCoCo
- ${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
- task: Maven@3
displayName: 'Deploy core lib for Azure'
inputs:
mavenPomFile: 'pom.xml'
goals: 'deploy -Dmaven.test.skip=true'
options: '--settings ./maven/settings.xml -DVSTS_FEED_TOKEN=$(VSTS_FEED_TOKEN)'
publishJUnitResults: false
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright © Microsoft Corporation
~
~ 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.
-->
<!DOCTYPE suppressions PUBLIC
"-//Checkstyle//DTD SuppressionFilter Configuration 1.0//EN"
"https://checkstyle.org/dtds/suppressions_1_0.dtd">
<suppressions>
<suppress checks="LineLengthCheck"
files="."/>
<suppress checks="MagicNumber"
files="."/>
<suppress checks="ParameterName"
files="."/>
<!-- No need to have java docs for private variables -->
<suppress checks="JavadocVariable"
files="."/>
<!-- This check will always fail on windows, so we ignore it -->
<suppress checks="NewlineAtEndOfFile"
files="."/>
<!-- So we don't need package-info.java files -->
<suppress checks="JavadocPackage"
files="."/>
</suppressions>
\ No newline at end of file
<mxfile host="Electron" modified="2020-03-26T20:41:15.851Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/12.3.2 Chrome/78.0.3904.113 Electron/7.1.2 Safari/537.36" etag="Mjl2AxFELaKMvAwMREd5" version="12.3.2" type="device" pages="1"><diagram id="4TewE-g4zTSE_AluHHJf" name="Page-1">7VtbV6M6GP01PupKwtVHra3H5eg5a9XlXN5SmhZGSjiQant+/QmQlEtiiw60o1MflHyEAHt/2fmya0+MwWJ1neDYv6NTEp4gMF2dGFcnCEGATP4ni6yLiHWOisA8CaaiUxkYB/8ReaWILoMpSWsdGaUhC+J60KNRRDxWi+EkoS/1bjMa1u8a4zlRAmMPh2r0azBlfhF1LVDG/yLB3Jd3hkCcWWDZWQRSH0/pSyVkDE+MQUIpK44WqwEJM/AkLsV1o1fObh4sIRFrc8HVS+Cyp9HjNBkMfni3xmw2ezgVozzjcCleWDwsW0sEErqMpiQbBJwYly9+wMg4xl529oVzzmM+W4S8Bfmh+lDyDiRhZFUJiYe8JnRBWLLmXcRZiZdIGGiI9ksJv+WKmF+B3pTIY0H5fDN0iQo/EMDoQfpJvdG19wXdTCZDf3gXpQ9Pt6fmb4iS2UDJ1qBkalDawNk5SraxAxSaMJ/OaYTDL5TGAoqfhLG1mPZ4yWgdKLIK2LfK8fdsqDNLtK5WYuS8sZaNiL/Nt2qjclXWLC/LW/K6lOGEXWSSwQMRjYiMjYIMiLzPq8SldJl4ZAs6UrtwMidsSz/LLjqSaU2X1DxISIhZ8FyXqc5JVTP/Io55YEyS54C/MAI04b9Gy8hjAY22ZADcPS1mHOgBDfmI2bWZQCHPy1lI6BOpnJnaE5sD1cl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JVkXGaQBx4OL8JgHvEgy5TpEotWSGbZE6Z8KH7bh1y1Tm0N6cAjBOlIt2wLOqQb0u1GmSlzoMo56Ilz7Tcx1G1oMckG1Uk27mGSzVyP6J3biWuZ1lapfjfem7qsireuEGx+utkZ3upm674ibZ8TdQNpUHe6QZ03y+8yFctY+Y0wY/g/</diagram></mxfile>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment