Skip to content

Commit

Permalink
Merge pull request #6 from eo-cqrs/skeleton
Browse files Browse the repository at this point in the history
Skeleton
  • Loading branch information
Aliaksei Bialiauski authored Sep 26, 2023
2 parents 789bfe7 + 42bcfd1 commit 0359012
Show file tree
Hide file tree
Showing 23 changed files with 1,313 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .0pdd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
errors:
- [email protected]
tags:
- pdd
- bug
28 changes: 28 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: codecov
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
codecov:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- run: |
mvn clean install
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./target/site/jacoco/jacoco.xml
fail_ci_if_error: false
29 changes: 29 additions & 0 deletions .github/workflows/mvn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: mvn
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Build
strategy:
matrix:
os: [ubuntu-20.04, windows-2022, macos-12]
java: [17]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-jdk-${{ matrix.java }}-maven-
- run: mvn clean install --errors --batch-mode
14 changes: 14 additions & 0 deletions .github/workflows/pdd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: pdd
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
pdd:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: g4s8/pdd-action@master
14 changes: 14 additions & 0 deletions .github/workflows/xcop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: xcop
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: g4s8/xcop-action@master
20 changes: 20 additions & 0 deletions .rultor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
architect:
- h1alexbel
docker:
image: l3r8y/rultor-image:1.0.3
assets:
settings.xml: eo-cqrs/eo-cqrs-secrets#assets/settings.xml
secring.gpg: eo-cqrs/eo-cqrs-secrets#assets/secring.gpg
pubring.gpg: eo-cqrs/eo-cqrs-secrets#assets/pubring.gpg
merge:
script:
- "mvn clean install --errors --batch-mode"
release:
pre: false
sensetive:
- settings.xml
script: |-
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
mvn versions:set "-DnewVersion=${tag}"
git commit -am "${tag}"
mvn clean deploy -Prelease --errors --settings ../settings.xml
4 changes: 2 additions & 2 deletions LICENSE → LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 EO-CQRS
Copyright (c) 2023 Aliaksei Bialiauski, EO-CQRS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -14,7 +14,7 @@ copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Expand Down
62 changes: 62 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[![Managed By Self XDSD](https://self-xdsd.com/b/mbself.svg)](https://self-xdsd.com/p/eo-cqrs/ohip-java?provider=github)

[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
[![DevOps By Rultor.com](https://www.rultor.com/b/eo-cars/ohip-java)](https://www.rultor.com/p/eo-cqrs/ohip-java)
[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)
<br>

[![mvn](https://github.com/eo-cqrs/ohip-java/actions/workflows/mvn.yml/badge.svg)](https://github.com/eo-cqrs/ohip/actions/workflows/mvn.yml)
[![maven central](http://maven-badges.herokuapp.com/maven-central/io.github.eo-cqrs/ohip-java/badge.svg)](https://search.maven.org/artifact/io.github.eo-cqrs/ohip-java)
[![javadoc](https://javadoc.io/badge2/io.github.eo-cqrs/ohip-java/javadoc.svg)](https://javadoc.io/doc/io.github.eo-cqrs/ohip-java)
[![codecov](https://codecov.io/gh/eo-cqrs/eo-kafka/branch/master/graph/badge.svg?token=4IFT0H3Y01)](https://codecov.io/gh/eo-cqrs/eo-kafka)

[![Hits-of-Code](https://hitsofcode.com/github/eo-cqrs/ohip-java)](https://hitsofcode.com/view/github/eo-cqrs/ohip-java)
[![Lines-of-Code](https://tokei.rs/b1/github/eo-cqrs/ohip-java)](https://github.com/eo-cqrs/ohip-java)
[![PDD status](http://www.0pdd.com/svg?name=eo-cqrs/ohip-java)](http://www.0pdd.com/p?name=eo-cqrs/ohip-java)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/eo-cqrs/ohip-java/blob/master/LICENSE.txt)

Project architect: [@h1alexbel](https://github.com/h1alexbel)

Java Object-Oriented Wrapper of [OHIP](https://www.oracle.com/hospitality/integration-platform/) API.

**Motivation**. We are lacking off some wrapper for OHIP API
to simplify API calls and reuse configuration.
we are suggesting this capability through small and cohesive objects.

**Principles**. These are the [design principles](https://www.elegantobjects.org/#principles) behind this wrapper.

**How to use**. All you need is this (get the latest version [here](https://search.maven.org/artifact/io.github.eo-cqrs/ohip)):

Maven:
```xml
<dependency>
<groupId>io.github.eo-cqrs</groupId>
<artifactId>ohip</artifactId>
</dependency>
```

Gradle:
```groovy
dependencies {
compile 'io.github.eo-cqrs:ohip:<version>'
}
```

## Accessing OHIP

TBD..

## How to Contribute

Fork repository, make changes, send us a [pull request](https://www.yegor256.com/2014/04/15/github-guidelines.html).
We will review your changes and apply them to the `master` branch shortly,
provided they don't violate our quality standards. To avoid frustration,
before sending us your pull request please run full Maven build:

```bash
$ mvn clean install
```

You will need Maven 3.8.7+ and Java 17+.

Our [rultor image](https://github.com/eo-cqrs/eo-kafka-rultor-image) for CI/CD.
30 changes: 30 additions & 0 deletions checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!--
MIT License
Copyright (c) 2023 Aliaksei Bialiauski, EO-CQRS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<!DOCTYPE suppressions PUBLIC "-//Checkstyle//DTD SuppressionFilter Configuration 1.0//EN" "https://checkstyle.org/dtds/suppressions_1_0.dtd">
<suppressions>
<suppress checks="LineLength" files=".*\.java$" lines="0-23"/>
<suppress checks="HiddenField" files=".*\.java$" lines="23-9999"/>
<suppress checks="MagicNumber" files="io.github.eocqrs.ohip.Token.java" lines="72"/>
</suppressions>
Loading

4 comments on commit 0359012

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 0359012 Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1-6106bc7f discovered in pom.xml) and submitted as #7. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 0359012 Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1-a2c54751 discovered in pom.xml) and submitted as #8. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 0359012 Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1-d08d9c09 discovered in pom.xml) and submitted as #11. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 0359012 Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1-a60b558b discovered in pom.xml) and submitted as #13. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

Please sign in to comment.