Last active
March 23, 2016 05:58
-
-
Save childnode/d96c084ac088d2d94b44 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'application' | |
id 'com.zoltu.git-versioning' version '2.0.6' | |
// id 'io.ratpack.ratpack-java' version '1.2.0' | |
} | |
repositories { | |
jcenter() | |
} | |
// application | |
mainClassName = "de.childno.WsStart" | |
wrapper { | |
gradleVersion = '2.11' | |
} | |
jar { | |
baseName = project.name | |
manifest { | |
attributes 'Main-Class': mainClassName | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'application' | |
id 'com.zoltu.git-versioning' version '2.0.6' | |
id 'io.ratpack.ratpack-java' version '1.2.0' | |
} | |
repositories { | |
jcenter() | |
} | |
// application | |
mainClassName = "de.childno.WsStart" | |
wrapper { | |
gradleVersion = '2.11' | |
} | |
jar { | |
baseName = project.name | |
manifest { | |
attributes 'Main-Class': mainClassName | |
} | |
} | |
tasks.withType(Jar) { task -> | |
task.doLast { | |
applicationDistribution.from(task.temporaryDir) { | |
into "app/META-INF" | |
include "MANIFEST.MF" | |
} | |
} | |
} |
presumable, aside the given workaround above there should be another workaround, but I'm too stupid to archive this one working:
copy {
((DefaultCopySpec) applicationDistribution).into("app") {
jarTask.metaInf.eachFile({
logger.info "[JAR RESOURCES] copy " + it.name;
it.include()
})
from jarTask.metaInf
}
}
links:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ratpack 🪲 ratpack/ratpack#930