Skip to content

Commit

Permalink
[hotfix] Add project root path to files to facilitate compiling modul…
Browse files Browse the repository at this point in the history
…es in child dirs (#3063)
  • Loading branch information
Zouxxyy authored Mar 21, 2024
1 parent 9a2f0ba commit 617bff2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .mvn/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The .mvn directory is needed to be able to use the ${maven.multiModuleProjectDirectory} property, since git cannot
commit an empty directory, add this file.

Once we do not use ${maven.multiModuleProjectDirectory}, we can remove this file and .mvn directory.
7 changes: 4 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -831,18 +831,19 @@ under the License.
</importOrder>

<licenseHeader>
<file>copyright.txt</file>
<!-- replace it with ${project.rootDirectory} after maven 4.0.0, see MNG-7038 -->
<file>${maven.multiModuleProjectDirectory}/copyright.txt</file>
<delimiter>${spotless.delimiter}</delimiter>
</licenseHeader>
</java>
<scala>
<scalafmt>
<version>3.4.3</version>
<file>.scalafmt.conf</file>
<file>${maven.multiModuleProjectDirectory}/.scalafmt.conf</file>
</scalafmt>

<licenseHeader>
<file>copyright.txt</file>
<file>${maven.multiModuleProjectDirectory}/copyright.txt</file>
<delimiter>${spotless.delimiter}</delimiter>
</licenseHeader>
</scala>
Expand Down

0 comments on commit 617bff2

Please sign in to comment.