-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to Buildship 3.0 #876
Conversation
test this please |
Tried importing https://github.com/spring-projects/spring-amqp, failed with:
|
@fbricon re Buildship sources (eclipse-buildship/buildship#327) You can try the following:
|
@snjeza I just cloned the repo and made eclipse point at the repo directory when searching for sources, it's simpler. But what would be even simpler is to have those sources available directly. |
test this please |
@snjeza can you reproduce the NPE above? I still have the same issue with the latest buildship build |
build.synchronize(NewProjectHandler.IMPORT_AND_MERGE); | ||
String javaHomeStr = JavaLanguageServerPlugin.getPreferencesManager().getPreferences().getJavaHome(); | ||
File javaHome = javaHomeStr == null ? null : new File(javaHomeStr); | ||
BuildConfiguration configuration = CorePlugin.configurationManager().createBuildConfiguration(location, overrideWorkspaceSettings, distribution, getGradleHomeFile(), javaHome, false, false, false, null, null, false, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid passing null objects to the configuration, this is the cause for the NPE. Try with empty lists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible for you to switch to the new public API?
BuildConfiguration build = BuildConfiguration.forRootProjectDirectory(new File("path/to/root"))
.javaHome(new File("path/to/jdk"))
.arguments(Arrays.asList("--info"))
// ...
.build();
SynchronizationResult result = GradleCore.getWorkspace().createBuild(build).synchronize(monitor);
System.out.println(result.getStatus().isOK());
@snjeza can you do a quick assessment of the extra disk space added to the distro if we threw in the gradle/kotlin bundles? |
Signed-off-by: Snjezana Peco <[email protected]>
I can reproduce it when I set GRADLE_HOME |
@fbricon Do you mean https://github.com/JetBrains/kotlin-eclipse? |
org.eclipse.buildship.kotlin and its dependencies, so yeah I imagine that includes some of jetbrains plugins |
org.eclipse.buildship.kotlin requires org.eclipse.jdt.ui - see https://github.com/eclipse/buildship/blob/master/org.eclipse.buildship.kotlin/META-INF/MANIFEST.MF#L18 and https://github.com/JetBrains/kotlin-eclipse/blob/master/kotlin-eclipse-core/META-INF/MANIFEST.MF#L27 |
tssss. This is a no-go then. Can you please open a ticket in https://github.com/JetBrains/kotlin-eclipse/ so they decouple their core plugins from the ui? |
Signed-off-by: Snjezana Peco <[email protected]>
I can't create any issues in https://github.com/JetBrains/kotlin-eclipse/ |
@snjeza @fbricon kotlin-eclipse does not track issue on Github. I've created one for this issue in their issue tracker: https://youtrack.jetbrains.com/issue/KE-307?project=KE&clearDraft=true |
Fixes #875
Signed-off-by: Snjezana Peco [email protected]