Skip to content

Commit 7ae47e6

Browse files
puredangerstuarthalloway
authored andcommitted
Local build with deps included
Signed-off-by: Stuart Halloway <[email protected]>
1 parent a19c369 commit 7ae47e6

3 files changed

Lines changed: 64 additions & 13 deletions

File tree

build.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,11 @@
194194
</delete>
195195
</target>
196196

197+
<target name="local">
198+
<exec executable="mvn">
199+
<arg value="-Plocal"/>
200+
<arg value="-Dmaven.test.skip=true"/>
201+
<arg value="package"/>
202+
</exec>
203+
</target>
197204
</project>

pom.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,5 +315,46 @@
315315
</plugins>
316316
</build>
317317
</profile>
318+
<profile>
319+
<id>local</id>
320+
<dependencies>
321+
<dependency>
322+
<groupId>org.clojure</groupId>
323+
<artifactId>test.check</artifactId>
324+
<version>0.9.0</version>
325+
<exclusions>
326+
<exclusion>
327+
<groupId>org.clojure</groupId>
328+
<artifactId>clojure</artifactId>
329+
</exclusion>
330+
</exclusions>
331+
</dependency>
332+
</dependencies>
333+
<build>
334+
<plugins>
335+
<plugin>
336+
<groupId>org.apache.maven.plugins</groupId>
337+
<artifactId>maven-shade-plugin</artifactId>
338+
<version>3.1.0</version>
339+
<executions>
340+
<execution>
341+
<phase>package</phase>
342+
<goals>
343+
<goal>shade</goal>
344+
</goals>
345+
<configuration>
346+
<transformers>
347+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
348+
<mainClass>clojure.main</mainClass>
349+
</transformer>
350+
</transformers>
351+
<outputFile>clojure.jar</outputFile>
352+
</configuration>
353+
</execution>
354+
</executions>
355+
</plugin>
356+
</plugins>
357+
</build>
358+
</profile>
318359
</profiles>
319360
</project>

readme.txt

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,32 @@
77
* the terms of this license.
88
* You must not remove this notice, or any other, from this software.
99

10-
Docs: http://clojure.org
10+
Docs: https://clojure.org
1111
Feedback: http://groups.google.com/group/clojure
12-
Getting Started: http://dev.clojure.org/display/doc/Getting+Started
12+
Getting Started: https://clojure.org/guides/getting_started
1313

14-
To run: java -cp clojure-${VERSION}.jar clojure.main
15-
16-
To build locally with Ant:
14+
To build and run locally with Ant:
1715

1816
One-time setup: ./antsetup.sh
19-
To build: ant
17+
To build: ant local
18+
To run: java -jar clojure.jar
2019

21-
Maven 2 build instructions:
20+
To build locally with Maven:
2221

23-
To build: mvn package
24-
The built JARs will be in target/
22+
To build (output JARs in target/):
23+
mvn package
2524

26-
To build without testing: mvn package -Dmaven.test.skip=true
25+
To build without testing:
26+
mvn package -Dmaven.test.skip=true
2727

28-
To build and install in local Maven repository: mvn install
28+
To build and install in local Maven repository:
29+
mvn install
2930

30-
To build a ZIP distribution: mvn package -Pdistribution
31-
The built .zip will be in target/
31+
To build a standalone jar with dependencies included:
32+
mvn -Plocal -Dmaven.test.skip=true package
3233

34+
To run with the standalone jar:
35+
java -jar clojure.jar
3336

3437
--------------------------------------------------------------------------
3538
This program uses the ASM bytecode engineering library which is distributed

0 commit comments

Comments
 (0)