SauceNaoAPI/build.gradle

85 lines
1.8 KiB
Groovy
Raw Permalink Normal View History

2019-02-20 04:06:04 +00:00
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath libs.buildscript.kt.gradle
classpath libs.buildscript.kt.serialization
classpath libs.buildscript.gh.release
2019-02-20 04:06:04 +00:00
}
}
2020-08-22 17:00:07 +00:00
plugins {
alias(libs.plugins.multiplatform)
alias(libs.plugins.serialization)
2020-08-22 17:00:07 +00:00
}
2019-02-20 04:06:04 +00:00
2020-10-08 10:54:11 +00:00
project.version = "$library_version"
2020-12-02 08:32:26 +00:00
project.group = "dev.inmo"
2020-08-22 17:00:07 +00:00
2019-02-20 04:06:04 +00:00
apply from: "publish.gradle"
2020-10-08 09:15:11 +00:00
apply from: "github_release.gradle"
2019-02-20 04:06:04 +00:00
repositories {
mavenLocal()
mavenCentral()
2024-12-09 04:01:03 +00:00
maven { url "https://nexus.inmo.dev/repository/maven-releases/" }
2019-02-20 04:06:04 +00:00
}
2020-08-22 17:00:07 +00:00
kotlin {
jvm {
compilations.main {
kotlinOptions {
2024-12-09 04:01:03 +00:00
jvmTarget = "17"
}
}
}
2021-08-31 05:29:46 +00:00
js(IR) {
2020-08-22 17:00:07 +00:00
browser()
nodejs()
}
linuxX64()
mingwX64()
2020-08-22 17:00:07 +00:00
2019-02-20 04:06:04 +00:00
2020-08-22 17:00:07 +00:00
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib')
api libs.kt.coroutines
api libs.kt.serialization
api libs.klock
api libs.ktor.client
api libs.microutils.common
api libs.microutils.ktor.common
api libs.microutils.mimetypes
2020-08-22 17:00:07 +00:00
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
implementation libs.ktor.client.okhttp
2020-08-22 17:00:07 +00:00
}
}
2020-12-02 08:08:19 +00:00
jsTest {
2020-08-22 17:00:07 +00:00
dependencies {
implementation kotlin('test-js')
}
}
}
2019-02-20 04:06:04 +00:00
}
java {
2024-12-09 04:01:03 +00:00
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}