From 5e3cd9f48493a88fdbe31f5db1a4aa5e2f4f1815 Mon Sep 17 00:00:00 2001 From: Speiger Date: Thu, 7 Apr 2022 20:14:23 +0200 Subject: [PATCH] Trying out something with github actions --- .github/workflows/build_validator.yml | 3 ++- build.gradle | 2 +- gradle.properties | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_validator.yml b/.github/workflows/build_validator.yml index 83ae7af8..6a4ffc76 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 77cc50c6..9c6ff89d 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 659b74c0..76ab5cd6 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