lielran
04/22/2018, 1:46 PMcom.github.johnrengelman.shadow
but failed to provide the main-class via application
blockx80486
04/22/2018, 1:59 PMtasks.withType<Jar> {
baseName = project.name
manifest.attributes.apply {
put("Application-Name", project.name)
put("Build-Date", ZonedDateTime.now(ZoneOffset.UTC).format(DateTimeFormatter.ISO_DATE_TIME))
//put("Build-Number", )
put("Created-By", System.getProperty("user.name"))
put("Gradle-Version", gradle.gradleVersion)
put("Implementation-Version", "${project.version}")
put("JDK-Version", System.getProperty("java.version"))
//put("Main-Class", mainClassName)
}
version = "${project.version}"
}
That's what I usually use; I have no custom/specific configs and/or settings. If you need those, you would need to tweak that...poohbar
04/22/2018, 5:38 PMx80486
04/22/2018, 5:40 PMpoohbar
04/22/2018, 5:43 PMx80486
04/22/2018, 5:45 PMlielran
04/22/2018, 6:09 PMlielran
04/22/2018, 6:10 PMlielran
04/22/2018, 6:12 PMpoohbar
04/22/2018, 6:19 PMx80486
04/22/2018, 6:20 PMlielran
04/22/2018, 6:21 PMlielran
04/22/2018, 6:22 PMif(project.hasPorperty("db_url"){
project.get("db_url")
}else{ default val }
poohbar
04/22/2018, 6:22 PMpoohbar
04/22/2018, 6:23 PMlielran
04/22/2018, 6:24 PMlielran
04/22/2018, 6:24 PMlielran
04/22/2018, 6:24 PMlielran
04/22/2018, 6:26 PM