forked from zhugf/java-trader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
89 lines (78 loc) · 2.2 KB
/
build.gradle
File metadata and controls
89 lines (78 loc) · 2.2 KB
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
subprojects {
apply plugin: "eclipse"
apply plugin: 'java'
apply plugin: "maven"
apply plugin: 'maven-publish'
group = 'trader'
version = '1.0.0'
ext {
jtraderCommonVersion = '1.0.0.0-20180920'
jctpLinuxVersion = '6.3.11-20180109-linux_x64'
gsonVersion = '2.8.5'
juntVersion = '4.12'
mysqlVersion = '8.0.8-dmr'
ta4jVersion = '0.12-javatrader'
commonsTextVersion = '1.4'
commonsCliVersion = '1.4'
commonsVFSVersion = '2.2'
jsoupVersion = '1.11.3'
httpcomponentVersion = '4.5.5'
jdom2Verson = '2.0.6'
slf4jVersion = '1.7.25'
springBootVersino = '2.1.0.RELEASE'
fastUtilVersion = '8.2.2'
rocksdbVersion = '5.14.2'
reflectionsVersion = '0.9.11'
disruptorVersion = '3.4.2'
groovyVersion = '2.5.4'
}
ext.gitRevision = "git rev-parse --short HEAD".execute().text.trim()
sourceCompatibility = 11
targetCompatibility = 11
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
jar {
manifest {
attributes(
"Implementation-Title": project.group+"."+archivesBaseName,
"Implementation-Version": project.version,
'Built-Time': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
'GIT-Revision': gitRevision
)
}
}
repositories {
mavenLocal()
mavenCentral()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId archivesBaseName
from components.java
}
}
repositories {
mavenLocal()
}
}
//Export all classpath entries
eclipse {
classpath {
downloadSources=true
file {
withXml {
xml -> xml.asNode().classpathentry.findAll{
it.@kind == 'lib' || it.@kind == 'src'
}.each{
it.@exported = 'true'
}
}
}
}
}
}