Skip to content

Commit

Permalink
chore: replace exec-maven-plugin with gradle-maven-plugin (#12501)
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo authored and ZheSun88 committed Dec 9, 2021
1 parent 1ecc2c8 commit d88ce22
Showing 1 changed file with 26 additions and 37 deletions.
63 changes: 26 additions & 37 deletions flow-plugins/flow-gradle-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
central repo is done within platform final releases.
</description>

<properties>
<gradle.executable>./gradlew</gradle.executable>
</properties>

<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
Expand Down Expand Up @@ -55,34 +51,40 @@
</execution>
</executions>
</plugin>

<!-- execute Gradle command -->
<!-- run gradle tasks -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<groupId>codes.rafael.gradlemavenplugin</groupId>
<artifactId>gradle-maven-plugin</artifactId>
<version>1.0.10</version>
<configuration>
<gradleVersion>7.3</gradleVersion>
<tasks>
<task>clean</task>
<task>build</task>
<task>javadocJar</task>
</tasks>
<args>
<arg>-x</arg>
<arg>functionalTest</arg>
<arg>-S</arg>
</args>
</configuration>
<executions>
<execution>
<id>gradle</id>
<phase>prepare-package</phase>
<configuration>
<executable>${gradle.executable}</executable>
<arguments>
<argument>clean</argument>
<argument>build</argument>
<argument>javadocJar</argument>
<argument>-x</argument>
<argument>functionalTest</argument>
<argument>-S</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
<goal>invoke</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.gradle</groupId>
<artifactId>gradle-tooling-api</artifactId>
<version>7.3-20210825160000+0000</version>
</dependency>
</dependencies>
</plugin>

<!-- copy generated JARs -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
Expand Down Expand Up @@ -138,20 +140,7 @@
</execution>
</executions>
</plugin>

</plugins>
</build>

<profiles>
<profile>
<id>windows_profile</id>
<activation>
<os>
<family>Windows</family>
</os>
</activation>
<properties>
<gradle.executable>gradlew.bat</gradle.executable>
</properties>
</profile>
</profiles>
</project>

0 comments on commit d88ce22

Please sign in to comment.