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