diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5b01906..66950d9 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,16 +1,17 @@ name: Check on: pull_request: + jobs: detekt: name: Detekt Check runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache Gradle - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/.gradle/caches/ @@ -18,25 +19,27 @@ jobs: key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} restore-keys: cache-gradle- - - name: Setup Java 15 - uses: actions/setup-java@v1 + - name: Setup Java 17 + uses: actions/setup-java@v3 with: - java-version: '15' + distribution: zulu + java-version: 17 - name: Run Detekt run: ./gradlew detekt --stacktrace - name: Stop Gradle run: ./gradlew --stop + unit-tests: name: Unit Tests runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache Gradle - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/.gradle/caches/ @@ -44,10 +47,11 @@ jobs: key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} restore-keys: cache-gradle- - - name: Setup Java 15 - uses: actions/setup-java@v1 + - name: Setup Java 17 + uses: actions/setup-java@v3 with: - java-version: '15' + distribution: zulu + java-version: 17 - name: Run Debug Unit Tests run: ./gradlew test --stacktrace diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml deleted file mode 100644 index 2287c77..0000000 --- a/.github/workflows/publish-snapshot.yml +++ /dev/null @@ -1,40 +0,0 @@ -#name: Publish Snaphot -#on: -# workflow_dispatch: -# push: -# branches: -# - main -# -#jobs: -# deploy-maven-snapshot: -# name: Deploy To Maven Snaphot -# runs-on: ubuntu-latest -# steps: -# - name: Checkout Repository -# uses: actions/checkout@v2 -# with: -# fetch-depth: '0' -# -# - name: Cache Gradle -# uses: actions/cache@v2 -# with: -# path: | -# ~/.gradle/caches/ -# ~/.gradle/wrapper/ -# key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} -# restore-keys: cache-gradle- -# -# - name: Setup Java 15 -# uses: actions/setup-java@v1 -# with: -# java-version: '15' -# -# - name: Deploy Snapshot -# env: -# ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} -# ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} -# run: ./gradlew publish --no-daemon --no-parallel --stacktrace -# -# -# - name: Stop Gradle -# run: ./gradlew --stop diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 6e53383..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,52 +0,0 @@ -#name: Publish -#on: -# workflow_dispatch: -# push: -# tags: -# - '*.*.*' -# -#jobs: -# deploy-maven: -# name: Deploy To Maven -# runs-on: ubuntu-latest -# steps: -# - name: Checkout Repository -# uses: actions/checkout@v2 -# with: -# fetch-depth: '0' -# -# - name: Cache Gradle -# uses: actions/cache@v2 -# with: -# path: | -# ~/.gradle/caches/ -# ~/.gradle/wrapper/ -# key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} -# restore-keys: cache-gradle- -# -# - name: Setup Java 15 -# uses: actions/setup-java@v1 -# with: -# java-version: '15' -# -# - name: Deploy Release -# env: -# ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} -# ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} -# ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SONATYPE_NEXUS_SIGNING_KEY }} -# ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SONATYPE_NEXUS_SIGNING_KEY_PASSWORD }} -# run: ./gradlew publish --no-daemon --no-parallel --stacktrace -# -# - name: Publish release -# env: -# ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} -# ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} -# run: ./gradlew closeAndReleaseRepository --no-daemon --no-parallel -# -# - name: Github release -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# run: ./gradlew githubRelease -# -# - name: Stop Gradle -# run: ./gradlew --stop diff --git a/.github/workflows/publish_package.yaml b/.github/workflows/publish_package.yaml index ada52f3..8f35f1a 100644 --- a/.github/workflows/publish_package.yaml +++ b/.github/workflows/publish_package.yaml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: - java-version: '11' + java-version: '17' distribution: 'adopt' - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index bd0dc93..55e7665 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -1,11 +1,6 @@ - -