Skip to content

Commit

Permalink
chore: replace exec-maven-plugin with gradle-maven-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo committed Dec 8, 2021
1 parent 3844abe commit c4b2c32
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 37 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
| sort > it.modules &
P3=$!
wait $P1 $P2 $P3
# - name: Sleep
# run: echo Sleeping && sleep 300
- name: Compile and Install Flow
run: |
# exclude gradle plugin not needed until gradle tests
Expand Down
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 c4b2c32

Please sign in to comment.