pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  4. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.garypaduana</groupId>
  7. <artifactId>groovy-tools</artifactId>
  8. <version>0.9.0</version>
  9. <packaging>jar</packaging>
  10. <properties>
  11. <start-class></start-class>
  12. </properties>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.codehaus.groovy</groupId>
  16. <artifactId>groovy-all</artifactId>
  17. <version>2.5.7</version>
  18. <type>pom</type>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.yaml</groupId>
  22. <artifactId>snakeyaml</artifactId>
  23. <version>1.18</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.sun.mail</groupId>
  27. <artifactId>javax.mail</artifactId>
  28. <version>1.6.2</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.spockframework</groupId>
  32. <artifactId>spock-core</artifactId>
  33. <version>1.3-groovy-2.5</version>
  34. <scope>test</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>junit</groupId>
  38. <artifactId>junit</artifactId>
  39. <version>4.12</version>
  40. <scope>test</scope>
  41. </dependency>
  42. </dependencies>
  43. <build>
  44. <plugins>
  45. <!--
  46. The current maven implementation:
  47. http://docs.groovy-lang.org/latest/html/documentation/tools-groovyc.html#_maven_integration
  48. Alternative solution: https://github.com/groovy/groovy-eclipse/wiki/Groovy-Eclipse-Maven-plugin
  49. -->
  50. <plugin>
  51. <artifactId>maven-antrun-plugin</artifactId>
  52. <executions>
  53. <execution>
  54. <id>compile</id>
  55. <phase>compile</phase>
  56. <configuration>
  57. <tasks>
  58. <mkdir dir="${basedir}/src/main/groovy"/>
  59. <taskdef name="groovyc"
  60. classname="org.codehaus.groovy.ant.Groovyc">
  61. <classpath refid="maven.compile.classpath"/>
  62. </taskdef>
  63. <mkdir dir="${project.build.outputDirectory}"/>
  64. <groovyc destdir="${project.build.outputDirectory}"
  65. srcdir="${basedir}/src/main/groovy/" listfiles="true">
  66. <classpath refid="maven.compile.classpath"/>
  67. </groovyc>
  68. </tasks>
  69. </configuration>
  70. <goals>
  71. <goal>run</goal>
  72. </goals>
  73. </execution>
  74. <execution>
  75. <id>test-compile</id>
  76. <phase>test-compile</phase>
  77. <configuration>
  78. <tasks>
  79. <mkdir dir="${basedir}/src/test/groovy"/>
  80. <taskdef name="groovyc"
  81. classname="org.codehaus.groovy.ant.Groovyc">
  82. <classpath refid="maven.test.classpath"/>
  83. </taskdef>
  84. <mkdir dir="${project.build.testOutputDirectory}"/>
  85. <groovyc destdir="${project.build.testOutputDirectory}"
  86. srcdir="${basedir}/src/test/groovy/" listfiles="true">
  87. <classpath refid="maven.test.classpath"/>
  88. </groovyc>
  89. </tasks>
  90. </configuration>
  91. <goals>
  92. <goal>run</goal>
  93. </goals>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <!-- <plugin>-->
  98. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  99. <!-- <artifactId>maven-shade-plugin</artifactId>-->
  100. <!-- <version>3.2.1</version>-->
  101. <!-- <executions>-->
  102. <!-- <execution>-->
  103. <!-- <phase>package</phase>-->
  104. <!-- <goals>-->
  105. <!-- <goal>shade</goal>-->
  106. <!-- </goals>-->
  107. <!-- <configuration>-->
  108. <!-- <transformers>-->
  109. <!-- <transformer-->
  110. <!-- implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">-->
  111. <!-- <mainClass>${start-class}</mainClass>-->
  112. <!-- </transformer>-->
  113. <!-- </transformers>-->
  114. <!-- </configuration>-->
  115. <!-- </execution>-->
  116. <!-- </executions>-->
  117. <!-- </plugin>-->
  118. </plugins>
  119. </build>
  120. </project>