You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by be...@apache.org on 2022/09/15 23:36:22 UTC
[incubator-streampark] branch dev updated: [build] speed up build progress. (#1613)
This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/dev by this push:
new 12df83f70 [build] speed up build progress. (#1613)
12df83f70 is described below
commit 12df83f70fc3bce3bf0929b30d026a409671576c
Author: gongzhongqiang <76...@qq.com>
AuthorDate: Fri Sep 16 07:36:14 2022 +0800
[build] speed up build progress. (#1613)
* [build] speed up build progress.
---
pom.xml | 15 ++-
streampark-common/pom.xml | 4 +
.../streampark-console-service/pom.xml | 104 +++------------------
streampark-flink/pom.xml | 9 ++
.../streampark-flink-sqlclient/pom.xml | 4 +
streampark-flink/streampark-flink-udf/pom.xml | 9 ++
streampark-plugin/streampark-jvm-profiler/pom.xml | 5 -
streampark-spark/pom.xml | 10 ++
.../streampark-spark-cli/create_app.sh | 1 -
streampark-spark/streampark-spark-test/pom.xml | 1 +
10 files changed, 56 insertions(+), 106 deletions(-)
diff --git a/pom.xml b/pom.xml
index 826a2545c..85252eed3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -726,6 +726,12 @@
<source>${project.build.jdk}</source>
<target>${project.build.jdk}</target>
<encoding>UTF-8</encoding>
+ <!-- The semantics of this option are reversed, see MCOMPILER-209. -->
+ <useIncrementalCompilation>false</useIncrementalCompilation>
+ <compilerArgs>
+ <!-- Prevents recompilation due to missing package-info.class, see MCOMPILER-205 -->
+ <arg>-Xpkginfo:always</arg>
+ </compilerArgs>
</configuration>
</plugin>
@@ -752,7 +758,6 @@
<id>test-compile-scala</id>
<phase>test-compile</phase>
<goals>
- <goal>add-source</goal>
<goal>testCompile</goal>
</goals>
</execution>
@@ -893,12 +898,6 @@
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
- <!--scala-->
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>scala-maven-plugin</artifactId>
- </plugin>
-
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
@@ -949,7 +948,7 @@
<profile>
<id>scala-2.11</id>
<activation>
- <activeByDefault>true</activeByDefault>
+ <activeByDefault>false</activeByDefault>
<property>
<name>scala.binary.version</name>
<value>2.11</value>
diff --git a/streampark-common/pom.xml b/streampark-common/pom.xml
index 3e285c1bd..ad4029629 100644
--- a/streampark-common/pom.xml
+++ b/streampark-common/pom.xml
@@ -197,6 +197,10 @@
<build>
<plugins>
+ <plugin>
+ <groupId>net.alchim31.maven</groupId>
+ <artifactId>scala-maven-plugin</artifactId>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
diff --git a/streampark-console/streampark-console-service/pom.xml b/streampark-console/streampark-console-service/pom.xml
index 31084132d..594e69714 100644
--- a/streampark-console/streampark-console-service/pom.xml
+++ b/streampark-console/streampark-console-service/pom.xml
@@ -437,7 +437,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
- <version>3.1.0</version>
<executions>
<execution>
<id>copy static</id>
@@ -526,26 +525,6 @@
</artifactItems>
</configuration>
</plugin>
-
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>3.1.1</version>
- <configuration>
- <descriptors>
- <descriptor>src/assembly/assembly.xml</descriptor>
- </descriptors>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
</plugins>
</build>
</profile>
@@ -608,24 +587,7 @@
</configuration>
</plugin>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>3.1.1</version>
- <configuration>
- <descriptors>
- <descriptor>src/assembly/assembly.xml</descriptor>
- </descriptors>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
+
</plugins>
</build>
@@ -637,34 +599,20 @@
<sourceDirectory>src/main/java</sourceDirectory>
<testSourceDirectory>src/test/java</testSourceDirectory>
<plugins>
+
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.1</version>
- <configuration>
- <source>8</source>
- <target>8</target>
- <optimize>true</optimize>
- </configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
- <version>2.2.1</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>2.16</version>
<configuration>
<argLine>-Dfile.encoding=utf-8</argLine>
</configuration>
@@ -673,7 +621,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
- <version>3.1.0</version>
<configuration>
<filesets>
<fileset>
@@ -689,54 +636,27 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
- <version>2.5.3</version>
</plugin>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <dependencies>
- <dependency>
- <groupId>com.puppycrawl.tools</groupId>
- <artifactId>checkstyle</artifactId>
- <version>9.2</version>
- </dependency>
- </dependencies>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>3.1.1</version>
<configuration>
- <configLocation>${maven.multiModuleProjectDirectory}/tools/checkstyle/checkstyle.xml</configLocation>
- <encoding>UTF-8</encoding>
- <consoleOutput>true</consoleOutput>
- <includeTestSourceDirectory>false</includeTestSourceDirectory>
- <failOnViolation>true</failOnViolation>
- <sourceDirectories>
- <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
- <sourceDirectory>${project.build.testSourceDirectory}</sourceDirectory>
- </sourceDirectories>
- <resourceIncludes>
- **/*.properties,
- **/*.sh,
- **/*.bat,
- **/*.yml,
- **/*.yaml,
- **/*.xml
- </resourceIncludes>
- <resourceExcludes>
- **/.asf.yaml,
- **/.github/**
- </resourceExcludes>
- <excludes>
- </excludes>
+ <descriptors>
+ <descriptor>src/assembly/assembly.xml</descriptor>
+ </descriptors>
</configuration>
<executions>
<execution>
- <id>validate</id>
- <phase>process-sources</phase>
+ <id>make-assembly</id>
+ <phase>package</phase>
<goals>
- <goal>check</goal>
+ <goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
+
</plugins>
</build>
diff --git a/streampark-flink/pom.xml b/streampark-flink/pom.xml
index 0dbec5711..f34ee0388 100644
--- a/streampark-flink/pom.xml
+++ b/streampark-flink/pom.xml
@@ -75,4 +75,13 @@
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>net.alchim31.maven</groupId>
+ <artifactId>scala-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
diff --git a/streampark-flink/streampark-flink-sqlclient/pom.xml b/streampark-flink/streampark-flink-sqlclient/pom.xml
index 77627b1d1..ded8ec5d7 100644
--- a/streampark-flink/streampark-flink-sqlclient/pom.xml
+++ b/streampark-flink/streampark-flink-sqlclient/pom.xml
@@ -93,6 +93,10 @@
<build>
<plugins>
+ <plugin>
+ <groupId>net.alchim31.maven</groupId>
+ <artifactId>scala-maven-plugin</artifactId>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
diff --git a/streampark-flink/streampark-flink-udf/pom.xml b/streampark-flink/streampark-flink-udf/pom.xml
index 114f9660a..8f498cd78 100644
--- a/streampark-flink/streampark-flink-udf/pom.xml
+++ b/streampark-flink/streampark-flink-udf/pom.xml
@@ -53,4 +53,13 @@
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>net.alchim31.maven</groupId>
+ <artifactId>scala-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
diff --git a/streampark-plugin/streampark-jvm-profiler/pom.xml b/streampark-plugin/streampark-jvm-profiler/pom.xml
index 839da3d5c..d0d93993d 100644
--- a/streampark-plugin/streampark-jvm-profiler/pom.xml
+++ b/streampark-plugin/streampark-jvm-profiler/pom.xml
@@ -81,11 +81,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.3</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- </configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
diff --git a/streampark-spark/pom.xml b/streampark-spark/pom.xml
index 53d35a485..05ef625b8 100644
--- a/streampark-spark/pom.xml
+++ b/streampark-spark/pom.xml
@@ -91,4 +91,14 @@
<scope>provided</scope>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>net.alchim31.maven</groupId>
+ <artifactId>scala-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
diff --git a/streampark-spark/streampark-spark-cli/create_app.sh b/streampark-spark/streampark-spark-cli/create_app.sh
index 9ee726207..bd87460c2 100644
--- a/streampark-spark/streampark-spark-cli/create_app.sh
+++ b/streampark-spark/streampark-spark-cli/create_app.sh
@@ -340,7 +340,6 @@ cat > $name/pom.xml <<EOF
<id>test-compile-scala</id>
<phase>test-compile</phase>
<goals>
- <goal>add-source</goal>
<goal>testCompile</goal>
</goals>
</execution>
diff --git a/streampark-spark/streampark-spark-test/pom.xml b/streampark-spark/streampark-spark-test/pom.xml
index 1c55c05eb..5f506fec4 100644
--- a/streampark-spark/streampark-spark-test/pom.xml
+++ b/streampark-spark/streampark-spark-test/pom.xml
@@ -92,6 +92,7 @@
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
+
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>