mirror of
https://github.com/square/okhttp.git
synced 2025-09-20 03:42:08 +03:00
* New @StartStop extension for JUnit 5 This is a new take on our JUnit 5 extension. Rather than creating and managing the MockWebServer instance in the extension, we let the user create it and all the extension does is manage the lifecycle. Note that this annotation doesn't require any external configuration - it doesn't need a system-property to opt-into 'automatic' extensions, and it doesn't require a class-level extension either. * apiDump * Switch to @StartStop for JUnit 5 tests * Fixup visibility --------- Co-authored-by: Jesse Wilson <jwilson@squareup.com>
37 lines
838 B
Plaintext
37 lines
838 B
Plaintext
import com.vanniktech.maven.publish.JavadocJar
|
|
import com.vanniktech.maven.publish.KotlinJvm
|
|
import org.jetbrains.kotlin.gradle.dsl.kotlinExtension
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("org.jetbrains.dokka")
|
|
id("com.vanniktech.maven.publish.base")
|
|
id("binary-compatibility-validator")
|
|
}
|
|
|
|
tasks.jar {
|
|
manifest {
|
|
attributes("Automatic-Module-Name" to "mockwebserver3")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
"friendsApi"(projects.okhttp)
|
|
|
|
testImplementation(projects.okhttpTestingSupport)
|
|
testImplementation(projects.okhttpTls)
|
|
testImplementation(projects.mockwebserver3Junit5)
|
|
testImplementation(libs.junit)
|
|
testImplementation(libs.kotlin.test.common)
|
|
testImplementation(libs.kotlin.test.junit)
|
|
testImplementation(libs.assertk)
|
|
}
|
|
|
|
mavenPublishing {
|
|
configure(KotlinJvm(javadocJar = JavadocJar.Empty()))
|
|
}
|
|
|
|
kotlin {
|
|
explicitApi()
|
|
}
|