-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (49 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
53
54
55
56
57
58
59
60
file('build.properties').withReader {
def prop = new Properties()
prop.load it
project.ext.config = new ConfigSlurper().parse prop
}
buildscript {
repositories {
maven {
url "https://maven.eveoh.nl/content/repositories/releases"
}
}
dependencies {
classpath "nl.eveoh:gradle-aspectj:1.5"
}
}
project.ext.aspectjVersion = config.version_aspectj
apply plugin: 'java'
apply plugin: 'aspectj'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
version = config.version
group = config.group
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile([group: 'org.apache.commons', name: 'commons-lang3', version: config.version_commons_lang])
}
jar {
manifest {
if (!config.mainClass.isEmpty()) attributes "Main-Class": config.mainClass
}
}
task testJar(type: Jar, dependsOn: javadoc) {
from sourceSets.main.output
from sourceSets.test.output
classifier = 'test'
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from 'build/docs/javadoc'
classifier = 'javadoc'
}
build.dependsOn testJar, sourceJar, javadocJar