2021-03-18 19:11:45 +01:00
|
|
|
/*
|
|
|
|
* * Copyright (c) 2021 Shabinder Singh
|
|
|
|
* * This program is free software: you can redistribute it and/or modify
|
|
|
|
* * it under the terms of the GNU General Public License as published by
|
|
|
|
* * the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* * (at your option) any later version.
|
|
|
|
* *
|
|
|
|
* * This program is distributed in the hope that it will be useful,
|
|
|
|
* * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* * GNU General Public License for more details.
|
|
|
|
* *
|
|
|
|
* * You should have received a copy of the GNU General Public License
|
|
|
|
* * along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2021-01-26 13:54:28 +01:00
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
2021-03-19 16:15:58 +01:00
|
|
|
id("org.jlleitschuh.gradle.ktlint")
|
|
|
|
id("org.jlleitschuh.gradle.ktlint-idea")
|
2021-01-26 13:54:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
2021-05-15 19:55:06 +02:00
|
|
|
// mavenLocal()
|
2021-01-26 13:54:28 +01:00
|
|
|
maven(url = "https://jitpack.io")
|
|
|
|
maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
2021-05-09 00:20:52 +02:00
|
|
|
maven(url = "https://dl.bintray.com/kotlin/kotlin-js-wrappers")
|
|
|
|
maven(url = "https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven")
|
2021-01-26 13:54:28 +01:00
|
|
|
}
|
2021-04-14 19:37:02 +02:00
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
|
|
|
kotlinOptions {
|
2021-06-05 20:43:55 +02:00
|
|
|
jvmTarget = "1.8"
|
2021-06-23 13:13:26 +02:00
|
|
|
freeCompilerArgs = freeCompilerArgs + "-Xopt-in=kotlin.RequiresOptIn"
|
2021-04-14 19:37:02 +02:00
|
|
|
}
|
|
|
|
}
|
2021-05-20 18:07:54 +02:00
|
|
|
afterEvaluate {
|
|
|
|
project.extensions.findByType<org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension>()?.let { kmpExt ->
|
2021-06-23 13:13:26 +02:00
|
|
|
kmpExt.sourceSets.run {
|
|
|
|
all {
|
|
|
|
languageSettings.useExperimentalAnnotation("kotlinx.serialization.ExperimentalSerializationApi")
|
|
|
|
}
|
|
|
|
removeAll { it.name == "androidAndroidTestRelease" }
|
|
|
|
}
|
2021-05-20 18:07:54 +02:00
|
|
|
}
|
|
|
|
}
|
2021-02-12 00:17:46 +01:00
|
|
|
}
|