renatoathaydes / osgi-run

Osgi-Run - A Gradle plugin to make the development of modular applications using OSGi completely painless
Apache License 2.0
54 stars 13 forks source link

Doesnt work under gradle 4.4.1 #68

Closed svatos-jirka closed 2 years ago

svatos-jirka commented 6 years ago

Hi,

It seems, that it doesnt work under gradle 4.4.1. We migrated from gradle 3.4. Main issue is, that generated configuration.ini and content of folder plugins is different.

The main difference, that start level is changed (I really dont know why) and osgiaas-cli-core is added:

osgiRuntime0 --- org.apache.felix:org.apache.felix.scr:2.0.12

osgiRuntime1 --- com.athaydes.osgiaas:osgiaas-cli-core:0.7 +--- com.athaydes.osgiaas:osgiaas-cli-api:0.7 | +--- com.athaydes.osgiaas:osgiaas-common:0.7 | --- org.apache.felix:org.apache.felix.shell:1.4.3 --- jline:jline:2.14.2

It looks like, that dependencies are handled by different way. Why?

It looks like, that level for start level is copied to transitive deps

Please help, with best regards, jiri

renatoathaydes commented 6 years ago

osgiaas-cli-core is the new CLI that replaces Felix Gogo. You can replace it by explicitly listing all bundles that should be deployed, something like this:

runOsgi {
    bundles += allprojects.toList() + FELIX_GOGO_BUNDLES
}

This will revert to the old Gogo shell.

Regarding Gradle upgrade issues, can you please post the error message you get?

Start levels are only changed if you specify that in a dependency like this:

dependencies {
    compile osgi("org:artifact:version:startLevel")
}
svatos-jirka commented 6 years ago

Hi,

firstly: Thanks, I overlooked CLI feature.

renatoathaydes commented 2 years ago

Version 2.0 of this plugin now works on Gradle 7.4+.