From b162d1b4bc6b8a4b376fc6c3884747464e2ce64c Mon Sep 17 00:00:00 2001 From: Roman Khlebnov Date: Wed, 24 Apr 2024 22:32:25 +0300 Subject: [PATCH] Adjusting GitHub Actions and code format --- .github/workflows/build.yml | 2 +- .github/workflows/pr.yml | 4 ++-- CONTRIBUTING.md | 11 +++++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6a36eb..e867eff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,7 +41,7 @@ jobs: run: chmod +x gradlew - name: Build with Gradle - run: ./gradlew build + run: ./gradlew spotlessJavaCheck build - name: Publish to Maven Central run: ./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 204c42d..c21a9d9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -5,7 +5,7 @@ name: Java CI with Gradle for Pull Requests on: workflow_dispatch: {} - pull_request: + push: branches-ignore: - master @@ -35,4 +35,4 @@ jobs: run: chmod +x gradlew - name: Build with Gradle - run: ./gradlew build \ No newline at end of file + run: ./gradlew spotlessJavaCheck build \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c5e6d3c..1e836f2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -29,14 +29,13 @@ The following guides illustrate how to use some features concretely: For further reference, please consider the following sections: -### Libraries declaration and updates - -This library defines all artifact versions without Maven Bill of Materials because of: +### Build tools -* Ease of use with [IntelliJ IDEA Package Search](https://blog.jetbrains.com/idea/2021/06/intellij-idea-2021-2-eap-2/?_gl=1*17t2ibb*_ga*MjE4Mjk3MC4xNjI3NTg1MTk1*_ga_5779HKX92V*MTYyNzU4NTE5OC4xLjAuMTYyNzU4NTE5OC4w#package_search_integration%60}#package_search_integration) functionality -* Ease of use with [Dependabot](https://dependabot.com/) +The command typically used to build the project is: -### Build tools +```shell +./gradlew clean spotlessApply build +``` * [Official Gradle documentation](https://docs.gradle.org)