-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (59 loc) · 1.87 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
def javaProjects() {
subprojects.findAll { project -> project.name != 'docs' }
}
defaultTasks 'clean', 'build'
configure(javaProjects()) {
apply plugin: 'java'
apply plugin: 'osgi'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply from: 'https://github.com/breskeby/gradleplugins/raw/master/emmaPlugin/emma.gradle'
eclipse.classpath.downloadSources = false
sourceCompatibility = '1.6'
ext.vendorName = 'Semagia'
ext.vendorURL = 'http://www.semagia.com/'
ext.licenseName = 'Apache Software License, Version 2.0'
ext.licenseURL = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
group = 'com.semagia.cassa'
defaultTasks 'clean', 'build'
gradle.taskGraph.whenReady {taskGraph ->
if (!taskGraph.hasTask(':release')) {
version += '-SNAPSHOT'
}
}
repositories {
mavenCentral()
maven { url 'http://download.java.net/maven/2/' }
maven { url 'http://www.tmapi.org/maven-repository/' }
maven { url 'http://tinytim.sourceforge.net/maven-repository/snapshots/' }
maven { url 'http://repository.semagia.com/snapshots/' }
maven { url 'http://repository.semagia.com/releases/' }
maven { url 'https://repository.apache.org/content/groups/public/' }
maven { url 'https://oss.sonatype.org/content/groups/public/' }
}
dependencies {
emma 'emma:emma:2.0.5312', 'emma:emma_ant:2.0.5312'
testCompile 'junit:junit:4.8.2'
}
javadoc {
project.configure(options) {
charSet = 'UTF-8'
author = true
version = true
use = true
}
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
}