|
13 | 13 | <packaging>pom</packaging> |
14 | 14 |
|
15 | 15 | <dependencies> |
16 | | - <dependency> |
17 | | - <groupId>${project.groupId}</groupId> |
18 | | - <artifactId>jcp-gradle-plugin</artifactId> |
19 | | - <version>${jcp.test.version}</version> |
20 | | - <scope>provided</scope> |
21 | | - </dependency> |
22 | 16 | <dependency> |
23 | 17 | <groupId>junit</groupId> |
24 | 18 | <artifactId>junit</artifactId> |
|
63 | 57 | </plugin> |
64 | 58 | <plugin> |
65 | 59 | <groupId>org.codehaus.mojo</groupId> |
66 | | - <artifactId>properties-maven-plugin</artifactId> |
67 | | - <version>1.0.0</version> |
| 60 | + <artifactId>exec-maven-plugin</artifactId> |
68 | 61 | <executions> |
69 | 62 | <execution> |
70 | | - <goals> |
71 | | - <goal>set-system-properties</goal> |
72 | | - </goals> |
| 63 | + <id>gradle</id> |
| 64 | + <phase>compile</phase> |
73 | 65 | <configuration> |
74 | | - <properties> |
75 | | - <property> |
76 | | - <name>gradle.prop.jcp_plugin_path</name> |
77 | | - <value>${project.basedir}${file.separator}..${file.separator}..${file.separator}jcp-gradle-plugin${file.separator}build${file.separator}libs${file.separator}jcp-gradle-plugin-${jcp.test.version}.jar</value> |
78 | | - </property> |
79 | | - </properties> |
| 66 | + <executable>${gradle.executable}</executable> |
| 67 | + <arguments> |
| 68 | + <argument>clean</argument> |
| 69 | + <argument>test</argument> |
| 70 | + <argument>jar</argument> |
| 71 | + <argument>-i</argument> |
| 72 | + <argument>-S</argument> |
| 73 | + <argument> |
| 74 | + -Pjcp_plugin_path=${project.basedir}${file.separator}..${file.separator}..${file.separator}jcp-gradle-plugin${file.separator}build${file.separator}libs${file.separator}jcp-gradle-plugin-${jcp.test.version}.jar |
| 75 | + </argument> |
| 76 | + </arguments> |
80 | 77 | </configuration> |
81 | | - </execution> |
82 | | - </executions> |
83 | | - </plugin> |
84 | | - <plugin> |
85 | | - <groupId>org.fortasoft</groupId> |
86 | | - <artifactId>gradle-maven-plugin</artifactId> |
87 | | - <version>1.0.8</version> |
88 | | - <dependencies> |
89 | | - <dependency> |
90 | | - <groupId>org.gradle</groupId> |
91 | | - <artifactId>gradle-tooling-api</artifactId> |
92 | | - <version>5.1</version> |
93 | | - <systemPath> |
94 | | - ${project.basedir}${file.separator}..${file.separator}extlibs${file.separator}gradle-tooling-api-5.1.jar |
95 | | - </systemPath> |
96 | | - <scope>system</scope> |
97 | | - </dependency> |
98 | | - </dependencies> |
99 | | - |
100 | | - <configuration> |
101 | | - <gradleVersion>5.0</gradleVersion> |
102 | | - <args> |
103 | | - <arg>--stacktrace</arg> |
104 | | - <arg>--info</arg> |
105 | | - </args> |
106 | | - <tasks> |
107 | | - <task>clean</task> |
108 | | - <task>test</task> |
109 | | - <task>jar</task> |
110 | | - </tasks> |
111 | | - </configuration> |
112 | | - <executions> |
113 | | - <execution> |
114 | | - <phase>compile</phase> |
115 | 78 | <goals> |
116 | | - <goal>invoke</goal> |
| 79 | + <goal>exec</goal> |
117 | 80 | </goals> |
118 | 81 | </execution> |
119 | 82 | </executions> |
|
0 commit comments