https://kotlinlang.org logo
Title
l

leonardootto

04/25/2019, 4:08 PM
And its also not including the other dependencies packages.
:thread-please: 1
g

GarouDan

04/25/2019, 4:15 PM
I’m asking something like this right now. It loos like if you’re not using kotlin multiplatform plugin something like below should work:
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
...
plugins {
    kotlin("multiplatform")

    id("com.github.johnrengelman.shadow") version "5.0.0"
}
...
tasks.withType<ShadowJar> {
    baseName = "app"
    classifier = ""
    version = ""
}
l

leonardootto

04/25/2019, 4:24 PM
groovy version ?
g

GarouDan

04/25/2019, 4:25 PM
this is a version for a
build.gradle.kts
file
l

leonardootto

04/25/2019, 4:26 PM
Yes but do you have a groovy version?
🙂
g

GarouDan

04/25/2019, 4:28 PM
I’m not really using groovy, only kotlin. But my output of the
./gradlew version
is
------------------------------------------------------------
Gradle 5.3.1
------------------------------------------------------------

Build time:   2019-03-28 09:09:23 UTC
Revision:     f2fae6ba563cfb772c8bc35d31e43c59a5b620c3

Kotlin:       1.3.21
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM:          1.8.0_181 (Oracle Corporation 25.181-b13)
OS:           Mac OS X 10.14.4 x86_64
but see, since I’m using kotlin multiplatform plugin, I wasn’t able to put it to work. Anyway, a
build.gradle.kts
file of a real project is: https://github.com/DevSrSouza/KotlinBukkitAPI/blob/master/build.gradle.kts
l

leonardootto

04/25/2019, 4:45 PM
plugins { id ‘com.github.johnrengelman.shadow’ version ‘5.0.0’ id ‘org.jetbrains.kotlin.jvm’ version ‘1.3.30’ id ‘java’ } Works, i only need upgrade to gradle 5.4
🙂
Thanks @Danilo
g

GarouDan

04/25/2019, 4:47 PM
👍😃 You’re welcome