akhikhl / wuff

Gradle plugin for automating assembly of OSGi/Eclipse bundles and applications
MIT License
153 stars 51 forks source link

How to nest jar's into bundle lib folder? #106

Open paulvi opened 8 years ago

paulvi commented 8 years ago

How to nest jar's into bundle lib folder?

petarov commented 8 years ago

I think, if you are using Gradle you can just add something like this:

jar {
    into("lib") {
        from("${projectDir}/lib")
    }
}

Of course, Wuff will place all the required dependencies specified in build.gradle in the JAR bundle by default, .e.g,

    required 'org.apache.logging.log4j:log4j-core:2.3',
            'org.apache.logging.log4j:log4j-api:2.3',
            'org.apache.logging.log4j:log4j-slf4j-impl:2.3'