diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-04-07 22:10:22 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-04-07 22:10:22 +0200 |
commit | c909c60468416fa2375c9f9e1282ffa11b834783 (patch) | |
tree | d48dd5b69001e16dfb598052e1e85bad20fa5ff6 /pom.xml | |
parent | 524df7c230d227821176d59ba55bfaa0914a2df6 (diff) | |
download | sonarqube-c909c60468416fa2375c9f9e1282ffa11b834783.tar.gz sonarqube-c909c60468416fa2375c9f9e1282ffa11b834783.zip |
Replace GMavenPlus by beanshell
I'm afraid of the side-effects of the required property "allowSystemExits" of GMavenPlus (yet another groovy maven plugin)
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 33 |
1 files changed, 11 insertions, 22 deletions
@@ -418,39 +418,28 @@ early the tests that are coupled with local environment. --> <plugin> - <groupId>org.codehaus.gmavenplus</groupId> - <artifactId>gmavenplus-plugin</artifactId> - <version>1.5</version> + <groupId>com.github.genthaler</groupId> + <artifactId>beanshell-maven-plugin</artifactId> + <version>1.0</version> <executions> <execution> <id>randomize-environment</id> <phase>validate</phase> <goals> - <goal>execute</goal> + <goal>run</goal> </goals> <configuration> - <scripts> - <script> - <![CDATA[ - String[] timezones = ["GMT-9", "UTC", "GMT+9"]; - String testTimezone = timezones[new Random().nextInt(timezones.length)]; - project.properties['testTimezone'] = testTimezone; - log.info('Timezone used for tests: ' + testTimezone); + <script> + <![CDATA[ + String[] timezones = new String[] {"GMT-9", "UTC", "GMT+9"}; + String testTimezone = timezones[new java.util.Random().nextInt(timezones.length)]; + project.getProperties().setProperty("testTimezone", testTimezone); + logger.info("Timezone used for tests: " + testTimezone); ]]> - </script> - </scripts> + </script> </configuration> </execution> </executions> - <dependencies> - <dependency> - <groupId>org.codehaus.groovy</groupId> - <artifactId>groovy-all</artifactId> - <!-- any version of Groovy \>= 1.5.0 should work here --> - <version>2.4.1</version> - <scope>runtime</scope> - </dependency> - </dependencies> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> |