wedroid/wrapper/build.gradle.kts
norangebit 7bc707a443
Some checks reported errors
continuous-integration/drone/tag Build was killed
add fatJar task
2020-01-12 19:55:45 +01:00

34 lines
867 B
Plaintext

plugins {
// apply the java-library plugin to add support for Java Library
`java-library`
}
dependencies {
// use retrofit
val retrofitVersion = "2.6.2"
implementation("com.squareup.retrofit2:retrofit:$retrofitVersion")
implementation("com.squareup.retrofit2:converter-gson:$retrofitVersion")
// mock server response
testImplementation("com.squareup.okhttp3:mockwebserver:4.2.1")
// use JUnit test framework
testImplementation("junit:junit:4.12")
}
tasks{
register<Jar>("fatJar") {
archiveClassifier.set("fat")
from(
configurations.compileClasspath
.map { config ->
config.map { if (it.isDirectory) it else zipTree(it) }
}
)
manifest {
attributes("Implementation-Title" to "wedroid-wrapper")
}
}
}