Using SWT with gradle (not in eclipse IDE) [message #1810902] |
Wed, 21 August 2019 09:49  |
Eclipse User |
|
|
|
For now I'm trying to determine if using SWT is going to be even a good idea for my project, but I want to do some tests with SWT first (and that includes getting it all working). And I can't get it working. So far I can get it working in my IDE, but I'm unable to build a jar using gradle.
After a lot fo searching, I found a relatively recent version of SWT available in maven repository would be included like this into gradle:
compile("org.eclipse.platform:org.eclipse.swt.gtk.linux.x86_64:3.111.0")
And that's enough to keep the IDE happy, but when I try to do a gradle build, it can't resolve some dependencies:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':shadowJar'.
> Could not resolve all dependencies for configuration ':runtime'.
> Could not find any matches for org.eclipse.platform:org.eclipse.swt.${osgi.platform}:[3.111.0,3.111.0] as no versions of org.eclipse.platform:org.eclipse.swt.${osgi.platform} are available.
Searched in the following locations:
(URLs to all the maven repositories, including maven central and jcenter go here, but this forum won't let me include URLs yet)
Required by:
project : > org.eclipse.platform:org.eclipse.swt.gtk.linux.x86_64:3.111.0 > org.eclipse.platform:org.eclipse.swt:3.111.0
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04386 seconds