Skip to content

Commit

Permalink
Merge branch '__rultor'
Browse files Browse the repository at this point in the history
  • Loading branch information
rultor committed Apr 27, 2023
2 parents 4f5dd9e + 4ff022e commit eac7680
Show file tree
Hide file tree
Showing 13 changed files with 436 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .0pdd.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
errors:
- # your email
- l3r8y@duck.com
tags:
- pdd
- bug
1 change: 1 addition & 0 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ jobs:
- run: mvn clean install
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./target/site/jacoco/jacoco.xml
fail_ci_if_error: true
2 changes: 1 addition & 1 deletion .github/workflows/mvn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, macos-12]
java: [11, 17]
java: [17, 20]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions LICENSE → LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Ivan Ivanchuk
Copyright (c) 2023 Blamer.io

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,8 +14,8 @@ 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.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# 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)

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)

## 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.

- [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.

## 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`.

- 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!
32 changes: 32 additions & 0 deletions checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<!--
MIT License
Copyright (c) 2023 Blamer.io
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="DesignForExtension" files=".*\.java$" lines="0-9999"/>
<suppress checks="HideUtilityClassConstructor" files="HubApplicationEntry.java" lines="0-9999"/>
<suppress checks="FinalClass" files=".*\.java$" lines="0-9999"/>
</suppressions>
258 changes: 258 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,258 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
MIT License
Copyright (c) 2023 Blamer.io
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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.6</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<groupId>io.blamer</groupId>
<artifactId>hub</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>hub</name>
<description>Blamer hub</description>
<inceptionYear>2023</inceptionYear>
<developers>
<developer>
<id>1</id>
<name>Ivan Ivanchuk</name>
<email>l3r8y@duck.com</email>
<url>https://www.l3r8y.ru</url>
<organization>Objectionary</organization>
<organizationUrl>https://www.objectionary.com/</organizationUrl>
<roles>
<role>Architect</role>
<role>Developer</role>
</roles>
</developer>
<developer>
<id>2</id>
<name>Aliaksei Bialiauski</name>
<email>abialiauski.dev@gmail.com</email>
<url>https://h1alexbel.github.io</url>
<organizationUrl>https://www.solvd.com</organizationUrl>
<roles>
<role>Developer</role>
</roles>
</developer>
</developers>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/blamer-io/hub/issues</url>
</issueManagement>
<ciManagement>
<system>GitHub Actions</system>
<url>https://github.com/blamer-io/hub/actions</url>
</ciManagement>
<licenses>
<license>
<name>MIT</name>
<url>https://github.com/blamer-io/hub/blob/master/LICENSE.txt</url>
<distribution>site</distribution>
</license>
</licenses>
<properties>
<java.version>17</java.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<telegrambots-spring-boot-starter.version>6.5.0</telegrambots-spring-boot-starter.version>
<jacoco-maven-plugin.version>0.8.9</jacoco-maven-plugin.version>
<jtcop-maven-plugin.version>0.1.9</jtcop-maven-plugin.version>
<sa-tan.version>0.1.5</sa-tan.version>
<maven-checkstyle-plugin.version>3.2.2</maven-checkstyle-plugin.version>
<checkstyle.version>8.15</checkstyle.version>
<maven-surefire-plugin.version>3.0.0</maven-surefire-plugin.version>
<checkstyle.version>8.15</checkstyle.version>
<maven-checkstyle-plugin.version>3.2.2</maven-checkstyle-plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-rsocket</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-check</id>
<phase>test</phase>
<goals>
<goal>check</goal>
<goal>report</goal>
</goals>
<configuration>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>INSTRUCTION</counter>
<value>COVEREDRATIO</value>
<!-- @todo #1 bump up INSTRUCTION coverage branch coverage is 0.00 for now, we need to bump it up to 0.55 -->
<minimum>0.30</minimum>
</limit>
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<!-- @todo #1 bump up LINE coverage branch coverage is 0.00 for now, we need to bump it up to 0.55 -->
<minimum>0.30</minimum>
</limit>
<limit>
<counter>BRANCH</counter>
<value>COVEREDRATIO</value>
<!-- @todo #1 bump up BRANCH coverage branch coverage is 0.00 for now, we need to bump it up to 0.55 -->
<minimum>0.00</minimum>
</limit>
<limit>
<counter>COMPLEXITY</counter>
<value>COVEREDRATIO</value>
<!-- @todo #1 bump up COMPLEXITY coverage branch coverage is 0.00 for now, we need to bump it up to 0.55 -->
<minimum>0.30</minimum>
</limit>
<limit>
<counter>METHOD</counter>
<value>COVEREDRATIO</value>
<!-- @todo #1 bump up METHOD coverage branch coverage is 0.00 for now, we need to bump it up to 0.55 -->
<minimum>0.30</minimum>
</limit>
<limit>
<counter>CLASS</counter>
<value>MISSEDCOUNT</value>
<maximum>20</maximum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.volodya-lombrozo</groupId>
<artifactId>jtcop-maven-plugin</artifactId>
<version>${jtcop-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>ru.l3r8y</groupId>
<artifactId>sa-tan</artifactId>
<version>${sa-tan.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin.version}</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>verify-style</id>
<phase>process-classes</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
<suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading

5 comments on commit eac7680

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on eac7680 Apr 27, 2023

Choose a reason for hiding this comment

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

Puzzle 1-ba2009c8 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 eac7680 Apr 27, 2023

Choose a reason for hiding this comment

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

Puzzle 1-db345bb1 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 eac7680 Apr 27, 2023

Choose a reason for hiding this comment

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

Puzzle 1-cb80eb87 discovered in pom.xml) and submitted as #9. 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 eac7680 Apr 27, 2023

Choose a reason for hiding this comment

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

Puzzle 1-806556b1 discovered in pom.xml) and submitted as #10. 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 eac7680 Apr 27, 2023

Choose a reason for hiding this comment

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

Puzzle 1-1c92b8b1 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.

Please sign in to comment.