mirror of
https://github.com/square/okhttp.git
synced 2025-07-29 17:41:17 +03:00
Switch back to the kotlin JVM plugin (#8149)
* Switch back to the kotlin JVM plugin This does a ton of file moves from jvmMain to main, and jvmTest to test. * Don't use AnimalSniffer on okcurl * Use assertk more (#8150)
This commit is contained in:
@ -1,48 +1,33 @@
|
||||
import com.vanniktech.maven.publish.JavadocJar
|
||||
import com.vanniktech.maven.publish.KotlinMultiplatform
|
||||
import com.vanniktech.maven.publish.KotlinJvm
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
kotlin("jvm")
|
||||
id("org.jetbrains.dokka")
|
||||
id("com.vanniktech.maven.publish.base")
|
||||
id("binary-compatibility-validator")
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvm {
|
||||
withJava()
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
getByName("jvmMain") {
|
||||
dependencies {
|
||||
api(projects.okhttp)
|
||||
implementation(libs.kotlinx.coroutines.core)
|
||||
api(libs.squareup.okio)
|
||||
api(libs.kotlin.stdlib)
|
||||
}
|
||||
}
|
||||
getByName("jvmTest") {
|
||||
dependencies {
|
||||
implementation(libs.kotlin.test.common)
|
||||
implementation(libs.kotlin.test.annotations)
|
||||
api(libs.assertk)
|
||||
implementation(projects.okhttpTestingSupport)
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(projects.mockwebserver3Junit5)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
project.applyOsgi(
|
||||
"Export-Package: okhttp3.coroutines",
|
||||
"Automatic-Module-Name: okhttp3.coroutines",
|
||||
"Bundle-SymbolicName: com.squareup.okhttp3.coroutines"
|
||||
)
|
||||
|
||||
mavenPublishing {
|
||||
configure(
|
||||
KotlinMultiplatform(javadocJar = JavadocJar.Empty())
|
||||
)
|
||||
dependencies {
|
||||
api(projects.okhttp)
|
||||
implementation(libs.kotlinx.coroutines.core)
|
||||
api(libs.squareup.okio)
|
||||
api(libs.kotlin.stdlib)
|
||||
|
||||
testImplementation(libs.kotlin.test.common)
|
||||
testImplementation(libs.kotlin.test.annotations)
|
||||
testApi(libs.assertk)
|
||||
testImplementation(projects.okhttpTestingSupport)
|
||||
testImplementation(libs.kotlinx.coroutines.test)
|
||||
testImplementation(projects.mockwebserver3Junit5)
|
||||
}
|
||||
|
||||
mavenPublishing {
|
||||
configure(KotlinJvm(javadocJar = JavadocJar.Empty()))
|
||||
}
|
||||
|
Reference in New Issue
Block a user