diff --git a/.0pdd.yml b/.0pdd.yml index 8d23fe2..d095ec7 100644 --- a/.0pdd.yml +++ b/.0pdd.yml @@ -1,5 +1,5 @@ errors: - - # your email + - l3r8y@duck.com tags: - pdd - bug diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 4c70bc2..6ff66b6 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -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 diff --git a/.github/workflows/mvn.yaml b/.github/workflows/mvn.yaml index 145b232..9d7cbc9 100644 --- a/.github/workflows/mvn.yaml +++ b/.github/workflows/mvn.yaml @@ -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 diff --git a/LICENSE b/LICENSE.txt similarity index 88% rename from LICENSE rename to LICENSE.txt index 4821d65..b7bba72 100644 --- a/LICENSE +++ b/LICENSE.txt @@ -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 @@ -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. \ No newline at end of file diff --git a/README.md b/README.md index e21c9a6..aa8496b 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/checkstyle-suppressions.xml b/checkstyle-suppressions.xml new file mode 100644 index 0000000..f1c4bc6 --- /dev/null +++ b/checkstyle-suppressions.xml @@ -0,0 +1,32 @@ + + + + + + + + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..61121f3 --- /dev/null +++ b/pom.xml @@ -0,0 +1,258 @@ + + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.0.6 + + + + io.blamer + hub + 0.0.1-SNAPSHOT + hub + Blamer hub + 2023 + + + 1 + Ivan Ivanchuk + l3r8y@duck.com + https://www.l3r8y.ru + Objectionary + https://www.objectionary.com/ + + Architect + Developer + + + + 2 + Aliaksei Bialiauski + abialiauski.dev@gmail.com + https://h1alexbel.github.io + https://www.solvd.com + + Developer + + + + + GitHub + https://github.com/blamer-io/hub/issues + + + GitHub Actions + https://github.com/blamer-io/hub/actions + + + + MIT + https://github.com/blamer-io/hub/blob/master/LICENSE.txt + site + + + + 17 + 17 + 17 + UTF-8 + 6.5.0 + 0.8.9 + 0.1.9 + 0.1.5 + 3.2.2 + 8.15 + 3.0.0 + 8.15 + 3.2.2 + + + + org.springframework.boot + spring-boot-starter-rsocket + + + org.springframework.boot + spring-boot-starter-webflux + + + org.springframework.boot + spring-boot-devtools + runtime + true + + + org.springframework.boot + spring-boot-configuration-processor + true + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + io.projectreactor + reactor-test + test + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + jacoco-initialize + + prepare-agent + + + + jacoco-check + test + + check + report + + + + + BUNDLE + + + INSTRUCTION + COVEREDRATIO + + 0.30 + + + LINE + COVEREDRATIO + + 0.30 + + + BRANCH + COVEREDRATIO + + 0.00 + + + COMPLEXITY + COVEREDRATIO + + 0.30 + + + METHOD + COVEREDRATIO + + 0.30 + + + CLASS + MISSEDCOUNT + 20 + + + + + + + + + + com.github.volodya-lombrozo + jtcop-maven-plugin + ${jtcop-maven-plugin.version} + + + + check + + + + + + ru.l3r8y + sa-tan + ${sa-tan.version} + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${maven-checkstyle-plugin.version} + + + com.puppycrawl.tools + checkstyle + ${checkstyle.version} + + + + + verify-style + process-classes + + check + + + checkstyle.suppressions.file + checkstyle-suppressions.xml + + + + + + + diff --git a/src/main/java/io/blamer/hub/HubApplicationEntry.java b/src/main/java/io/blamer/hub/HubApplicationEntry.java new file mode 100644 index 0000000..ba9400c --- /dev/null +++ b/src/main/java/io/blamer/hub/HubApplicationEntry.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package io.blamer.hub; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * Entry class. + */ +@SpringBootApplication +public class HubApplicationEntry { + + /** + * Entry point. + * + * @param args Application arguments + */ + public static void main(final String[] args) { + SpringApplication.run(HubApplicationEntry.class, args); + } + +} diff --git a/src/main/java/io/blamer/hub/package-info.java b/src/main/java/io/blamer/hub/package-info.java new file mode 100644 index 0000000..deb213c --- /dev/null +++ b/src/main/java/io/blamer/hub/package-info.java @@ -0,0 +1,28 @@ +/* + * 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. + */ + +/** + * Root HubApplication package. + */ +package io.blamer.hub; diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/main/resources/application.yaml @@ -0,0 +1 @@ + diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt new file mode 100644 index 0000000..9264eab --- /dev/null +++ b/src/main/resources/banner.txt @@ -0,0 +1,8 @@ +,-----. ,--. ,--. ,--. ,--. +| |) /_| | ,--,--.,--,--,--.,---. ,--.--. | '--' |,--.,--.| |-. +| .-. \ |' ,-. || | .-. :| .--' | .--. || || || .-. ' +| '--' / |\ '-' || | | \ --.| | | | | |' '' '| `-' | +`------'`--' `--`--'`--`--`--'`----'`--' `--' `--' `----' `---' + +${application.title} ${application.version} +Powered by Spring Boot ${spring-boot.version} diff --git a/src/test/java/io/blamer/hub/HubApplicationEntryTest.java b/src/test/java/io/blamer/hub/HubApplicationEntryTest.java new file mode 100644 index 0000000..407b6cd --- /dev/null +++ b/src/test/java/io/blamer/hub/HubApplicationEntryTest.java @@ -0,0 +1,37 @@ +/* + * 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. + */ + +package io.blamer.hub; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class HubApplicationEntryTest { + + @Test + void loadsContext() { + } + +} diff --git a/src/test/resources/banner.txt b/src/test/resources/banner.txt new file mode 100644 index 0000000..0dbf859 --- /dev/null +++ b/src/test/resources/banner.txt @@ -0,0 +1,8 @@ +,-----. ,--. ,--. ,--. ,--. ,--------. ,--. +| |) /_| | ,--,--.,--,--,--.,---. ,--.--. | '--' |,--.,--.| |-. '--. .--',---. ,---.,-' '-. ,---. +| .-. \ |' ,-. || | .-. :| .--' | .--. || || || .-. ' | | | .-. :( .-''-. .-'( .-' +| '--' / |\ '-' || | | \ --.| | | | | |' '' '| `-' | | | \ --..-' `) | | .-' `) +`------'`--' `--`--'`--`--`--'`----'`--' `--' `--' `----' `---' `--' `----'`----' `--' `----' + +${application.title} ${application.version} +Powered by Spring Boot ${spring-boot.version}