From 98565d660217436b19521032bc07844fa08b78fe Mon Sep 17 00:00:00 2001 From: Oliver Bestmann Date: Thu, 4 Apr 2024 21:42:00 +0200 Subject: [PATCH] chore: target java 11 #295 --- app/build.gradle | 5 +++-- build.gradle | 6 +++--- model/build.gradle | 9 +++++++-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 1ee97e8e7..7b2e35a27 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -53,12 +53,13 @@ android { } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 } buildFeatures { viewBinding true + buildConfig true } buildTypes { diff --git a/build.gradle b/build.gradle index c7f13ba0e..98e80b765 100644 --- a/build.gradle +++ b/build.gradle @@ -37,11 +37,11 @@ allprojects { } tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { task -> - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "11" freeCompilerArgs += [ "-opt-in=kotlin.ExperimentalStdlibApi", diff --git a/model/build.gradle b/model/build.gradle index 08b7c6922..f3acb941f 100644 --- a/model/build.gradle +++ b/model/build.gradle @@ -26,9 +26,14 @@ android { } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_7 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 } + + buildFeatures { + buildConfig true + } + namespace 'com.pr0gramm.app.model' }