gradle downgrade , java 8 compatibility

This commit is contained in:
shabinder 2021-05-21 00:05:09 +05:30
parent 99cce337c6
commit 5f5473aaf7
8 changed files with 10 additions and 54 deletions

View File

@ -35,9 +35,6 @@ allprojects {
useIR = true
}
}
tasks.withType<org.gradle.jvm.tasks.Jar> {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
afterEvaluate {
project.extensions.findByType<org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension>()?.let { kmpExt ->
kmpExt.sourceSets.removeAll { it.name == "androidAndroidTestRelease" }

View File

@ -30,7 +30,7 @@ repositories {
}
dependencies {
implementation("com.android.tools.build:gradle:7.1.0-alpha01")
implementation("com.android.tools.build:gradle:4.1.1")
implementation("org.jlleitschuh.gradle:ktlint-gradle:${Versions.ktLint}")
implementation(JetBrains.Compose.gradlePlugin)
implementation(JetBrains.Kotlin.gradlePlugin)

View File

@ -22,11 +22,11 @@ plugins {
}
android {
compileSdk = (29)
compileSdkVersion(29)
defaultConfig {
minSdk = (Versions.minSdkVersion)
targetSdk = (Versions.targetSdkVersion)
minSdkVersion(Versions.minSdkVersion)
targetSdkVersion(Versions.targetSdkVersion)
}
compileOptions {

View File

@ -22,17 +22,6 @@ plugins {
id("ktlint-setup")
}
android {
configurations {
create("androidTestApi")
create("androidTestDebugApi")
create("androidTestReleaseApi")
create("testApi")
create("testDebugApi")
create("testReleaseApi")
}
}
kotlin {
jvm("desktop").compilations.all {
kotlinOptions {

View File

@ -54,19 +54,19 @@ kotlin {
sourceSets {
named("commonTest") {
dependencies {
implementation(JetBrains.Kotlin.testCommon)
implementation(JetBrains.Kotlin.testAnnotationsCommon)
//implementation(JetBrains.Kotlin.testCommon)
//implementation(JetBrains.Kotlin.testAnnotationsCommon)
}
}
named("androidTest") {
dependencies {
implementation(JetBrains.Kotlin.testJunit)
//implementation(JetBrains.Kotlin.testJunit)
}
}
named("desktopTest") {
dependencies {
implementation(JetBrains.Kotlin.testJunit)
//implementation(JetBrains.Kotlin.testJunit)
}
}
named("jsTest") {

View File

@ -22,17 +22,6 @@ plugins {
id("kotlin-parcelize")
}
android {
configurations {
create("androidTestApi")
create("androidTestDebugApi")
create("androidTestReleaseApi")
create("testApi")
create("testDebugApi")
create("testReleaseApi")
}
}
kotlin {
/*IOS Target Can be only built on Mac*/
if(HostOS.isMac){

View File

@ -38,24 +38,5 @@ kotlin {
implementation(Decompose.extensionsCompose)
}
}
// Testing Source-sets
named("commonTest") {
dependencies {
implementation(JetBrains.Kotlin.testCommon)
implementation(JetBrains.Kotlin.testAnnotationsCommon)
}
}
named("androidTest") {
dependencies {
implementation(JetBrains.Kotlin.testJunit)
}
}
named("desktopTest") {
dependencies {
implementation(JetBrains.Kotlin.testJunit)
}
}
}
}

View File

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=0e46229820205440b48a5501122002842b82886e76af35f0f3a069243dca4b3c
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionSha256Sum=e2774e6fb77c43657decde25542dea710aafd78c4022d19b196e7e78d79d8c6c
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists