Skip to content

Commit

Permalink
Move jvmToolchain setting individual build.gradle files
Browse files Browse the repository at this point in the history
  • Loading branch information
rvandermeulen committed Jan 5, 2024
1 parent 1fbbf77 commit 631c1ec
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,10 @@ ext.rustTargets += ext.nativeRustTarget
subprojects {
apply plugin: 'maven-publish'


// Kotlin settings applicable to all modules.
afterEvaluate {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.allWarningsAsErrors = true
kotlin.jvmToolchain(rootProject.ext.build.jvmTargetCompatibility)
}
}

Expand Down
5 changes: 5 additions & 0 deletions glean-core/android-native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@
import groovy.json.JsonOutput

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'org.mozilla.rust-android-gradle.rust-android'

kotlin {
jvmToolchain(rootProject.ext.build.jvmTargetCompatibility)
}

android {
namespace "mozilla.telemetry.glean_native"

Expand Down
4 changes: 4 additions & 0 deletions glean-core/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ File GLEAN_PING_SCHEMA_PATH = file("$rootDir/glean.1.schema.json")
ext.allowGleanInternal = true
ext.gleanNamespace = "mozilla.telemetry.glean"

kotlin {
jvmToolchain(rootProject.ext.build.jvmTargetCompatibility)
}

android {
compileSdkVersion rootProject.ext.build.compileSdkVersion
namespace "mozilla.telemetry.glean"
Expand Down
4 changes: 4 additions & 0 deletions samples/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ plugins {
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

kotlin {
jvmToolchain(rootProject.ext.build.jvmTargetCompatibility)
}

android {
namespace "org.mozilla.samples.gleancore"
compileSdkVersion rootProject.ext.build.compileSdkVersion
Expand Down

0 comments on commit 631c1ec

Please sign in to comment.