Skip to content

Instantly share code, notes, and snippets.

@childnode
Last active March 23, 2016 05:58
Show Gist options
  • Save childnode/d96c084ac088d2d94b44 to your computer and use it in GitHub Desktop.
Save childnode/d96c084ac088d2d94b44 to your computer and use it in GitHub Desktop.
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
}
}
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"
}
}
}
@childnode
Copy link
Author

Ratpack 🪲 ratpack/ratpack#930

@childnode
Copy link
Author

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