Added gradle now uses the java version it runs on.
This commit is contained in:
parent
d3f9103ebf
commit
166362334b
|
@ -35,7 +35,5 @@ jobs:
|
|||
run: chmod +x ./gradlew
|
||||
- name: Generate SourceCode with Gradle
|
||||
run: ./gradlew generateGithubSource
|
||||
- name: Setting Java Version
|
||||
run: echo pcJavaVersion=${{matrix.jdk}} > ./local.properties
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew build
|
||||
|
|
|
@ -20,9 +20,9 @@ repositories {
|
|||
archivesBaseName = 'Primitive Collections'
|
||||
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 {
|
||||
options.tags = [ "implSpec", "note" ]
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
org.gradle.jvmargs=-Xmx3G
|
||||
|
||||
pcJavaVersion=8
|
||||
org.gradle.jvmargs=-Xmx3G
|
Loading…
Reference in New Issue