Added gradle now uses the java version it runs on.

This commit is contained in:
Speiger 2022-04-07 20:26:53 +02:00
parent d3f9103ebf
commit 166362334b
3 changed files with 3 additions and 7 deletions

View File

@ -35,7 +35,5 @@ jobs:
run: chmod +x ./gradlew run: chmod +x ./gradlew
- name: Generate SourceCode with Gradle - name: Generate SourceCode with Gradle
run: ./gradlew generateGithubSource run: ./gradlew generateGithubSource
- name: Setting Java Version
run: echo pcJavaVersion=${{matrix.jdk}} > ./local.properties
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew build run: ./gradlew build

View File

@ -20,9 +20,9 @@ repositories {
archivesBaseName = 'Primitive Collections' archivesBaseName = 'Primitive Collections'
version = '0.5.4'; version = '0.5.4';
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = JavaLanguageVersion.of(pcJavaVersion) sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = JavaVersion.current();
System.out.println("Java Version: "+pcJavaVersion) System.out.println("Java Version: "+compileJava.sourceCompatibility)
javadoc { javadoc {
options.tags = [ "implSpec", "note" ] options.tags = [ "implSpec", "note" ]

View File

@ -1,3 +1 @@
org.gradle.jvmargs=-Xmx3G org.gradle.jvmargs=-Xmx3G
pcJavaVersion=8