mirror of
https://github.com/square/okhttp.git
synced 2025-07-29 17:41:17 +03:00
Switch to Vanniktech for Maven publishing (#6929)
* 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>
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
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(
|
||||
@ -14,17 +19,14 @@ dependencies {
|
||||
compileOnly(Dependencies.jsr305)
|
||||
|
||||
testImplementation(project(":okhttp-testing-support"))
|
||||
testImplementation(project(":mockwebserver-deprecated"))
|
||||
testImplementation(project(":mockwebserver-junit5"))
|
||||
testImplementation(project(":mockwebserver"))
|
||||
testImplementation(project(":mockwebserver3-junit5"))
|
||||
testImplementation(Dependencies.okioFakeFileSystem)
|
||||
testImplementation(Dependencies.conscrypt)
|
||||
testImplementation(Dependencies.junit)
|
||||
testImplementation(Dependencies.assertj)
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
tasks.dokka {
|
||||
outputDirectory = "$rootDir/docs/4.x"
|
||||
outputFormat = "gfm"
|
||||
}
|
||||
configure<MavenPublishBaseExtension> {
|
||||
configure(KotlinJvm(javadocJar = JavadocJar.Dokka("dokkaGfm")))
|
||||
}
|
||||
|
Reference in New Issue
Block a user