mirror of
https://github.com/square/okhttp.git
synced 2025-11-24 18:41:06 +03:00
This removes a bunch of low-value stuff from the pom.xml files:
- name
- description
- licence distribution ('repo')
- developers clause
- test dependencies
I don't think any of this will be missed, and it shrinks the pom.xml
file to the minimal set of useful stuff.
This also causes us to publish a gradle .module file. This is the
motivation for this change. It'll allow us to ship a Gradle platform,
which is a more capable than a Maven BOM.
38 lines
952 B
Groovy
38 lines
952 B
Groovy
apply plugin: 'me.champeau.gradle.japicmp'
|
|
|
|
jar {
|
|
manifest {
|
|
attributes('Automatic-Module-Name': 'okhttp3.logging')
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api project(':okhttp')
|
|
compileOnly deps.jsr305
|
|
|
|
testCompileOnly deps.jsr305
|
|
testImplementation deps.junit
|
|
testImplementation project(':mockwebserver')
|
|
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)
|