diff --git a/build.gradle b/build.gradle index 247012bfec..48f4761d1c 100644 --- a/build.gradle +++ b/build.gradle @@ -105,6 +105,11 @@ configure(javaProjects) { } } } + tasks.withType(org.gradle.plugins.eclipse.EclipseWtpComponent) { + whenConfigured { wtpComponent -> + wtpComponent.contextPath = project.tasks.findByName('jettyRun')?.contextPath?.replaceFirst('/','') + } + } } ideaModule {