This is an automated email from the ASF dual-hosted git repository. gortiz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push: new 6a63a127ad Speed up dev build. (#14210) 6a63a127ad is described below commit 6a63a127ad2d161c888b9e9b6f9fa2054e473251 Author: Bolek Ziobrowski <26925920+bziobrow...@users.noreply.github.com> AuthorDate: Thu Oct 24 08:47:18 2024 +0200 Speed up dev build. (#14210) speed up developer build (one with pinot-fastdev profile enabled) by skipping compression and e.g. npm validation. --- pinot-controller/pom.xml | 36 ++++++++++++++++++++++++++++++++++++ pinot-distribution/pom.xml | 4 ++++ pinot-plugins/pom.xml | 4 ++++ pinot-tools/pom.xml | 4 ++++ pom.xml | 4 ++++ 5 files changed, 52 insertions(+) diff --git a/pinot-controller/pom.xml b/pinot-controller/pom.xml index 7d0feca112..4567ea36d7 100644 --- a/pinot-controller/pom.xml +++ b/pinot-controller/pom.xml @@ -166,5 +166,41 @@ <npm.script>build</npm.script> </properties> </profile> + <profile> + <id>pinot-fastdev</id> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>3.6.0</version> + <executions> + <execution> + <id>check-frontend-up-to-date</id> + <phase>process-sources</phase> + <goals> + <goal>uptodate-property</goal> + </goals> + <configuration> + <fileSet> + <directory>${project.basedir}/src/main/resources/app</directory> + <outputDirectory>${project.basedir}/src/main/resources/dist/webapp/js</outputDirectory> + <includes> + <include>**/*</include> + </includes> + <mapper> + <type>merge</type> + <to>main.js</to> + </mapper> + </fileSet> + <name>skip.npm</name> + <value>true</value> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> </profiles> </project> diff --git a/pinot-distribution/pom.xml b/pinot-distribution/pom.xml index 9c8f1f0549..7a66c11af4 100644 --- a/pinot-distribution/pom.xml +++ b/pinot-distribution/pom.xml @@ -96,6 +96,10 @@ <descriptor>${pinot.root}/pinot-distribution/pinot-source-assembly.xml</descriptor> </descriptors> <appendAssemblyId>false</appendAssemblyId> + <archiverConfig> + <compress>${archiver.compress}</compress> + </archiverConfig> + <recompressZippedFiles>${archiver.recompressZippedFiles}</recompressZippedFiles> </configuration> </execution> </executions> diff --git a/pinot-plugins/pom.xml b/pinot-plugins/pom.xml index fa873b34a6..d26a36a997 100644 --- a/pinot-plugins/pom.xml +++ b/pinot-plugins/pom.xml @@ -74,6 +74,10 @@ <descriptorRefs> <descriptorRef>pinot-plugin</descriptorRef> </descriptorRefs> + <archiverConfig> + <compress>${archiver.compress}</compress> + </archiverConfig> + <recompressZippedFiles>${archiver.recompressZippedFiles}</recompressZippedFiles> </configuration> </execution> </executions> diff --git a/pinot-tools/pom.xml b/pinot-tools/pom.xml index 43ab1552ed..64ef2d150c 100644 --- a/pinot-tools/pom.xml +++ b/pinot-tools/pom.xml @@ -450,6 +450,10 @@ </manifest> </archive> <finalName>pinot-tool-launcher</finalName> + <archiverConfig> + <compress>${archiver.compress}</compress> + </archiverConfig> + <recompressZippedFiles>${archiver.recompressZippedFiles}</recompressZippedFiles> </configuration> <phase>package</phase> <goals> diff --git a/pom.xml b/pom.xml index bd73e1698d..ddfbd394f9 100644 --- a/pom.xml +++ b/pom.xml @@ -281,6 +281,8 @@ <jnr-posix.version>3.1.20</jnr-posix.version> <scalatest.version>3.2.19</scalatest.version> <fmpp.version>0.9.16</fmpp.version> + <archiver.compress>true</archiver.compress> + <archiver.recompressZippedFiles>true</archiver.recompressZippedFiles> </properties> <profiles> @@ -295,6 +297,8 @@ <rat.skip>true</rat.skip> <spotless.check.skip>true</spotless.check.skip> <shade.phase.prop>none</shade.phase.prop> + <archiver.compress>false</archiver.compress> + <archiver.recompressZippedFiles>false</archiver.recompressZippedFiles> </properties> </profile> <!--build profile for linux-aarch64. We exclude certain tests as they use runtime JNI bindings not supported for linux-aarch64--> --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org