Questions tagged [buildship]

1

votes
2

answer
302

Views

Eclipse: How can I have gradle dependencies deployed to Tomcat

I'm creating a web project using Gradle (buildship) in Eclipse (WTP). I've put the libraries I need as 'implementation' dependencies in my build.gradle, however they are not copied to Tomcat when I try to run the project from within Eclipse. When I build the WAR file (with gradle war), however, all...
niqueco
1

votes
0

answer
90

Views

Generated resources don't show up in eclipse-wtp published jars

I have a project with two sub-projects: a dependency jar and a webapp. I'm using the eclipse-wtp plugin: allprojects { apply plugin: 'java' apply plugin: 'eclipse-wtp' } The dependency generates some resources (for example, by downloading and unzipping a tarball). The dependency has a block to confi...
MZS
1

votes
0

answer
586

Views

Eclipse : How to set env variables for Gradle run

I am using the buildship plugin to build gradle projects. I need to use some env variables in my build script to connect to some external repositories. When i run the gradle build from command line, it works fine as I have the required env variables. I would like to run the build from eclipse. I do...
AbtPst
1

votes
1

answer
1.4k

Views

How to pass parameters to gradle in eclipse Buildship plugin while importing project

I'm importing a gradle project requiring parameters into eclipse neon using the buildship gradle plugin. Here is a fragment of the build.gradle with parameters: repositories { maven { url repoUrl credentials { username repoUsername password repoPassword } } } I usually just add the parameters on the...
Taras
1

votes
1

answer
529

Views

How to to tell Eclipse/Buildship/Gradle to add dependencies to the Modulepath

I am trying to use Eclipse, Buildship, Gradle to develop java 9 applications. Eclipse: Oxygen Buildship: 2.2.0 Gradle: 4.3.1 I am looking for a way to tell Buildship/Gradle to add Project and External Dependencies to the Modulepath rather than the Classpath. Here's a representation of what I see whe...
Gaëtan Sheridan
1

votes
1

answer
186

Views

Gradle (wrapper) + STS + Spring Boot: Error: Could not find or load main class 1.1,

One project among many started giving me the following error when running Gradle Tasks -> application -> bootRun: Error: Could not find or load main class 1.1, However, the following both work: Running ./gradlew bootRun from the command-line Starting the service with STS Boot Dashboard It's odd that...
Eric Swanson
1

votes
1

answer
303

Views

Is it possible for Gradle projects in buildship to resolve dependencies to other Gradle projects in the same workspace?

Copied from Is it possible for Gradle projects in Eclipse/STS to resolve dependencies to other Gradle projects in the same workspace? A Gradle project in my workspace (call it Downstream) needs to depend on another Gradle project (call it Upstream). Outside of Eclipse, of course Upstream would need...
Kaj Kandler
1

votes
1

answer
512

Views

Gradle Project Dependencies with Buildship

I have successfully imported my project (used to be maven) into buildship. If I run my build from the command line it all works. What I am having issues with now - is that within eclipse the dependencies are not managed correctly. All my projects are showing red 'x's since it can't determine the n...
purring pigeon
1

votes
2

answer
1.7k

Views

Gradle Project Dependencies in Eclipse with Buildship

I use Eclipse Mars.2 (4.5.2) with Buildship 1.0.14. Gradle version is 2.12. I import my gradle project into the Eclipse. No .project or .classpath files exist before import. All modules imported successfully. But almost every project with java code has missed dependencies and showing red 'X'. If y...
dds
1

votes
1

answer
119

Views

Not possible to update to Buildship v. 2.1.2.v20170807-1324 from v. 2.0.2.v20170420-0909 in Eclipse Oxygen 4.7.0 build 20170620-1800

I've a new installation of Eclipse Oxygen v. 4.7.0 build 20170620-1800 with the Spring Tool plugin v. 3.9.0.201707061730-RELEASE. I'm trying to update the Buildship from v. 2.0.2.v20170420-0909 to v. 2.1.2.v20170807-1324 (as noticed from the Eclipse update popup), but I've the error below: An error...
Andrea Bevilacqua
1

votes
1

answer
2.6k

Views

Configure Eclipse to use the latest version of Gradle

I'm reacquainting myself with Gradle. One of the problems I remember finding when I last looked, using 2.x I think, was multiple versions not only of project implementation jars but also multiple versions of Gradle's own jars. In an attempt to keep things as clean as possible this time I'd like to g...
mike rodent
1

votes
1

answer
36

Views

What is Buildship and is there a Gradle plugin for NetBeans?

Could someone explain this feature named 'Buildship' in the Eclipse IDE marketplace? Is this feature available for the Netbeans IDE?
Charlie.yu
12

votes
2

answer
756

Views

How to allow / workaround nested composite Gradle builds

I'm running into the same issue as reported here: I have a Java project A which depends on project B (module), and project B dependes on project C (another module). For project A I would like to setup 'includeBuild ../projectB' and for project B I would like too setup 'includeBuild ../projectC' so...
James
5

votes
3

answer
7.6k

Views

How to change Gradle version in Eclipse using Buildship?

I am running Eclipse Luna SR2 with Buildship 1.0.1. The Gradle projects I create using the wizard are building with Gradle 2.5-rc-2, but I would like to use 2.6 which is the latest version. How can I do it? Setting the task had no effect: apply plugin: 'java' repositories { jcenter() } dependencies...
BonanzaOne
2

votes
1

answer
238

Views

Adding Gradle support to Eclipse

I want to add Gradle to Eclipse. My goal is to add Gradle management to dependencies of some Android projects which were built at the time using Eclipse and conversion to an Android Studio project doesn't end well. I've installed the Buildship plugin into eclipse. I have added Gradle to the project...
Yonatan Nir
3

votes
1

answer
2.4k

Views

Access restriction on JavaFX classes in Eclipse Oxygen

I'm using Eclipse Oxygen 4.7.0 in Ubuntu 17.04 with Oracle JDK 8u144. Any code that refers to JavaFX classes in packages javafx.*, e.g. javafx.application.Application is (incorrectly) reported as an error Access restriction: The type 'ScrollPane' is not API (restriction on required library '/opt/jd...
Adam
2

votes
1

answer
80

Views

Gradle creates broken start scripts. How to fix?

I am trying to learn how to build applications using Gradle; to do this I use the 'Application' plug in. This plug in builds executable scripts that runs my jar file. However the batch file that is generated is showing an error. This is for every project I build with Gradle. I can execute the jar fi...
Afterfield
2

votes
1

answer
155

Views

Eclipse Buildship: composite builds without changing settings.gradle

In Eclipse, I have a imported a Gradle project that has a binary (.jar) dependency to a library which is built using a separate Gradle project. I want to be able to make changes to the library in Eclipse and use the changed code immediately. This should be possible using the relatively new 'Composi...
herman
7

votes
2

answer
179

Views

How to limit BuildShip (gradle eclipse) integrated functionality?

Now that I am using gradle for all of my new development, I'm running into issues with BuildShip features I really don't want. For instance, when I hit the Run hotkey when I have a unit test open in Eclipse, I only want it to run as a JUnit test, alone. But Gradle has inserted its own hooks and opti...
Alice Young
1

votes
1

answer
1.1k

Views

Buildship how to set environment variable on project scope

We switched for our project from ant to gradle. Now the gradle script looks like this [...] def filterFile = System.getProperty('filter.file') [...] All tasks heavily depend on the environment variable filterFile. We use eclipse (Oxygen.2 Decemeber 2017) with buildship (2.2.1 v20180125-1441) (wh...
user668338
2

votes
1

answer
1.2k

Views

Eclipse Gradle adding a classpath entry

I'm adding a classpath entry to the .classpath file in Eclipse to avoid having to add it manually each time I run the .eclipse task while I add a number of dependencies. I need some resources on the path to run locally. this works, eclipse.classpath.file { withXml { def node = it.asNode() node.appe...
Neill
2

votes
0

answer
555

Views

Update Gradle Classpath project doesn't exist

A project was recently deleted from my repository and now eclipse occasionally displays the following error. 'Update Gradle Classpath for main_project' has encountered a problem. Project location doesn't exist: path/to/deleted/project' I've done a cleans, gradle->refresh gradle project, deleting and...
Chris
2

votes
0

answer
93

Views

How can I configure the Buildship plugin to download the Maven API Javadoc in Eclipse?

I am building a gradle plugin in Groovy using Eclipse Neon 3. I have linked the internal dependencies as below, and have generated an Eclipse configuration using the Eclipse gradle plugin. dependencies { compile gradleApi() compile localGroovy()} I have specified that I would like to download and re...
6

votes
2

answer
1.6k

Views

How to specify “sources” JAR for local JAR dependency?

I have a *.jar file in my Gradle / Buildship project that resides in a lib folder. I include it in my build.gradle via: compile files('libs/local-lib.jar') I also have a correspondinglocal-lib-sources.jar file that I would like to attach to it. In Eclipse, for manually managed dependencies this work...
Alan47
11

votes
3

answer
10.5k

Views

How to fix “Missing Gradle project configuration file” issue in Buildship?

As an Eclipse user, I always liked the Gradle IDE. However, this plugin is now deprecated in favor of the new Buildship plugin. After setting up a fresh Eclipse IDE with Buildship installed, I'm faced with the following error in all my Gradle projects: missing gradle project configuration file: .set...
Alan47
0

votes
1

answer
790

Views

Can Eclipse Buildship (Gradle plugin) update my java project library path configuration based on it's dependencies?

I am migrating my Java (EJB project) and Dynamic Web projects in Eclipse to Gradle. I am using Buildship. My projects have a Eclipse Library configuration, which it was a pain to maintain. With grade this is great as I just add those 'dependencies' to build.gradle file... etc. You know. That's fine....
icordoba
4

votes
1

answer
245

Views

How to use buildship for android?

I have a dummy project, which I succeed to compile through buildship plugin in eclipse IDE. This is my local.properties file: sdk.dir=C:/Asta/altro/adt-bundle/sdk This is settings.gradle file rootProject.name = 'testgradle' This is my build.gradle file buildscript { repositories { jcenter() } depend...
Zanna
3

votes
0

answer
138

Views

Trigger Gradle Task after import Eclipse Project

We ported our custom Gradle setup (GWT, builder configuration etc.) for Eclipse from the STS Gradle Plugin to the Buildship Plugin. We use special self-developed tasks which are performed automatically after an import of a Gradle project through the STS plugin via the eclipse-task and afterEclipseIm...
Dudei95
4

votes
0

answer
228

Views

Workaround for buildship composite build and eclipse-wtp

I have a root project(web-app) with 2 included builds(core and models) in my eclipse workspace and I want to start the web-app in eclipse-tomcat. settings.gradle of web-app: rootProject.name = 'web-app' includeBuild '../core' includeBuild '../models' The documentation says that gradle composite bu...
soilworker
0

votes
0

answer
111

Views

STS 3.9.4 + Eclipse Buildship Gradle plugin doesn't prioritize test classes over main classes in JUnit tests

I have a Spring Boot (1.5.12) project that uses Gradle (4.7). This project has the usual layout: src |--main | |--java | |--resources | |--bootstrap.yml | |--application.yml |--test | |--java | |--resources | |--bootstrap.yml In /src/test/resources/bootstrap.yml I hav...
codependent