kitaev@213: group = 'org.tmatesoft.hg4j' kitaev@213: version = '0.5.0' kitaev@213: target = '1.5' kitaev@213: release = false kitaev@213: kitaev@213: buildscript { kitaev@213: repositories { kitaev@213: mavenRepo(urls: [buildPluginRepositoryURL]) { kitaev@213: snapshotTimeout = org.gradle.api.internal.artifacts.ivyservice.GradleIBiblioResolver.ALWAYS kitaev@213: } kitaev@213: } kitaev@213: dependencies { classpath 'org.tmatesoft.build:build:0.9.7-SNAPSHOT' } kitaev@213: } kitaev@213: kitaev@213: task wrapper(type: Wrapper) {} kitaev@213: kitaev@213: def javaProjects() { kitaev@213: return [ project(':hg4j'), project(':hg4j-cli') ] kitaev@213: } kitaev@213: kitaev@213: allprojects { kitaev@213: apply plugin : 'base' kitaev@213: apply plugin : 'build' kitaev@213: } kitaev@213: kitaev@213: configure(javaProjects()) { kitaev@213: apply plugin : 'java' kitaev@213: kitaev@213: sourceCompatibility = target kitaev@213: targetCompatibility = target kitaev@213: kitaev@213: configurations { kitaev@213: sources kitaev@213: javadocs kitaev@213: } kitaev@213: kitaev@213: task sourcesJar(type: Jar) { kitaev@213: description = 'Builds Java Sources Jar' kitaev@213: from sourceSets.main.java.srcDirs kitaev@213: classifier = 'sources' kitaev@213: } kitaev@213: kitaev@213: jar { kitaev@213: metaInf { kitaev@213: from rootProject.file('LICENSE.txt') kitaev@213: } kitaev@213: } kitaev@213: kitaev@213: artifacts { sources sourcesJar } kitaev@213: } kitaev@213: kitaev@213: configure(javaProjects() + rootProject) { kitaev@213: apply plugin : 'idea' kitaev@213: apply plugin : 'eclipse' kitaev@213: } kitaev@213: kitaev@213: project(':hg4j') { kitaev@213: dependencies { kitaev@213: testCompile 'junit:junit:4.8.2' kitaev@213: } kitaev@213: } kitaev@213: kitaev@213: project(':hg4j-cli') { kitaev@213: dependencies { kitaev@213: compile project(':hg4j') kitaev@213: } kitaev@213: }