diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e1f598be..2ffc3070e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,9 +2,11 @@ name: Build on: push: + pull_request_target: + types: [labeled] env: - JAVA_VERSION: 16 + JAVA_VERSION: 17 defaults: run: @@ -17,19 +19,16 @@ jobs: if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" steps: - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: 'temurin' java-version: ${{ env.JAVA_VERSION }} - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: 'maven' - name: Build and Test run: mvn -B clean install jacoco:report -Pcoverage,dependency-check - name: Upload code coverage report id: codacyCoverageReporter + if: "github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'pr:safe')" run: bash <(curl -Ls https://coverage.codacy.com/get.sh) env: CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml new file mode 100644 index 000000000..c529ca09b --- /dev/null +++ b/.github/workflows/pullrequest.yml @@ -0,0 +1,26 @@ +name: Pull Request + +on: + pull_request: + +env: + JAVA_VERSION: 17 + +defaults: + run: + shell: bash + +jobs: + test: + name: Compile and Test + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: ${{ env.JAVA_VERSION }} + cache: 'maven' + - name: Build and Test + run: mvn -B clean install jacoco:report -Pcoverage,dependency-check \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a3e9a2b59..16a68d456 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ on: - '[0-9]+.[0-9]+.[0-9]+-*' env: - JAVA_VERSION: 16 + JAVA_VERSION: 17 defaults: run: diff --git a/.idea/misc.xml b/.idea/misc.xml index 68ef79a67..4731638fd 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -8,7 +8,7 @@ - + \ No newline at end of file diff --git a/README.md b/README.md index cfccf87c1..4e29763ba 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ For more information on the security details visit [cryptomator.org](https://doc ### Dependencies -* JDK 16 (e.g. adoptopenjdk) +* JDK 17 (e.g. temurin) * Maven 3 * Optional: OS-dependent build tools for native packaging (see [Windows](https://github.com/cryptomator/cryptomator-win), [OS X](https://github.com/cryptomator/cryptomator-osx), [Linux](https://github.com/cryptomator/builder-containers)) diff --git a/dist/linux/debian/control b/dist/linux/debian/control index 2f9e94ac1..ef06120b3 100644 --- a/dist/linux/debian/control +++ b/dist/linux/debian/control @@ -2,7 +2,7 @@ Source: cryptomator Maintainer: Cryptobot Section: utils Priority: optional -Build-Depends: debhelper (>=10), openjdk-16-jdk +Build-Depends: debhelper (>=10), openjdk-17-jdk Standards-Version: 4.5.0 Homepage: https://cryptomator.org Vcs-Git: https://github.com/cryptomator/cryptomator.git diff --git a/pom.xml b/pom.xml index 39757709d..a1a48d506 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ UTF-8 - 16 + 17 com.github.serceman,com.github.jnr,org.ow2.asm,net.java.dev.jna,org.apache.jackrabbit,org.apache.httpcomponents,de.swiesend,org.purejava,com.github.hypfvieh diff --git a/src/main/resources/fxml/vault_detail_unknownerror.fxml b/src/main/resources/fxml/vault_detail_unknownerror.fxml index 89109fcc5..8595d2fe1 100644 --- a/src/main/resources/fxml/vault_detail_unknownerror.fxml +++ b/src/main/resources/fxml/vault_detail_unknownerror.fxml @@ -8,7 +8,7 @@