Skip to content

Commit

Permalink
Merge pull request #32 from IZIVIA/rel/0.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
lilgallon authored Dec 8, 2023
2 parents b23f82c + a1e42bf commit 357b873
Show file tree
Hide file tree
Showing 488 changed files with 2,258 additions and 25,038 deletions.
4 changes: 3 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,9 @@ ij_groovy_while_on_new_line = false
ij_groovy_wrap_long_lines = false

[{*.gradle.kts,*.kt,*.kts,*.main.kts}]
ktlint_disabled_rules = no-wildcard-imports, package-name, filename
ktlint_standard_no-wildcard-imports = disabled
ktlint_standard_filename = disabled
ktlint_standard_enum-entry-name-case = disabled
ij_kotlin_align_in_columns_case_branch = false
ij_kotlin_align_multiline_binary_operation = false
ij_kotlin_align_multiline_extends_list = false
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,15 @@ jobs:
- name: Checkout IZIVIA OCPI toolkit library code from GH
uses: actions/checkout@v3

- name: Publish annotation processor to maven local
uses: gradle/gradle-build-action@v2.8.1
- name: Setup gradle action
uses: gradle/gradle-build-action@v2.10.0
with:
gradle-version: wrapper
arguments: :annotation-processor:publishToMavenLocal
cache-read-only: ${{ github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/main' }}
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
gradle-home-cache-cleanup: true

- name: Ktlint check OCPI toolkit
run: ./gradlew ktlintCheck

- name: Build OCPI toolkit
uses: gradle/[email protected]
with:
gradle-version: wrapper
arguments: build
cache-read-only: ${{ github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/main' }}
run: ./gradlew build
16 changes: 5 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,18 @@ jobs:
- name: Checkout IZIVIA OCPI toolkit library code from GH
uses: actions/checkout@v3

- name: Publish OCPI annotation processor to maven local
uses: gradle/[email protected]
env:
VERSION: ${{ github.ref }}
- name: Setup gradle action
uses: gradle/[email protected]
with:
gradle-version: wrapper
arguments: :annotation-processor:publishToMavenLocal
cache-read-only: ${{ github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/main' }}
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
gradle-home-cache-cleanup: true

- name: Build OCPI toolkit
uses: gradle/[email protected]
env:
VERSION: ${{ github.ref }}
SONATYPE_USERNAME: ${{ secrets.DELIVERY_SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.DELIVERY_SONATYPE_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.DELIVERY_GPG_SECRET_KEY }}
GPG_PASSPHRASE: ${{ secrets.DELIVERY_GPG_KEY_PASSPHRASE }}
with:
gradle-version: wrapper
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
cache-read-only: ${{ github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/main' }}
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
94 changes: 94 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Contributing

First off, thanks for taking the time to contribute!

All types of contributions are encouraged and valued.
Please make sure to read the relevant section before
making your contribution.

> And if you like the project, but just don't have time
> to contribute, that's fine. There are other easy ways
> to support the project and show your appreciation,
> which we would also be very happy about:
> - Tweet about it
> - Refer this project in your project's readme
> - Mention the project at local meetups and tell your
> friends/colleagues
## Code of Conduct

Be kind

## I Have a Question

Before you ask a question, it is best to search for
existing [Issues](/issues) that might help you. In case
you have found a suitable issue and still need clarification,
you can write your question in this issue.

If you then still feel the need to ask a question and need
clarification, we recommend the following:

- Open an [Issue](/issues/new).
- Provide as much context as you can about what you're running
into.

We will then take care of the issue as soon as possible.

## I want to suggest an enhancement

Enhancement suggestions are tracked as [GitHub issues](/issues).

- Open an [Issue](/issues/new).
- Use a **clear and descriptive title** for the issue to
identify the suggestion.
- Provide a **step-by-step description of the suggested enhancement**
in as many details as possible.
- **Describe the current behavior** and **explain which behavior you
expected to see instead** and why. At this point you can also tell
which alternatives do not work for you.

## I found a bug

You must never report security related issues, vulnerabilities
or bugs including sensitive information to the issue tracker,
or elsewhere in public. Instead sensitive bugs must be sent by
email to `[email protected]`.

- Open an [Issue](/issues/new). (Since we can't be sure at this
point whether it is a bug or not, we ask you not to talk about a
bug yet and not to label the issue.)
- Explain the behavior you would expect and the actual behavior.
- Please provide as much context as possible and describe the
*reproduction steps* that someone else can follow to recreate the
issue on their own. This usually includes your code. For good bug
reports you should isolate the problem and create a reduced test
case.
- Provide the information you collected in the previous section.

## I Want To Contribute

When contributing to this project, you must agree that you
have authored 100% of the content, that you have the necessary
rights to the content and that the content you contribute may
be provided under the project license.

**Commits:**

Please follow this format:

```
feat|fix|chore|doc(impact) #issueId: small description
```

Examples:
- `feat(credentials) #1: implemented /POST endpoint`
- `fix(versions) #2: /GET endpoint not returning the correct versions`
- `doc(readme) #3: updated code examples with last changes`
- `doc(contributing): init CONTRIBUTING.md`

**Code style:**

Code style is enforced by ktlint. You can run `./gradlew ktlintCheck`
to make sure your code follows our code style. The CI will check this
anyway.
Loading

0 comments on commit 357b873

Please sign in to comment.