elveos

elveos Git Source Tree

Root/build.gradle

1
2allprojects {
3    task log << { task -> println "Building $task.project.name" }
4}
5
6subprojects {
7    apply plugin: 'java'
8    apply plugin: 'eclipse'
9
10    repositories {
11       mavenLocal()
12       mavenCentral()
13    }
14
15    dependencies {
16    }
17    
18    sourceCompatibility = 1.6
19    version = '1.1.7'
20
21    jar {
22        // TODO : see if there are other manifest to add.
23        manifest.attributes provider: 'gradle'
24    }
25    
26    test {
27        systemProperties 'masterPassword': 'plop'
28    }
29    
30    task generateBuildProperties(){
31        File buildProperties = file('src/main/resources/build.properties')
32    buildProperties.getParentFile().mkdirs()
33
34        FileWriter w = new FileWriter(buildProperties)
35        w.write("project.version=$version\n")
36        w.close()
37    }
38
39    compileJava.dependsOn 'generateBuildProperties'
40
41// uploadArchives {
42// repositories {
43// flatDir(dirs: file('repos'))
44// }
45}
46
47

Archive Download this file