forked from mohitkgupta/expressionoasis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (63 loc) · 2.46 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
/*
* Download Gradle and add its bin folder to classpath
* use 'gradle tasks' to see the available tasks
* use 'gradle eclipse' for generating eclipse project file
* use 'gradle javadoc' to generate the api docs in '\build\docs\javadoc' folder
* use 'gradle test' to run the junit test cases and to generate the reports in '\build\reports\tests'
* use 'gradle build' to run the complete build, jars will be generated in '\build\libs'
* use 'gradle distZip' to generate jar in 'build\distributions' folder
* use 'gradle checkstyleMain to run checkstyle, commented as of now - config needs improvement
*/
apply plugin: 'java'
// run 'gradle eclipse' command to generate eclipse project files
apply plugin: 'eclipse'
// run 'gradle checkstyleMain
//apply plugin: 'checkstyle'
// plugin for creating java distribution in 'build\distributions'
apply plugin: 'java-library-distribution'
// plugin to generate dashboard for all project reports in 'build\reports\buildDashboard'
apply plugin: 'build-dashboard'
sourceCompatibility = 1.7
version = 3.2
repositories {
mavenCentral()
}
// Task to create the jar for expressionoasis
jar {
baseName = 'expressionoasis'
// http://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html#Main_Attributes
manifest {
attributes("Implementation-Title": "ExpressionOasis",
"Implementation-Version": version)
}
}
// Define dependencies here
dependencies {
// compile fileTree(dir: 'lib', include: '*.jar')
compile (
[group: 'commons-logging', name: 'commons-logging', version: '1.1.3'],
[group: 'log4j', name: 'log4j', version: '1.2.17'],
[group: 'org.simpleframework', name: 'simple-xml', version: '2.3.6'],
[group: 'xerces', name: 'xercesImpl', version: '2.7.1'],
[group: 'xalan', name: 'xalan', version: '2.6.0'],
[group: 'javassist', name: 'javassist', version: '3.8.0.GA'],
[group: 'junit', name: 'junit', version: '4.8.1']
)
//runtime files('lib/a.jar', 'lib/b.jar')
//compile files('lib/local-dependency.jar')
}
distributions {
main {
baseName = 'expressionoasis'
contents {
from { 'readme.txt' }
from { 'ReleaseNotes.txt' }
from { 'docs/Project Description.txt' }
from { 'build/docs' }
}
}
}
// To run the gradle build without installing gradle
// task wrapper(type: Wrapper) {
// gradleVersion = '1.11'
// }