• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1plugins {
2  id("org.jetbrains.kotlin.jvm")
3  id("com.vanniktech.maven.publish")
4}
5
6sourceCompatibility = JavaVersion.VERSION_1_8
7targetCompatibility = JavaVersion.VERSION_1_8
8
9dependencies {
10  api projects.sharkLog
11
12  implementation libs.kotlin.stdlib
13  // compileOnly ensures this dependency is not exposed through this artifact's pom.xml in Maven Central.
14  // Okio is a required dependency, but we're making it required on the "shark" artifact which is the main artifact that
15  // should generally be used. The shark artifact depends on Okio 2.x (ensure compatibility with modern Okio). Depending on 1.x here
16  // enables us to ensure binary compatibility with Okio 1.x and allow us to use the deprecated (error level) Okio APIs to keep that
17  // compatibility.
18  // See https://github.com/square/leakcanary/issues/1624
19  compileOnly libs.okio1
20  testImplementation libs.okio1
21
22  testImplementation libs.assertjCore
23  testImplementation libs.junit
24  testImplementation projects.sharkTest
25}
26