That looks pretty good.
Christian
Am 12.12.2014 21:05, schrieb Paulo Renato de Athaydes:
Hi,
I thought you just wanted to easily create a Felix runtime for your OSGi
bundles?
So, here I am, setting up an application that embeds Felix. I need it
to contain a certain collection of bundles -- and then some
dependencies of those bundles.
Using osgi-run, this Gradle script will install 2 different versions of Guava
and run everything with Felix:
build.gradle
######################
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.athaydes.gradle.osgi:osgi-run-core:1.1"
}
}
repositories { mavenCentral() }
apply plugin: 'osgi-run'
dependencies { // some examples of bundles
osgiRuntime 'com.google.guava:guava:12.0'
osgiRuntime 'com.google.guava:guava:16.0'
}
########################
The bundles, specified by their artifact coordinates in "osgiRuntime", will be
downloaded from the repositories you configured (Maven or Ivy repos, local files etc, see
http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:repositories)
and added to the OSGi environment. Notice you can have as many of the same artifact with
different versions as you want.
Sorry if I misunderstand you.
Regards,
Renato
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]