forked from square/okhttp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (37 loc) · 1.11 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
apply plugin: 'me.champeau.gradle.japicmp'
applyOsgi(this)
jar {
// MANIFEST.MF, including OSGi bnd instructions.
bnd '''
Export-Package: okhttp3.logging
Automatic-Module-Name: okhttp3.logging
Bundle-SymbolicName: com.squareup.okhttp3.logging
'''
}
dependencies {
api project(':okhttp')
compileOnly deps.jsr305
testCompileOnly deps.jsr305
testImplementation deps.junit
testImplementation project(':mockwebserver')
testImplementation project(':mockwebserver-junit5')
testImplementation project(':okhttp-testing-support')
testImplementation project(':okhttp-tls')
testImplementation deps.assertj
}
afterEvaluate { project ->
project.tasks.dokka {
outputDirectory = "$rootDir/docs/4.x"
outputFormat = 'gfm'
}
}
task japicmp(type: me.champeau.gradle.japicmp.JapicmpTask, dependsOn: 'jar') {
oldClasspath = files(baselineJar(project, baselineVersion))
newClasspath = files(jar.archivePath)
onlyBinaryIncompatibleModified = true
failOnModification = true
txtOutputFile = file("$buildDir/reports/japi.txt")
ignoreMissingClasses = true
includeSynthetic = true
}
check.dependsOn(japicmp)