Files
okhttp/okhttp-dnsoverhttps/build.gradle.kts
Yuri Schimke b7290e4db2 Add multi-release jars to enable Java Modules (#8767)
* Add multi-release jars to enable Java Modules
* Fix android tests
* Avoid running module tests on JDK 8
* Add a jlink run task to demonstrate java modules
2025-09-21 07:22:22 +01:00

34 lines
906 B
Kotlin

import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.KotlinJvm
plugins {
kotlin("jvm")
id("org.jetbrains.dokka")
id("com.vanniktech.maven.publish.base")
id("binary-compatibility-validator")
}
project.applyOsgi(
"Export-Package: okhttp3.dnsoverhttps",
"Bundle-SymbolicName: com.squareup.okhttp3.dnsoverhttps"
)
project.applyJavaModules("okhttp3.dnsoverhttps")
dependencies {
"friendsApi"(projects.okhttp)
testImplementation(projects.okhttpTestingSupport)
testImplementation(projects.mockwebserver)
testImplementation(projects.mockwebserver3Junit5)
testImplementation(libs.squareup.okio.fakefilesystem)
testImplementation(libs.conscrypt.openjdk)
testImplementation(libs.junit)
testImplementation(libs.kotlin.test.common)
testImplementation(libs.kotlin.test.junit)
}
mavenPublishing {
configure(KotlinJvm(javadocJar = JavadocJar.Empty()))
}