Page history Edit this page How do I edit this website?
Original MediaWiki page

Gradle

The content of this page has not been vetted since shifting away from MediaWiki. If you’d like to help, check out the how to help guide!

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 build script.

Sample ImageJ build.gradle

Contributed1 by Ryan Eckbo

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 "https://maven.scijava.org/content/groups/public/"
    }
}
dependencyManagement {
    imports {
        mavenBom 'net.imagej:pom-imagej:14.1.0'
    }
}

dependencies {
    compile 'net.imagej:imagej'
}