Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 679a2648 authored by cketti's avatar cketti Committed by GitHub
Browse files

Merge pull request #6603 from thundernest/build_cleanup

Build file cleanup
parents b0765abd d65864d2
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
import com.android.build.gradle.BasePlugin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile

plugins {
@@ -16,8 +17,11 @@ project.ext {
    testCoverage = project.hasProperty('testCoverage')
}

def javaVersion = JavaVersion.VERSION_11
def jvmTargetVersion = JvmTarget.JVM_11

allprojects {
    configurations.all {
    configurations.configureEach {
        resolutionStrategy.dependencySubstitution {
            substitute module("androidx.core:core") using module("androidx.core:core:${libs.versions.androidxCore.get()}")
            substitute module("androidx.activity:activity") using module("androidx.activity:activity:${libs.versions.androidxActivity.get()}")
@@ -52,8 +56,8 @@ allprojects {
            }

            compileOptions {
                sourceCompatibility libs.versions.java.get()
                targetCompatibility libs.versions.java.get()
                sourceCompatibility javaVersion
                targetCompatibility javaVersion
            }

            lintOptions {
@@ -71,12 +75,12 @@ allprojects {

    plugins.withType(JavaPlugin).configureEach {
        project.java {
            sourceCompatibility = libs.versions.java.get()
            targetCompatibility = libs.versions.java.get()
            sourceCompatibility = javaVersion
            targetCompatibility = javaVersion
        }
    }

    tasks.withType(Test) {
    tasks.withType(Test).configureEach {
        testLogging {
            exceptionFormat "full"
            showCauses true
@@ -85,9 +89,9 @@ allprojects {
        }
    }

    tasks.withType(KotlinCompile) {
        kotlinOptions {
            jvmTarget = libs.versions.java.get()
    tasks.withType(KotlinCompile).configureEach {
        compilerOptions {
            jvmTarget = jvmTargetVersion
        }
    }

+0 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
# Please don't open pull requests upgrading dependencies if you're a new contributor.

[versions]
java = "11"
androidGradlePlugin = "7.4.0"
ktlint = "0.44.0"