Skip to content

Commit d1e4ead

Browse files
committed
Replace 'google-java-format' by 'prettier' tor format Java code
1 parent e058486 commit d1e4ead

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

lkql_jit/pom.xml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@
3838
<!-- Python interpreter -->
3939
<config.python>python</config.python>
4040

41+
<!-- Node and NPM executables -->
42+
<config.node></config.node>
43+
<config.npm></config.npm>
44+
45+
<!-- NPM configuration -->
46+
<config.npmInstallCache>./target/npm-cache</config.npmInstallCache>
47+
<config.npmrc></config.npmrc>
48+
4149
<!-- List of the components to build with native image -->
4250
<config.nativeComponents>none</config.nativeComponents>
4351

@@ -137,12 +145,23 @@
137145
<file>${project.basedir}${file.separator}LICENSE</file>
138146
</licenseHeader>
139147

140-
<googleJavaFormat>
141-
<version>1.17.0</version>
142-
<style>AOSP</style>
143-
<reflowLongStrings>true</reflowLongStrings>
144-
<formatJavadoc>true</formatJavadoc>
145-
</googleJavaFormat>
148+
<prettier>
149+
<npmInstallCache>${config.npmInstallCache}</npmInstallCache>
150+
<nodeExecutable>${config.node}</nodeExecutable>
151+
<npmExecutable>${config.npm}</npmExecutable>
152+
<npmrc>${config.npmrc}</npmrc>
153+
<devDependencies>
154+
<prettier>3.4.2</prettier>
155+
<prettier-plugin-java>2.6.7</prettier-plugin-java>
156+
</devDependencies>
157+
<config>
158+
<printWidth>100</printWidth>
159+
<tabWidth>4</tabWidth>
160+
<endOfLine>lf</endOfLine>
161+
<parser>java</parser>
162+
<plugins>prettier-plugin-java</plugins>
163+
</config>
164+
</prettier>
146165

147166
<importOrder>
148167
<wildcardsLast>true</wildcardsLast>

0 commit comments

Comments
 (0)