Mercurial > hg4j
comparison 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 |
comparison
equal
deleted
inserted
replaced
212:edb2e2829352 | 213:6ec4af642ba8 |
---|---|
1 group = 'org.tmatesoft.hg4j' | |
2 version = '0.5.0' | |
3 target = '1.5' | |
4 release = false | |
5 | |
6 buildscript { | |
7 repositories { | |
8 mavenRepo(urls: [buildPluginRepositoryURL]) { | |
9 snapshotTimeout = org.gradle.api.internal.artifacts.ivyservice.GradleIBiblioResolver.ALWAYS | |
10 } | |
11 } | |
12 dependencies { classpath 'org.tmatesoft.build:build:0.9.7-SNAPSHOT' } | |
13 } | |
14 | |
15 task wrapper(type: Wrapper) {} | |
16 | |
17 def javaProjects() { | |
18 return [ project(':hg4j'), project(':hg4j-cli') ] | |
19 } | |
20 | |
21 allprojects { | |
22 apply plugin : 'base' | |
23 apply plugin : 'build' | |
24 } | |
25 | |
26 configure(javaProjects()) { | |
27 apply plugin : 'java' | |
28 | |
29 sourceCompatibility = target | |
30 targetCompatibility = target | |
31 | |
32 configurations { | |
33 sources | |
34 javadocs | |
35 } | |
36 | |
37 task sourcesJar(type: Jar) { | |
38 description = 'Builds Java Sources Jar' | |
39 from sourceSets.main.java.srcDirs | |
40 classifier = 'sources' | |
41 } | |
42 | |
43 jar { | |
44 metaInf { | |
45 from rootProject.file('LICENSE.txt') | |
46 } | |
47 } | |
48 | |
49 artifacts { sources sourcesJar } | |
50 } | |
51 | |
52 configure(javaProjects() + rootProject) { | |
53 apply plugin : 'idea' | |
54 apply plugin : 'eclipse' | |
55 } | |
56 | |
57 project(':hg4j') { | |
58 dependencies { | |
59 testCompile 'junit:junit:4.8.2' | |
60 } | |
61 } | |
62 | |
63 project(':hg4j-cli') { | |
64 dependencies { | |
65 compile project(':hg4j') | |
66 } | |
67 } |