-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (42 loc) · 1.22 KB
/
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
46
47
48
49
50
51
52
def _scripts = System.getenv('CG_CM_SCRIPTS_HOME') ?: 'D:/CG/src/cg-cm/cg-cm-scripts'
ext.scripts = project.hasProperty('superpom') ? project.superpom : "$_scripts/gradlebuild"
logger.info "Calculated 'superpom' location: $scripts"
File f = null
try {
f = file("$scripts/repos.gradle")
} catch (e) {}
allprojects {
group = 'ee.email'
version = '1.0-SNAPSHOT'
defaultTasks 'build','install'
}
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'maven-publish'
sourceCompatibility = 1.7
[ compileJava, compileTestJava ]*.options*.encoding = 'UTF-8'
dependencies {
compile "org.slf4j:slf4j-api:1.7.12"
testCompile 'junit:junit:4.10'
}
if(f && f.exists()) {
apply from: f.absolutePath
} else {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/releases" }
}
}
jar {
manifest.attributes provider: 'Eugeis Software'
}
task cleanAll << { task ->
['bin','target','build','dist','temp','dist.zip'].each { name ->
def file = new File("$task.project.name/$name")
if(file.exists()) if(file.isDirectory())file.deleteDir() else file.delete()
}
}
}