You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plugins {
// Apply the groovy plugin to add support for Groovy
id 'groovy'
}
dependencies {
compile project(':PwUtil')
compile files(':oracle.odi-sdk-jse')
compile ':oracle.jdbc/ojdbc8'
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4'
}
repositories {
mavenCentral()
flatDir {
dirs "D:\\Programme\\Oracle\\Middleware\\Oracle_Home\\oracle_common\\modules", "D:\\Programme\\Oracle\\Middleware\\Oracle_Home\\odi\\sdk\\lib"
}
}
My source uses some Classes from external JAR oracle.odi-sdk-jse.jar in "D:\Programme\Oracle\Middleware\Oracle_Home\odi\sdk\lib", which is a JAR containing only a META-INF/MANIFEST.MF which references lots of jars relative to the jar, e.g. (not complete):
Now compiling on commandline works just fine, the build finished successfully. The problem arises when importing the gradle project to eclipse. The jar is correctly listed
but my code shows "Unable to resolve" errors in Eclipse as the MANIFESTs entries do net get imported, it seems to me. To verify I'm not missing a point, I created a second testproject for which I included all required libraries using "Add external jar" in build path configuration. After adding the oracle.odi-sdk-jse.jar this way, eclipse list "Referenced Libraries" in the project view, which it does NOT for the gradle imported object:
With this configuration, everything works fine in Eclipse and my code compiles successfully. Thanks in advance for any hint.
Regards
Matschbirne86
The text was updated successfully, but these errors were encountered:
When disabling automatic project synchronisation and adding the external JAR to the eclipse project (to clarify: I'm talking about the project that has the problems, not my second "Test" project) manually, it works in this order
but not when placing the JAR below "Project and external Dependencies":
If I understand correctly your initial report, you're trying to make an OSGi project work in Eclipse.
The bad news is that Buildship doesn't provide any support for OSGi development out-of-the-box. My guess is that on the command line Gradle simply ignores the manifest entries as it doesn't know anything about it without a proper plugin. On the other hand in Eclipse you already have PDE installed which recognizes the OSGi headers and complains about the missing dependencies.
You might be able to configure PDE and JDT to work correctly, but it's certainly not easy. Even Buildship doesn't use itself to import the source code into the workspace, even though it's built with Gradle on the command line.
Hi there,
I got the following build.gradle file:
My source uses some Classes from external JAR oracle.odi-sdk-jse.jar in "D:\Programme\Oracle\Middleware\Oracle_Home\odi\sdk\lib", which is a JAR containing only a META-INF/MANIFEST.MF which references lots of jars relative to the jar, e.g. (not complete):
Now compiling on commandline works just fine, the build finished successfully. The problem arises when importing the gradle project to eclipse. The jar is correctly listed
but my code shows "Unable to resolve" errors in Eclipse as the MANIFESTs entries do net get imported, it seems to me. To verify I'm not missing a point, I created a second testproject for which I included all required libraries using "Add external jar" in build path configuration. After adding the oracle.odi-sdk-jse.jar this way, eclipse list "Referenced Libraries" in the project view, which it does NOT for the gradle imported object:
With this configuration, everything works fine in Eclipse and my code compiles successfully. Thanks in advance for any hint.
Regards
Matschbirne86
The text was updated successfully, but these errors were encountered: