mirror of
https://github.com/square/okhttp.git
synced 2025-10-29 05:49:20 +03:00
* Switch to Vanniktech for Maven publishing Steal configuration from Okio, which already works nicely. * Update mockwebserver-junit5/build.gradle.kts Co-authored-by: Benoît Quenaudon <bquenaudon@squareup.com> Co-authored-by: Benoît Quenaudon <bquenaudon@squareup.com>
33 lines
958 B
Plaintext
33 lines
958 B
Plaintext
import com.vanniktech.maven.publish.JavadocJar
|
|
import com.vanniktech.maven.publish.KotlinJvm
|
|
import com.vanniktech.maven.publish.MavenPublishBaseExtension
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("org.jetbrains.dokka")
|
|
id("com.vanniktech.maven.publish.base")
|
|
}
|
|
|
|
project.applyOsgi(
|
|
"Export-Package: okhttp3.dnsoverhttps",
|
|
"Automatic-Module-Name: okhttp3.dnsoverhttps",
|
|
"Bundle-SymbolicName: com.squareup.okhttp3.dnsoverhttps"
|
|
)
|
|
|
|
dependencies {
|
|
api(project(":okhttp"))
|
|
compileOnly(Dependencies.jsr305)
|
|
|
|
testImplementation(project(":okhttp-testing-support"))
|
|
testImplementation(project(":mockwebserver"))
|
|
testImplementation(project(":mockwebserver3-junit5"))
|
|
testImplementation(Dependencies.okioFakeFileSystem)
|
|
testImplementation(Dependencies.conscrypt)
|
|
testImplementation(Dependencies.junit)
|
|
testImplementation(Dependencies.assertj)
|
|
}
|
|
|
|
configure<MavenPublishBaseExtension> {
|
|
configure(KotlinJvm(javadocJar = JavadocJar.Dokka("dokkaGfm")))
|
|
}
|