Skip to content

Commit

Permalink
Local build with deps included
Browse files Browse the repository at this point in the history
Signed-off-by: Stuart Halloway <stu@cognitect.com>
  • Loading branch information
puredanger authored and stuarthalloway committed Nov 27, 2017
1 parent a19c369 commit 7ae47e6
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 13 deletions.
7 changes: 7 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,11 @@
</delete>
</target>

<target name="local">
<exec executable="mvn">
<arg value="-Plocal"/>
<arg value="-Dmaven.test.skip=true"/>
<arg value="package"/>
</exec>
</target>
</project>
41 changes: 41 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -315,5 +315,46 @@
</plugins>
</build>
</profile>
<profile>
<id>local</id>
<dependencies>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>test.check</artifactId>
<version>0.9.0</version>
<exclusions>
<exclusion>
<groupId>org.clojure</groupId>
<artifactId>clojure</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>clojure.main</mainClass>
</transformer>
</transformers>
<outputFile>clojure.jar</outputFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
29 changes: 16 additions & 13 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,32 @@
* the terms of this license.
* You must not remove this notice, or any other, from this software.

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

To run: java -cp clojure-${VERSION}.jar clojure.main

To build locally with Ant:
To build and run locally with Ant:

One-time setup: ./antsetup.sh
To build: ant
To build: ant local
To run: java -jar clojure.jar

Maven 2 build instructions:
To build locally with Maven:

To build: mvn package
The built JARs will be in target/
To build (output JARs in target/):
mvn package

To build without testing: mvn package -Dmaven.test.skip=true
To build without testing:
mvn package -Dmaven.test.skip=true

To build and install in local Maven repository: mvn install
To build and install in local Maven repository:
mvn install

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

To run with the standalone jar:
java -jar clojure.jar

--------------------------------------------------------------------------
This program uses the ASM bytecode engineering library which is distributed
Expand Down

0 comments on commit 7ae47e6

Please sign in to comment.