Difference between revisions of "Gradle"
Line 4: | Line 4: | ||
==Sample ImageJ build.gradle== | ==Sample ImageJ build.gradle== | ||
+ | |||
+ | Contributed<sup>[https://github.com/imagej/imagej-tutorials/issues/24 1]</sup> by {{Person|reckbo}} | ||
<source lang="groovy"> | <source lang="groovy"> |
Revision as of 08:03, 8 December 2015
Gradle is an open-source build system using a Groovy-based script syntax as a succinct alternative to the XML of Ant or Maven.
The ImageJ core artifacts are built with Maven, but can also be consumed in a Gradle buildscript.
Sample ImageJ build.gradle
buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "io.spring.gradle:dependency-management-plugin:0.5.4.RELEASE" } } apply plugin: "io.spring.dependency-management" repositories { jcenter() maven { url "http://maven.imagej.net/content/groups/public/" } } dependencyManagement { imports { mavenBom 'net.imagej:pom-imagej:14.1.0' } } dependencies { compile 'net.imagej:imagej' }