forked from Speiger/Primitive-Collections
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
|
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
|
||||||
|
|
|
@ -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" ]
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
org.gradle.jvmargs=-Xmx3G
|
org.gradle.jvmargs=-Xmx3G
|
||||||
|
|
||||||
pcJavaVersion=8
|
|
Loading…
Reference in New Issue