Skip to content

Commit

Permalink
feat(#4): added pom, settings and base classes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Oct 24, 2023
1 parent 5f4029c commit 352dfe9
Show file tree
Hide file tree
Showing 13 changed files with 523 additions and 41 deletions.
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Check out all text files in UNIX format, with LF as end of line
# Don't change this file. If you have any ideas about it, please
# submit a separate issue about it and we'll discuss.
# Why: - https://github.com/yegor256/qulice/issues/391
# - https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings

* text=auto eol=lf
*.java ident
*.xml ident
*.png binary
14 changes: 7 additions & 7 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
name: codecov
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
branches:
- master
jobs:
codecov:
runs-on: ubuntu-20.04
name: Upload coverage reports to Codecov
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
java-version: 11
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- run: mvn clean install
- run: mvn clean install -Pqulice --errors --batch-mode
- uses: codecov/codecov-action@v3
with:
files: ./target/site/jacoco/jacoco.xml
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/mvn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ jobs:
name: Tests
strategy:
matrix:
os: [ubuntu-20.04, macos-12]
java: [11, 17]
os: [ubuntu-20.04, windows-2022, macos-12]
java: [11, 20]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
distribution: 'zulu'
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
- run: mvn clean install -Pqulice --errors --batch-mode
11 changes: 8 additions & 3 deletions .github/workflows/pdd.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
---
name: pdd
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
pdd:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: g4s8/pdd-action@master
6 changes: 3 additions & 3 deletions .github/workflows/xcop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- master
jobs:
xcop:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: g4s8/xcop-action@master
- uses: actions/checkout@v4
- uses: g4s8/xcop-action@v1.3
16 changes: 12 additions & 4 deletions .rultor.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
architect:
- # your GitHub nickname
- maxonfjvipon
docker:
image: yegor256/rultor-image:1.19.0
assets:
settings.xml: yegor256/objectionary-secrets#settings.xml
pubring.gpg: yegor256/objectionary-secrets#pubring.gpg
secring.gpg: yegor256/objectionary-secrets#secring.gpg
merge:
script:
- "mvn clean install --errors --batch-mode"
script: mvn clean install -Pqulice --errors --batch-mode
release:
pre: false
script: |-
echo "Master branch"
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
mvn versions:set "-DnewVersion=${tag}"
git commit -am "${tag}"
# add your release pipeline
mvn clean install -Pqulice --errors --batch-mode -Dinvoker.skip -DskipITs
mvn clean deploy -Pobjectionary -Psonatype --errors --settings ../settings.xml -Dstyle.color=never
12 changes: 6 additions & 6 deletions LICENSE → LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License
The MIT License (MIT)

Copyright (c) 2023 Ivan Ivanchuk
Copyright (c) 2016-2023 Objectionary.com

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 @@ -9,13 +9,13 @@ 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 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 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
SOFTWARE.
SOFTWARE.
19 changes: 6 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
# elegant
This is a pre-configured template for your projects in Java, you can use it with any language, [more about it](https://h1alexbel.github.io/2023/01/21/maintainable-project-template.html)
<img alt="logo" src="https://www.objectionary.com/cactus.svg" height="100px" />

## Tools:
- [Rultor](https://www.rultor.com/) for CI/CD.
- [0pdd](https://www.0pdd.com/) for issue management.
- [Renovate](https://www.mend.io/free-developer-tools/renovate/) for dependency control.
- [xcop](https://www.yegor256.com/2017/08/29/xcop.html) GitHub action for XML style check.
[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
[![DevOps By Rultor.com](http://www.rultor.com/b/objectionary/eo)](http://www.rultor.com/p/objectionary/eo)
[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)

## How to use?
- Configure actions in `workflows` folder.
- [Configure](https://doc.rultor.com/reference.html) the `@rultor`.
- [Configure](https://www.yegor256.com/2017/04/05/pdd-in-action.html) the `0pdd`.
- [Configure](https://github.com/marketplace/renovate) the `renovate`.

And you're good to go!
**INEO** (stands for EO Inliner) is the tool to inline EO objects in order to get a faster and
lighter EO code that will be transpiled to faster java by [jeo](https://github.com/objectionary/jeo-maven-plugin).
Loading

0 comments on commit 352dfe9

Please sign in to comment.