mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-12-22 14:07:15 +00:00
migrate onto build.gradle.kts
This commit is contained in:
parent
e88df8db99
commit
9ce62e13f5
@ -3,26 +3,23 @@ buildscript {
|
|||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
maven { url "https://plugins.gradle.org/m2/" }
|
maven { setUrl("https://plugins.gradle.org/m2/") }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath libs.android.tools.build
|
classpath (libs.android.tools.build)
|
||||||
classpath libs.android.dexcount
|
classpath (libs.android.dexcount)
|
||||||
classpath libs.kotlin.gradle.plugin
|
classpath (libs.kotlin.gradle.plugin)
|
||||||
classpath libs.kotlin.dokka.plugin
|
classpath (libs.kotlin.dokka.plugin)
|
||||||
classpath libs.github.release
|
classpath (libs.github.release)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.kotlin.multiplatform)
|
alias(libs.plugins.kotlin.multiplatform)
|
||||||
alias(libs.plugins.kotlin.dokka)
|
alias(libs.plugins.kotlin.dokka)
|
||||||
alias(libs.plugins.versions)
|
alias(libs.plugins.versions)
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: "com.android.library"
|
apply(plugin = "com.android.library")
|
||||||
|
|
||||||
project.version = "$version"
|
project.version = "$version"
|
||||||
project.group = "$group"
|
project.group = "$group"
|
||||||
@ -35,7 +32,7 @@ repositories {
|
|||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations.main {
|
compilations.all {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
}
|
}
|
||||||
@ -45,7 +42,7 @@ kotlin {
|
|||||||
browser()
|
browser()
|
||||||
nodejs()
|
nodejs()
|
||||||
}
|
}
|
||||||
android {
|
androidTarget {
|
||||||
publishAllLibraryVariants()
|
publishAllLibraryVariants()
|
||||||
compilations.all {
|
compilations.all {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
@ -68,14 +65,14 @@ kotlin {
|
|||||||
sourceSets {
|
sourceSets {
|
||||||
commonMain {
|
commonMain {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation libs.kotlin
|
implementation(libs.kotlin)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
commonTest {
|
commonTest {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation libs.kotlin.test.common
|
implementation (libs.kotlin.test.common)
|
||||||
implementation libs.kotlin.test.annotations.common
|
implementation (libs.kotlin.test.annotations.common)
|
||||||
implementation libs.kotlin.test.junit
|
implementation (libs.kotlin.test.junit)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -86,8 +83,7 @@ java {
|
|||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "defaultAndroidSettings.gradle"
|
apply (from = "defaultAndroidSettings.gradle")
|
||||||
|
apply (from = "github_release.gradle")
|
||||||
apply from: "github_release.gradle"
|
apply (from = "publish.gradle")
|
||||||
apply from: "publish.gradle"
|
apply (from = "dokka.gradle")
|
||||||
apply from: "dokka.gradle"
|
|
Loading…
Reference in New Issue
Block a user