mirror of
https://github.com/square/okhttp.git
synced 2025-11-24 18:41:06 +03:00
Switch from airline to picocli, which is more graal compatible and has nicer default output.
47 lines
983 B
Groovy
47 lines
983 B
Groovy
plugins {
|
|
id "application"
|
|
}
|
|
|
|
apply plugin: 'com.vanniktech.maven.publish'
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
jar {
|
|
manifest {
|
|
attributes 'Automatic-Module-Name': 'okhttp3.curl'
|
|
attributes 'Main-Class': 'okhttp3.curl.Main'
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClassName = "okhttp3.curl.Main"
|
|
}
|
|
|
|
// resources-templates.
|
|
sourceSets {
|
|
main.resources.srcDirs += "$buildDir/generated/resources-templates"
|
|
}
|
|
compileJava {
|
|
dependsOn 'copyResourcesTemplates'
|
|
}
|
|
task copyResourcesTemplates(type: Copy) {
|
|
from 'src/main/resources-templates'
|
|
into "$buildDir/generated/resources-templates"
|
|
expand('projectVersion': "$VERSION_NAME")
|
|
filteringCharset = 'UTF-8'
|
|
}
|
|
|
|
dependencies {
|
|
api project(':okhttp')
|
|
api project(':okhttp-logging-interceptor')
|
|
implementation deps.picocli
|
|
implementation deps.guava
|
|
|
|
testImplementation project(':okhttp-testing-support')
|
|
testImplementation deps.junit
|
|
testImplementation deps.assertj
|
|
}
|
|
|
|
shadowJar {
|
|
mergeServiceFiles()
|
|
}
|