Skip to content

Commit c693efa

Browse files
committed
Update org.eclipse.jdt.core.prefs with all current setting from JDT
There are a few new or at least not previously included settings in the org.eclipse.jdt.core.prefs files. This commit adds them in with their default values.
1 parent e44353e commit c693efa

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,17 @@ subprojects {
5757
}
5858

5959
eclipse {
60+
// To re-create the properties in this list:
61+
// cat org.eclipse.lsp4j/.settings/org.eclipse.jdt.core.prefs | grep -v -E '^#' | grep -v -E 'eclipse.preferences.version' | sed "-es,^,\t\t\t\tproperties['," "-es,=,']='," "-es,$,'," > /tmp/f
62+
// and place contents of /tmp/f here
6063
jdt.file.withProperties { properties ->
61-
properties['org.eclipse.jdt.core.compiler.release']='enabled'
64+
properties['org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode']='enabled'
65+
properties['org.eclipse.jdt.core.compiler.codegen.targetPlatform']='11'
66+
properties['org.eclipse.jdt.core.compiler.codegen.unusedLocal']='preserve'
67+
properties['org.eclipse.jdt.core.compiler.compliance']='11'
68+
properties['org.eclipse.jdt.core.compiler.debug.lineNumber']='generate'
69+
properties['org.eclipse.jdt.core.compiler.debug.localVariable']='generate'
70+
properties['org.eclipse.jdt.core.compiler.debug.sourceFile']='generate'
6271
properties['org.eclipse.jdt.core.compiler.doc.comment.support']='enabled'
6372
properties['org.eclipse.jdt.core.compiler.problem.APILeak']='warning'
6473
properties['org.eclipse.jdt.core.compiler.problem.annotatedTypeArgumentToUnannotated']='info'
@@ -170,6 +179,8 @@ subprojects {
170179
properties['org.eclipse.jdt.core.compiler.problem.unusedTypeParameter']='ignore'
171180
properties['org.eclipse.jdt.core.compiler.problem.unusedWarningToken']='warning'
172181
properties['org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast']='warning'
182+
properties['org.eclipse.jdt.core.compiler.release']='enabled'
183+
properties['org.eclipse.jdt.core.compiler.source']='11'
173184
}
174185
}
175186
}

0 commit comments

Comments
 (0)