setupShadow{// Setup default configurationconfigureDefaults()// Change file destinationdestination=File("/home/server/plugins").takeIf{it.exists()}?:File(rootDir,"jars")// Here you can configure it more preciselyrequireShadowJarTask.configure{minimize{exclude(dependency(libs.exposed.jdbc.get()))exclude(dependency(libs.exposed.dao.get()))}}}