forked from icreator/dex-trader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
122 lines (100 loc) · 2.84 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
import org.ajoberstar.grgit.Grgit
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.ajoberstar:grgit:1.7.2'
}
}
plugins {
id 'java'
id 'idea'
id 'groovy'
// id 'org.springframework.boot' version '2.1.4.RELEASE'
}
//apply plugin: 'io.spring.dependency-management'
//apply plugin: 'org.springframework.boot'
repositories {
mavenCentral()
maven {
url "https://artifacts.alfresco.com/nexus/content/repositories/public/"
}
}
ext {
//git = org.ajoberstar.grgit.Grgit.open()
slf4jVersion = '1.7.25'
git = Grgit.open(dir: rootProject.rootDir)
//rev = git.head().id
//rev = git.head().getAbbreviatedId(8)
springbootVersion = '2.1.4.RELEASE'
}
group 'org.erachain'
version ''
sourceCompatibility = 1.8
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'TRADER/resources'
}
}
test {
java {
srcDir 'src/test/java'
}
resources {
srcDir 'TRADER/resources'
}
}
}
//bootJar {
jar {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
//mainClassName = "org.erachain.dextrader.Start"
baseName = "dextrader"
destinationDir project.file('build/libs/DEXTrader')
manifest{
attributes(
'Main-Class': 'org.erachain.dextrader.Start',
'Implementation-Title' : 'Gradle Build: ' + project.name,
'Implementation-Version' : project.version,
'Build-Time' : new Date().format("yyyy-MM-dd HH:mm:ssZ"),
// 'Git-Commit': git.head().abbreviatedId,
// 'Git-Branch': git.branch.current().name
)
}
exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA'
}
dependencies {
//implementation 'org.springframework.boot:spring-boot-starter'
//testImplementation 'org.springframework.boot:spring-boot-starter-test'
testCompile group: 'junit', name: 'junit', version: '4.12'
// compile "org.springframework.boot:spring-boot-starter-web:${springbootVersion}"
// compile "org.springframework.boot:spring-boot:${springbootVersion}"
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
compile group: 'com.google.guava', name: 'guava', version: '19.0'
compile "org.slf4j:slf4j-log4j12:${slf4jVersion}"
}
task CopyResourse {
copy {
from 'TRADER'
into 'build/libs/DEXTrader'
include '*orig.json', '*readme.txt', 'run.bat'
//include 'run.but'
}
copy {
from 'TRADER/resources'
into 'build/libs/DEXTrader/resources'
}
}
task CreateZip(type: Zip) {
from 'build/libs/'
include 'DEXTrader/'
archiveName 'DEXTrader' + '.zip'
destinationDir(file('build/libs/'))
}