File tree Expand file tree Collapse file tree 7 files changed +35
-14
lines changed
Expand file tree Collapse file tree 7 files changed +35
-14
lines changed Original file line number Diff line number Diff line change 11apply plugin : ' java-library'
22
3- sourceCompatibility = JavaVersion . VERSION_1_8
4- targetCompatibility = JavaVersion . VERSION_1_8
3+ // Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
4+ // https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
5+ compileJava {
6+ options. release. set(8 )
7+ }
58
69task javadocJar (type : Jar , dependsOn : javadoc) {
710 archiveClassifier. set(' javadoc' )
Original file line number Diff line number Diff line change 11apply plugin : ' java-library'
22apply plugin : " com.github.spotbugs"
33
4- sourceCompatibility = JavaVersion . VERSION_1_8
5- targetCompatibility = JavaVersion . VERSION_1_8
4+ // Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
5+ // https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
6+ compileJava {
7+ options. release. set(8 )
8+ }
69
710ext {
811 javadocForWebDir = " $buildDir /docs/web-api-docs"
Original file line number Diff line number Diff line change @@ -5,8 +5,11 @@ buildscript {
55apply plugin : ' kotlin'
66apply plugin : ' org.jetbrains.dokka'
77
8- sourceCompatibility = JavaVersion . VERSION_1_8
9- targetCompatibility = JavaVersion . VERSION_1_8
8+ // Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
9+ // https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
10+ compileJava {
11+ options. release. set(8 )
12+ }
1013
1114// Produce Java 8 byte code, would default to Java 6.
1215tasks. withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile ). configureEach {
Original file line number Diff line number Diff line change 11apply plugin : ' java-library'
22
3- sourceCompatibility = JavaVersion . VERSION_1_8
4- targetCompatibility = JavaVersion . VERSION_1_8
3+ // Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
4+ // https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
5+ compileJava {
6+ options. release. set(8 )
7+ }
58
69dependencies {
710 api project(' :objectbox-java' )
Original file line number Diff line number Diff line change @@ -6,8 +6,11 @@ apply plugin: 'java-library'
66apply plugin : ' kotlin'
77apply plugin : ' org.jetbrains.dokka'
88
9- sourceCompatibility = JavaVersion . VERSION_1_8
10- targetCompatibility = JavaVersion . VERSION_1_8
9+ // Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
10+ // https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
11+ compileJava {
12+ options. release. set(8 )
13+ }
1114
1215// Produce Java 8 byte code, would default to Java 6.
1316tasks. withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile ). configureEach {
Original file line number Diff line number Diff line change @@ -3,8 +3,11 @@ apply plugin: 'kotlin'
33
44uploadArchives. enabled = false
55
6- sourceCompatibility = JavaVersion . VERSION_1_8
7- targetCompatibility = JavaVersion . VERSION_1_8
6+ // Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
7+ // https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
8+ compileJava {
9+ options. release. set(8 )
10+ }
811
912// Produce Java 8 byte code, would default to Java 6.
1013tasks. withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile ). configureEach {
Original file line number Diff line number Diff line change @@ -2,8 +2,11 @@ apply plugin: 'java-library'
22
33uploadArchives. enabled = false
44
5- sourceCompatibility = JavaVersion . VERSION_1_8
6- targetCompatibility = JavaVersion . VERSION_1_8
5+ // Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
6+ // https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
7+ compileJava {
8+ options. release. set(8 )
9+ }
710
811repositories {
912 // Native lib might be deployed only in internal repo
You can’t perform that action at this time.
0 commit comments