spring-boot icon indicating copy to clipboard operation
spring-boot copied to clipboard

Enable eclipse ignoreUnnamedModuleForSplitPackage setting in buildSrc

Open philwebb opened this issue 1 year ago • 2 comments

On a fresh Eclipse the following needs to be added to .settings/org.eclipse.jdt.core.prefs for buildSrc. We should try and automate that.

org.eclipse.jdt.core.compiler.ignoreUnnamedModuleForSplitPackage=enabled

philwebb avatar Jul 02 '24 03:07 philwebb

I think you already tried that in https://github.com/spring-projects/spring-boot/commit/4aa4e14fa48a7224e7c5f9654874f08b3139c1d3. My guess is that the settings are getting clobbered by Java Format but that is just a guess. I tried doing this instead:

eclipse.jdt.file.whenMerged {
	def properties = new Properties()
	load(properties)
	properties.setProperty("org.eclipse.jdt.core.compiler.ignoreUnnamedModuleForSplitPackage", "enabled")
	store(properties)
}

It didn't work.

wilkinsona avatar Jul 24 '24 09:07 wilkinsona

I thought I'd fixed it previously. I'm not sure why it stopped working.

philwebb avatar Jul 24 '24 13:07 philwebb