File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
plugin-gradle/src/main/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -162,9 +162,7 @@ private KtlintConfig(
162162 Map <String , Object > editorConfigOverride ,
163163 List <String > customRuleSets ) throws IOException {
164164 Objects .requireNonNull (version );
165- @ SuppressWarnings ("UnstableApiUsage" )
166- Directory rootProjectDir = getProject ().getIsolated ().getRootProject ().getProjectDirectory ();
167- File defaultEditorConfig = rootProjectDir .file (".editorconfig" ).getAsFile ();
165+ File defaultEditorConfig = getProject ().getRootProject ().getLayout ().getProjectDirectory ().file (".editorconfig" ).getAsFile ();
168166 FileSignature editorConfigPath = defaultEditorConfig .exists () ? FileSignature .signAsList (defaultEditorConfig ) : null ;
169167 this .version = version ;
170168 this .editorConfigPath = editorConfigPath ;
You can’t perform that action at this time.
0 commit comments