Skip to content

Commit bd92fba

Browse files
committed
Switch from clojure-maven-plugin to use zi
1 parent b857bd2 commit bd92fba

File tree

1 file changed

+61
-40
lines changed

1 file changed

+61
-40
lines changed

pom.xml

Lines changed: 61 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -26,39 +26,63 @@
2626
</resource>
2727
</resources>
2828
<plugins>
29-
<plugin>
30-
<groupId>com.theoryinpractise</groupId>
31-
<artifactId>clojure-maven-plugin</artifactId>
32-
<version>1.3.7</version>
33-
<configuration>
34-
<sourceDirectories>
35-
<sourceDirectory>src</sourceDirectory>
36-
</sourceDirectories>
37-
<testSourceDirectories>
38-
<testSourceDirectory>test</testSourceDirectory>
39-
</testSourceDirectories>
40-
<clojureOptions>-Xmx512m -Djava.awt.headless=true -XX:MaxPermSize=256m</clojureOptions>
41-
<warnOnReflection>false</warnOnReflection>
42-
<compileDeclaredNamespaceOnly>true</compileDeclaredNamespaceOnly>
43-
<temporaryOutputDirectory>true</temporaryOutputDirectory>
44-
</configuration>
45-
<executions>
46-
<execution>
47-
<id>compile-clojure</id>
48-
<phase>compile</phase>
49-
<goals>
50-
<goal>compile</goal>
51-
</goals>
52-
</execution>
53-
<execution>
54-
<id>test-clojure</id>
55-
<phase>test</phase>
56-
<goals>
57-
<goal>test</goal>
58-
</goals>
59-
</execution>
60-
</executions>
61-
</plugin>
29+
<plugin>
30+
<groupId>org.cloudhoist.plugin</groupId>
31+
<artifactId>zi</artifactId>
32+
<version>${zi.version}</version>
33+
<dependencies>
34+
<dependency>
35+
<groupId>org.clojure</groupId>
36+
<artifactId>clojure</artifactId>
37+
<version>${clojure.version}</version>
38+
</dependency>
39+
<dependency>
40+
<groupId>ritz</groupId>
41+
<artifactId>ritz</artifactId>
42+
<version>${ritz.version}</version>
43+
</dependency>
44+
<dependency>
45+
<groupId>codox</groupId>
46+
<artifactId>codox</artifactId>
47+
<version>${codox.version}</version>
48+
</dependency>
49+
</dependencies>
50+
<executions>
51+
<!-- setup zi to process sources and test sources, and run tests -->
52+
<execution>
53+
<id>default-resources</id>
54+
<phase>process-resources</phase>
55+
<goals>
56+
<goal>resources</goal>
57+
</goals>
58+
</execution>
59+
<execution>
60+
<id>default-test-resources</id>
61+
<phase>process-test-resources</phase>
62+
<goals>
63+
<goal>testResources</goal>
64+
</goals>
65+
</execution>
66+
<execution>
67+
<id>default-test</id>
68+
<phase>test</phase>
69+
<goals>
70+
<goal>test</goal>
71+
</goals>
72+
</execution>
73+
<execution>
74+
<id>default-site</id>
75+
<phase>site</phase>
76+
<goals>
77+
<goal>marginalia</goal>
78+
<goal>codox</goal>
79+
</goals>
80+
<configuration>
81+
<copyright>Copyright (c) 2010, 2011, 2012 Hugo Duncan</copyright>
82+
</configuration>
83+
</execution>
84+
</executions>
85+
</plugin>
6286
<plugin>
6387
<artifactId>maven-jar-plugin</artifactId>
6488
<version>2.3.1</version>
@@ -111,13 +135,6 @@
111135
<optional>true</optional>
112136
<scope>test</scope>
113137
</dependency>
114-
<dependency>
115-
<groupId>swank-clojure</groupId>
116-
<artifactId>swank-clojure</artifactId>
117-
<version>1.3.1</version>
118-
<optional>true</optional>
119-
<scope>test</scope>
120-
</dependency>
121138
</dependencies>
122139

123140
<profiles>
@@ -155,5 +172,9 @@
155172
<clojure.version>1.2.0</clojure.version>
156173
<slingshot.version>0.2.0</slingshot.version>
157174
<jsch.version>0.1.48</jsch.version>
175+
<zi.version>0.4.5</zi.version>
176+
<codox.version>0.6.1</codox.version>
177+
<marginalia.version>0.7.0</marginalia.version>
178+
<ritz.version>0.2.1</ritz.version>
158179
</properties>
159180
</project>

0 commit comments

Comments
 (0)