Skip to content

Commit

Permalink
make it build fat-jar
Browse files Browse the repository at this point in the history
  • Loading branch information
seniorjoinu committed Sep 16, 2020
1 parent ebd9cf4 commit 3ed9fba
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,37 @@ repositories {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation 'com.github.h0tk3y.betterParse:better-parse-jvm:0.4.0'
implementation 'com.github.square:kotlinpoet:1.6.0'
implementation 'net.i2p.crypto:eddsa:0.3.0'
implementation 'co.nstant.in:cbor:0.9'
implementation 'commons-codec:commons-codec:1.15'

implementation 'com.github.kittinunf.fuel:fuel:2.2.3'
implementation 'com.github.kittinunf.fuel:fuel-coroutines:2.2.3'

api 'net.i2p.crypto:eddsa:0.3.0'
api 'com.github.square:kotlinpoet:1.6.0'

testImplementation(
'org.junit.jupiter:junit-jupiter:5.6.2',
'org.spockframework:spock-core:2.0-M3-groovy-3.0',
)
testImplementation 'com.github.tschuchortdev:kotlin-compile-testing:1.2.10'
}

jar {
from {
configurations.default
.filter {
it.name.startsWith("kotlinpoet") ||
it.name.startsWith("better-parse") ||
it.name.startsWith("eddsa") ||
it.name.startsWith("cbor") ||
it.name.startsWith("commons-codec") ||
it.name.startsWith("fuel")
}
.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
//jar {
// from {
// configurations.default
// .filter {
// it.name.startsWith("kotlinpoet") ||
// it.name.startsWith("better-parse") ||
// it.name.startsWith("eddsa") ||
// it.name.startsWith("cbor") ||
// it.name.startsWith("commons-codec") ||
// it.name.startsWith("fuel")
// }
// .collect {
// it.isDirectory() ? it : zipTree(it)
// }
// }
//}

compileKotlin {
kotlinOptions.jvmTarget = "1.8"
Expand Down

0 comments on commit 3ed9fba

Please sign in to comment.