diff --git a/.github/workflows/build_validator.yml b/.github/workflows/build_validator.yml index 83ae7af..6a4ffc7 100644 --- a/.github/workflows/build_validator.yml +++ b/.github/workflows/build_validator.yml @@ -29,12 +29,13 @@ jobs: with: java-version: ${{ matrix.jdk }} distribution: 'adopt' - cache: gradle - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - name: Make gradlew executable run: chmod +x ./gradlew - name: Generate SourceCode with Gradle run: ./gradlew generateGithubSource + - name: Setting Java Version + run: echo pcJavaVersion=${{matrix.jdk}} > ./gradle.properties - name: Build with Gradle run: ./gradlew build diff --git a/build.gradle b/build.gradle index 77cc50c..9c6ff89 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ repositories { archivesBaseName = 'Primitive Collections' version = '0.5.4'; -sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' +sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = JavaLanguageVersion.of(pcJavaVersion) javadoc { options.tags = [ "implSpec", "note" ] diff --git a/gradle.properties b/gradle.properties index 659b74c..76ab5cd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,3 @@ -org.gradle.jvmargs=-Xmx3G \ No newline at end of file +org.gradle.jvmargs=-Xmx3G + +pcJavaVersion=8 \ No newline at end of file