Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Using SWT with gradle (not in eclipse IDE)
Using SWT with gradle (not in eclipse IDE) [message #1810902] Wed, 21 August 2019 13:49
Bartosz Skrzypczak is currently offline Bartosz SkrzypczakFriend
Messages: 1
Registered: August 2019
Junior Member
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:


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

Previous Topic:SWT crashes with no more handles
Next Topic:ToolTip on Table cells, Linux
Goto Forum:

Current Time: Wed Apr 01 11:46:29 GMT 2020

Powered by FUDForum. Page generated in 0.01353 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top