You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (Jira)" <ji...@apache.org> on 2022/04/14 10:06:00 UTC
[jira] [Comment Edited] (FLINK-27232) .scalafmt.conf cant be located when running in sub-directory
[ https://issues.apache.org/jira/browse/FLINK-27232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17522212#comment-17522212 ]
Chesnay Schepler edited comment on FLINK-27232 at 4/14/22 10:05 AM:
--------------------------------------------------------------------
AFAIK multiModuleProjectDirectory would neither work properly (based on google results) nor is it supported in maven 3.2.5.
The safest (and most annoying solution) solution I could come up is to explicitly configure the scala check in each scala-reliant module, with the correct path to the file.
Alternatively we could people to always run spotless together with the directory-maven-plugin and then relying on the injected rootDir property.
was (Author: zentol):
AFAIK multiModuleProjectDirectory would neither work properly (based on google results) nor is it supported in maven 3.2.5.
The safest (and most annoying solution) solution I could come up is to explicitly configure the scala check in each scala-reliant module, with the correct path to the file.
> .scalafmt.conf cant be located when running in sub-directory
> ------------------------------------------------------------
>
> Key: FLINK-27232
> URL: https://issues.apache.org/jira/browse/FLINK-27232
> Project: Flink
> Issue Type: Technical Debt
> Components: Build System
> Affects Versions: 1.16.0
> Reporter: Chesnay Schepler
> Assignee: Chesnay Schepler
> Priority: Major
>
> cd flink-scala
> mvn validate
> Error: Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.13.0:check (spotless-check) on project flink-scala_2.12: Execution spotless-check of goal com.diffplug.spotless:spotless-maven-plugin:2.13.0:check failed: Unable to locate file with path: .scalafmt.conf: Could not find resource '.scalafmt.conf'. -> [Help 1]
> Currently breaks the docs build.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)