Dear all,
I've been using gradle for a few weeks and I find it really attractive
and innovative. I was using Maven2 and I'm now considering switching to
gradle. But I'm having troubles using the osgi plugin.
The question is simple : how to embed dependencies inside the generated
bundle ?
I have tried things like :
configurations {
included
}
dependencies {
compile 'a:a:0.7-snaps...@jar'
included 'a:a:0.7-snaps...@jar'
}
classes << {
def File dstDir = it.project.compileJava.destinationDir
copy() {
from configurations.included
into dstDir
}
}
configure(jar.osgi) {
name = 'a'
instruction 'Import-Package', "*"
instruction 'Private-Package', "some.*"
instruction 'Export-Package', "!some.internal.*, some.*"
instruction 'Bundle-ClassPath', "., a-a-0.7-SNAPSHOT.jar" // test !!
instruction '-removeheaders', "Private-Package"
}
but the generated manifest 'Import-Package' header still contains
references to a-a packages.
I have tried playing with instruction '-include' '-classpath' ... with
no success
Could you help me please ?
--
View this message in context:
http://old.nabble.com/Osgi-plugin-%3A-how-to-embed-dependencies---tp27129499p27129499.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email