File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 219219 <build >
220220 <plugins >
221221 <plugin >
222- <groupId >org.codehaus.mojo</groupId >
223- <artifactId >exec-maven-plugin</artifactId >
224- <executions >
225- <execution >
226- <id >union-metadata-indices</id >
227- <phase >process-test-classes</phase >
228- <goals >
229- <goal >exec</goal >
230- </goals >
231- <configuration >
232- <executable >${basedir} /unionPluginInfo.sh</executable >
233- </configuration >
234- </execution >
235- </executions >
222+ <groupId >com.alexecollins.maven.plugin</groupId >
223+ <artifactId >script-maven-plugin</artifactId >
236224 </plugin >
237225 </plugins >
238226 </build >
Load diff This file was deleted.
Original file line number Diff line number Diff line change 8585
8686 <guava .version>28.2-jre</guava .version>
8787 <geantyref .version>1.3.6</geantyref .version>
88+
89+ <script-maven .version>1.0.0</script-maven .version>
90+ <jruby .version>9.2.11.1</jruby .version>
8891 </properties >
8992
9093 <build >
102105 </configuration >
103106 </plugin >
104107 </plugins >
108+ <pluginManagement >
109+ <plugins >
110+ <plugin >
111+ <groupId >com.alexecollins.maven.plugin</groupId >
112+ <artifactId >script-maven-plugin</artifactId >
113+ <version >${script-maven.version} </version >
114+ <executions >
115+ <execution >
116+ <id >union-metadata-indices</id >
117+ <phase >process-test-classes</phase >
118+ <goals >
119+ <goal >execute</goal >
120+ </goals >
121+ <configuration >
122+ <language >ruby</language >
123+ <script >
124+ # Append the source plugin annotations to the test plugin annotations
125+ # Handle windows paths
126+ basedir = '${project.basedir} '.gsub /\\+/, '\\\\'
127+ sourceFile = basedir + '/target/classes/META-INF/json/org.scijava.plugin.Plugin'
128+ destFile = basedir + '/target/test-classes/META-INF/json/org.scijava.plugin.Plugin'
129+ File.open(sourceFile) do |input|
130+ data_to_copy = input.read()
131+ File.open(destFile, 'a') do |output|
132+ output.write(data_to_copy)
133+ end
134+ end
135+ </script >
136+ </configuration >
137+ </execution >
138+ </executions >
139+ <dependencies >
140+ <dependency >
141+ <groupId >org.jruby</groupId >
142+ <artifactId >jruby-complete</artifactId >
143+ <version >${jruby.version} </version >
144+ <scope >runtime</scope >
145+ </dependency >
146+ </dependencies >
147+ </plugin >
148+ </plugins >
149+ </pluginManagement >
105150 </build >
106151</project >
Original file line number Diff line number Diff line change 9595 <license .copyrightOwners>SciJava developers.</license .copyrightOwners>
9696 </properties >
9797
98- <build >
99- <plugins >
100- <plugin >
101- <groupId >org.codehaus.mojo</groupId >
102- <artifactId >exec-maven-plugin</artifactId >
103- <version >${exec-maven-plugin.version} </version >
104- <executions >
105- <execution >
106- <id >union-metadata-indices</id >
107- <phase >process-test-classes</phase >
108- <goals >
109- <goal >exec</goal >
110- </goals >
111- <configuration >
112- <executable >${basedir} /unionPluginInfo.sh</executable >
113- </configuration >
114- </execution >
115- </executions >
116- </plugin >
117- </plugins >
118- </build >
98+ <build >
99+ <plugins >
100+ <plugin >
101+ <groupId >com.alexecollins.maven.plugin</groupId >
102+ <artifactId >script-maven-plugin</artifactId >
103+ </plugin >
104+ </plugins >
105+ </build >
119106 <dependencies >
120107 <!-- SciJava dependencies -->
121108 <dependency >
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments