Comments (3)
I found my problem:
In executions I added configuration with tasks, but without gradle version. After change everything is all right.
from gradle-maven-plugin.
Can you give me some example to run gradle task in different maven phases? it is very userful for me.
from gradle-maven-plugin.
The script should look like this:
<plugin>
<groupId>org.fortasoft</groupId>
<artifactId>gradle-maven-plugin</artifactId>
<version>1.0.8</version>
<dependencies>
<dependency>
<groupId>org.gradle</groupId>
<artifactId>gradle-tooling-api</artifactId>
<version>5.4.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>assembleRelease</id>
<configuration>
<gradleVersion>5.4.1</gradleVersion>
<gradleProjectDirectory>
${project.basedir}/gradle-proj
</gradleProjectDirectory>
<tasks>
<task>clean</task>
<task>assembleRelease</task>
</tasks>
</configuration>
<!-- You can bind this to any phase you like -->
<phase>compile</phase>
<goals>
<!-- goal must be "invoke" -->
<goal>invoke</goal>
</goals>
</execution>
<execution>
<id>test</id>
<configuration>
<gradleVersion>5.4.1</gradleVersion>
<gradleProjectDirectory>
${project.basedir}/gradle-proj
</gradleProjectDirectory>
<tasks>
<task>clean</task>
<task>test</task>
</tasks>
</configuration>
<!-- You can bind this to any phase you like -->
<phase>test</phase>
<goals>
<!-- goal must be "invoke" -->
<goal>invoke</goal>
</goals>
</execution>
</executions>
</plugin>
from gradle-maven-plugin.
Related Issues (20)
- Broken on maven 3.3.1 HOT 1
- Integration tests fail with Maven 3.3.1 HOT 3
- cut a new release 1.0.7 to maven central? HOT 6
- "A required class was missing": NewMojoLogger on Maven 3.3.3 HOT 2
- Error with gradle-tooling-api 2.6 and up HOT 1
- 1.0.6 is not at maven central HOT 2
- A required class was missing while executing org.fortasoft:gradle-maven-plugin:1.0.5:invoke HOT 3
- Add property for custom build file name HOT 1
- need maven project and session bound to variables for checkInvokeScript feature
- Use https to download Gradle distribution
- Multi module maven dependencies are not available in gradle HOT 1
- mvn clean doesn't clean Gradle-generated files
- org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-2.13-bin.zip' HOT 4
- How to disable gradle daemon
- Could not determine java version from '9.0.1' HOT 2
- Gradle 5.x Tooling API HOT 3
- How to use gradle wrapper? HOT 1
- How can I add changelog in debian file?
- Multi thread build failed sometimes due Could not create an instance of Tooling API implementation using the specified Gradle distribution 'https://services.gradle.org/distributions/gradle-7.1.1-bin.zip'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-maven-plugin.