mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
(improvement)[build] Add the spotless.skip configuration to resolve the error reported by Spotless during the build. (#1762)
This commit is contained in:
@@ -40,7 +40,7 @@ if "%service%"=="webapp" (
|
|||||||
:buildJavaService
|
:buildJavaService
|
||||||
set "model_name=%service%"
|
set "model_name=%service%"
|
||||||
echo "starting building supersonic-%model_name% service"
|
echo "starting building supersonic-%model_name% service"
|
||||||
call mvn -f %projectDir% clean package -DskipTests
|
call mvn -f %projectDir% clean package -DskipTests -Dspotless.skip=true
|
||||||
IF ERRORLEVEL 1 (
|
IF ERRORLEVEL 1 (
|
||||||
ECHO Failed to build backend Java modules.
|
ECHO Failed to build backend Java modules.
|
||||||
EXIT /B 1
|
EXIT /B 1
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ fi
|
|||||||
function buildJavaService {
|
function buildJavaService {
|
||||||
model_name=$1
|
model_name=$1
|
||||||
echo "starting building supersonic-${model_name} service"
|
echo "starting building supersonic-${model_name} service"
|
||||||
mvn -f $projectDir clean package -DskipTests
|
mvn -f $projectDir clean package -DskipTests -Dspotless.skip=true
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Failed to build backend Java modules."
|
echo "Failed to build backend Java modules."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
5
pom.xml
5
pom.xml
@@ -76,6 +76,7 @@
|
|||||||
<flight-sql-jdbc-driver.version>15.0.2</flight-sql-jdbc-driver.version>
|
<flight-sql-jdbc-driver.version>15.0.2</flight-sql-jdbc-driver.version>
|
||||||
<gson.version>2.10.1</gson.version>
|
<gson.version>2.10.1</gson.version>
|
||||||
<spotless.version>2.27.1</spotless.version>
|
<spotless.version>2.27.1</spotless.version>
|
||||||
|
<spotless.skip>false</spotless.skip>
|
||||||
<stax2.version>4.2.1</stax2.version>
|
<stax2.version>4.2.1</stax2.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -244,6 +245,7 @@
|
|||||||
<artifactId>spotless-maven-plugin</artifactId>
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
<version>${spotless.version}</version>
|
<version>${spotless.version}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<skip>${spotless.skip}</skip>
|
||||||
<java>
|
<java>
|
||||||
<eclipse>
|
<eclipse>
|
||||||
<file>java-formatter.xml</file>
|
<file>java-formatter.xml</file>
|
||||||
@@ -260,6 +262,9 @@
|
|||||||
<goals>
|
<goals>
|
||||||
<goal>apply</goal>
|
<goal>apply</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<skip>${spotless.skip}</skip>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|||||||
Reference in New Issue
Block a user