-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
154 lines (133 loc) · 4.31 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/**
* A basic gradle build file for
* java based applications.
*
* For more details Please see:
* https://gradle.org/docs/current/userguide/userguide.html
* https://gradle.org/docs/current/userguide/tutorial_java_projects.html
*/
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'distribution'
apply plugin: 'application'
mainClassName='net.sharkfw.apps.fb.Bootstrap'
sourceCompatibility = 1.8
version = '0.1'
jar {
manifest {
attributes 'Implementation-Title': project.name, 'Implementation-Version': version
}
}
idea {
module {
downloadJavadoc = true
downloadSources = true
jdkName='1.8'
}
}
repositories {
mavenLocal()
maven { url "http://repo.springsource.org/libs-release" }
mavenCentral()
}
dependencies {
/**
* Local dependencies like the jar of the shark framework
*/
compile fileTree(dir: 'libs', include: '*.jar')
/**
* Required for generating the execution dag for the importers
*/
compile 'org.jgrapht:jgrapht-core:0.9.0'
/**
* Underlying Spring Framework dependencies
*/
compile 'org.springframework:spring-core:4.1.7.RELEASE'
compile 'org.springframework:spring-beans:4.1.7.RELEASE'
compile 'org.springframework:spring-expression:4.1.7.RELEASE'
compile 'org.springframework:spring-context:4.1.7.RELEASE'
compile 'org.springframework:spring-context-support:4.1.7.RELEASE'
/**
* Facebook API binding
*/
compile 'org.springframework.social:spring-social-facebook:2.0.1.RELEASE'
/**
* Logging dependencies, SLF4j is a nice logging facade which
* provides a abstraction for a variety of logging frameworks.
* So it is possible to receive logging messages from underlying
* libraries or frameworks which uses different logging implementations
* like jut, jcl, log4j and so on. Please see: http://www.slf4j.org/
* for more details.
*/
compile 'org.slf4j:slf4j-api:1.7.12'
compile 'org.slf4j:jcl-over-slf4j:1.7.12'
compile 'org.slf4j:jul-to-slf4j:1.7.12'
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.3'
compile 'org.apache.logging.log4j:log4j-core:2.3'
/**
* Testing dependencies
*/
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.0.7-beta'
testCompile 'org.springframework:spring-test:4.1.6.RELEASE'
testCompile 'org.skyscreamer:jsonassert:1.2.3'
}
javadoc {
description = "Generates aggregated Javadoc API documentation."
ext.javadocLinks = [
"http://docs.oracle.com/javase/8/docs/api/",
"http://docs.spring.io/spring/docs/4.1.7.RELEASE/javadoc-api/",
"http://docs.spring.io/spring-shell/docs/1.1.0.RELEASE/api/",
"http://www.sharksystem.net/javadoc/current/",
"http://jgrapht.org/javadoc/",
"http://www.slf4j.org/apidocs/index.html"
] as String[]
title = project.name + " - ${version}"
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PUBLIC
//options.overview ="docu/overview.html"
options.author = true
options.header = project.name
options.splitIndex = true
options.links(ext.javadocLinks)
options.addStringOption('Xdoclint:none', '-quiet')
options.quiet()
failOnError=false
maxMemory = "1024m"
/*
* Powered by:
* http://gradle.1045684.n5.nabble.com/aggregating-javadocs-td1433469.html
*/
source subprojects.collect { project -> project.sourceSets.main.allJava }
destinationDir = new File(buildDir, 'javadoc')
classpath = files(subprojects.collect {project ->
project.sourceSets.main.compileClasspath
})
}
distributions {
main {
contents {
into('conf') {
from('conf')
}
from('README.md')
from('LICENSE')
into('javadoc') {
from(javadoc)
}
}
}
}
task moreStartScripts(type: CreateStartScripts) {
mainClassName = "net.sharkfw.apps.fb.FacebookLogin"
applicationName = "login"
outputDir = new File(project.buildDir, 'scripts')
classpath = jar.outputs.files + project.configurations.runtime
}
applicationDistribution.into("bin") {
from(moreStartScripts)
fileMode = 0755
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}