view build.gradle @ 213:6ec4af642ba8 gradle

Project uses Gradle for build - actual changes
author Alexander Kitaev <kitaev@gmail.com>
date Tue, 10 May 2011 10:52:53 +0200
parents
children
line wrap: on
line source
group = 'org.tmatesoft.hg4j'
version = '0.5.0'
target = '1.5'
release = false

buildscript {
    repositories {
        mavenRepo(urls: [buildPluginRepositoryURL]) {
            snapshotTimeout = org.gradle.api.internal.artifacts.ivyservice.GradleIBiblioResolver.ALWAYS
        }
    }
    dependencies { classpath 'org.tmatesoft.build:build:0.9.7-SNAPSHOT' }
}

task wrapper(type: Wrapper) {}

def javaProjects() {
    return [ project(':hg4j'), project(':hg4j-cli') ]
}

allprojects {
    apply plugin : 'base'
    apply plugin : 'build'
}

configure(javaProjects()) {
    apply plugin : 'java'

    sourceCompatibility = target
    targetCompatibility = target

    configurations {
        sources
        javadocs
    }

    task sourcesJar(type: Jar) {
        description = 'Builds Java Sources Jar'
        from sourceSets.main.java.srcDirs
        classifier = 'sources'
    }

    jar {
        metaInf {
            from rootProject.file('LICENSE.txt')
        }
    }

    artifacts { sources sourcesJar }
}

configure(javaProjects() + rootProject) {
    apply plugin : 'idea'
    apply plugin : 'eclipse'
}

project(':hg4j') {
    dependencies {
        testCompile 'junit:junit:4.8.2'
    }
}

project(':hg4j-cli') {
    dependencies {
        compile project(':hg4j')
    }
}