From 74eac82150cc7926eaef3c7fe5a1e95126a19988 Mon Sep 17 00:00:00 2001 From: Tobias Grothe Date: Sat, 22 Feb 2025 13:05:03 +0100 Subject: [PATCH 1/5] Update CI and Gradle --- .github/workflows/jars.yml | 33 +++++++++++++++++++++++++++++++++ build.gradle | 10 +++------- gradle.properties | 1 + 3 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/jars.yml create mode 100644 gradle.properties diff --git a/.github/workflows/jars.yml b/.github/workflows/jars.yml new file mode 100644 index 0000000..9c9d2e4 --- /dev/null +++ b/.github/workflows/jars.yml @@ -0,0 +1,33 @@ +name: Commit jars + +on: workflow_dispatch + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Build with Gradle Wrapper + run: ./gradlew jar + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: jars/*.jar + file_glob: true + tag: ${{ github.ref }} + overwrite: true + body: "Read the readme file for details." diff --git a/build.gradle b/build.gradle index f5d96e7..63ec129 100644 --- a/build.gradle +++ b/build.gradle @@ -3,14 +3,12 @@ buildscript { } plugins { - id 'java' id 'application' id 'com.diffplug.spotless' version "${spotlessVersion}" id 'com.github.ben-manes.versions' version "${benmanesVersion}" id 'com.github.spotbugs' version "${spotbugsVersion}" } -group = 'org.example' version = '1.0' application { @@ -25,11 +23,9 @@ dependencies { implementation depsArray.lang3 } -compileJava.options.encoding = 'UTF-8' - -tasks.withType(JavaCompile) { - options.release = 17 - options.encoding = 'UTF-8' +java { +sourceCompatibility = JavaVersion.VERSION_17 +targetCompatibility = JavaVersion.VERSION_17 } spotless { diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..e110e41 --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +org.gradle.jvmargs='-Dfile.encoding=UTF-8' From 4170abbad066d50db8facf7faa2246f483b66dc9 Mon Sep 17 00:00:00 2001 From: Tobias Grothe Date: Sat, 22 Feb 2025 13:15:25 +0100 Subject: [PATCH 2/5] Add auto assign --- .github/autoassign.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/autoassign.yml diff --git a/.github/autoassign.yml b/.github/autoassign.yml new file mode 100644 index 0000000..9ecca77 --- /dev/null +++ b/.github/autoassign.yml @@ -0,0 +1,21 @@ +# Set to true to add reviewers to pull requests +addReviewers: false + +# Set to true to add assignees to pull requests +addAssignees: true + +# A list of reviewers to be added to pull requests (GitHub user name) +reviewers: + - tgrothe + +# A list of assignees, overrides reviewers if set +assignees: + - tgrothe + +# A list of keywords to be skipped the process that add reviewers if pull requests include it +skipKeywords: + - wip + +# A number of reviewers added to the pull request +# Set 0 to add all the reviewers (default: 0) +numberOfReviewers: 0 From d7aafacec9512f3e9ad85930b12d2aa8623193d1 Mon Sep 17 00:00:00 2001 From: Tobias Grothe Date: Sat, 22 Feb 2025 13:16:48 +0100 Subject: [PATCH 3/5] format --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 63ec129..09be917 100644 --- a/build.gradle +++ b/build.gradle @@ -24,8 +24,8 @@ dependencies { } java { -sourceCompatibility = JavaVersion.VERSION_17 -targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } spotless { From 5e0475a990c1aecb0646701cdb5f6ad26c86536f Mon Sep 17 00:00:00 2001 From: Tobias Grothe Date: Sat, 22 Feb 2025 13:18:38 +0100 Subject: [PATCH 4/5] renamed: .github/autoassign.yml -> .github/auto_assign.yml --- .github/{autoassign.yml => auto_assign.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{autoassign.yml => auto_assign.yml} (100%) diff --git a/.github/autoassign.yml b/.github/auto_assign.yml similarity index 100% rename from .github/autoassign.yml rename to .github/auto_assign.yml From 25c5d29044316b82f96246256898ca22340cb8b9 Mon Sep 17 00:00:00 2001 From: Tobias Grothe Date: Sat, 22 Feb 2025 13:22:26 +0100 Subject: [PATCH 5/5] interval: -> weekly --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f4ebbdf..60bfb98 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,4 +8,4 @@ updates: - package-ecosystem: "gradle" # See documentation for possible values directory: "/" # Location of package manifests schedule: - interval: "daily" # daily, weekly, monthly + interval: "weekly" # daily, weekly, monthly