https://kotlinlang.org logo
#ktor
Title
# ktor
m

Muhammad Usman

05/31/2022, 11:44 AM
Hi Can anyone tell me how to include a dir inside the project root dir into ShadowJar plugin's resultant jar file. For example i want to include credentials dir in final output jar, following code does not work
Copy code
tasks {
    named<ShadowJar>("shadowJar") {
         include("credentials/")
        exclude("department_images/")
        exclude("json/")
        exclude("question_images/")

    }
}
b

Big Chungus

05/31/2022, 6:57 PM
Use absolute path in your include and you'll be fine
4 Views