1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-24 18:41:06 +03:00
Files
okhttp/okcurl/build.gradle
Yuri Schimke 076e976c10 Picocli (#5207)
Switch from airline to picocli, which is more graal compatible and has nicer default output.
2019-07-19 15:15:05 +01:00

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()
}