Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README.md with new build instructions for Gradle

  • Loading branch information...
commit 39edbc8c32d28945eabe4e610a7e4c08c701f9e0 1 parent 7b5b818
@melix melix authored
Showing with 29 additions and 16 deletions.
  1. +29 −16 README.md
View
45 README.md
@@ -7,38 +7,51 @@
Building
---
-To build you will need:
+_Starting from Groovy 2.0-0-rc-1, the Ant build is no longer supported_
-* [JDK 1.5+](http://www.oracle.com/technetwork/java/javase/downloads)
+To build you will need:
-Plus one of the following (Gradle will download itself if needed):
+* [JDK 1.7+](http://www.oracle.com/technetwork/java/javase/downloads)
-* [Apache Ant 1.7+](http://ant.apache.org)
-* [Gradle 0.9.2+](http://gradle.org/)
For detailed instructions please see:
* [http://groovy.codehaus.org/Building+Groovy+from+Source](http://groovy.codehaus.org/Building+Groovy+from+Source)
-To build everything using ant (including running tests and creating a complete installation):
+To build everything using Gradle (the command below will download Gradle automatically, you do not need to download it first).
+
+ ./gradlew clean dist
- ant install
+This will generate a distribution similar to the zip you can download on the Groovy download page.
-To build without running tests or creating OSGi information:
+To build everything and launch unit tests, use
- ant install -DskipTests=true -DskipOsgi=true
+ ./gradlew test
-To run tests from gradle (will download gradle the first time):
+To build from IntelliJ IDEA
- gradlew test
+ ./gradlew idea
+ ./gradlew jarAll
+
+Then open the generated project in IDEA.
To build from Eclipse:
-* ant install
-* ensure that the M2_REPO classpath variable exists and points to the correct place (typically ~/.m2/repository)
- * To Change this, go to Preferences -> Java -> Build Path -> Classpath variables
-* Project -> Clean... and then build. Should compile with no errors. But if there are errors, then send a message to the groovy users mailing list
-* You will *not* be able to run the tests from inside of Eclipse.
+TBD
+
+
+InvokeDynamic support
+---
+
+The Groovy build supports the new Java 7 JVM instruction ```invokedynamic```. If you want to build Groovy with invokedynamic, you can use the project property ```indy```:
+
+ ./gradlew -Pindy=true clean test
+
+Please note that the following Gradle tasks generate both indy and non indy variants of the jars, so you don't need to use the system property:
+
+* dist
+* install
+* uploadArchives
License
---
Please sign in to comment.
Something went wrong with that request. Please try again.