diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 0000000..9ecca77 --- /dev/null +++ b/.github/auto_assign.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 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 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..09be917 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'