mirror of
https://github.com/square/okhttp.git
synced 2025-12-25 00:01:02 +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")
|
||||
}
|
||||
|
||||
tasks.jar {
|
||||
@@ -10,15 +15,12 @@ tasks.jar {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":mockwebserver"))
|
||||
api(project(":mockwebserver3"))
|
||||
api(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