forked from sagersmith8/machine_learning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
114 lines (100 loc) · 2.89 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
/*
=========================================================
Apply Plugins
=========================================================
*/
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.2.RELEASE")
}
}
/*
=========================================================
Apply plugins
=========================================================
*/
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'org.springframework.boot'
/*
=========================================================
Repo Info
=========================================================
*/
group = 'com.ai'
description = 'Experiment with Machine Learning techniques'
/*
=========================================================
Create self contained jar
=========================================================
*/
def artifactName = 'machine_learning'
springBoot {
mainClass = "com.machine.learning.Main"
}
task generatePom << {
pom {
project {
artifactId = artifactName
name = artifactName
}
}.writeTo("$buildDir/tmp/maven/pom.xml")
}
jar {
baseName = artifactName
manifest {
attributes(
"Implementation-Title": baseName,
"Implementation-Version": version,
)
}
into("META-INF/maven/$project.group/$baseName") {
from "$buildDir/tmp/maven/"
}
}
jar.dependsOn generatePom
/*
=========================================================
Javadocs Generation
=========================================================
*/
task docs(type: Javadoc) {
source = sourceSets.main.allJava
destinationDir = file("$project.buildDir/javadocs")
failOnError = false
}
task docBundle(type: Tar) {
baseName = artifactName
version = project.version
extension = "tar.gz"
classifier = "javadoc"
destinationDir = file("$buildDir/")
from(project.files("$buildDir/javadocs"))
}
docBundle.dependsOn docs
/*
/*
=========================================================
Load Dependencies
=========================================================
*/
repositories {
mavenCentral()
}
dependencies {
compile(group: "org.springframework.boot", name: "spring-boot-starter-web") {
exclude(module: "spring-boot-starter-tomcat")
exclude(group: "org.hibernate")
}
compile(group: 'net.sf.jopt-simple', name: 'jopt-simple', version: '5.0.1')
compile group: 'com.google.guava', name: 'guava', version: '19.0'
compile (group: 'com.github.rschmitt', name: 'dynamic-object', version: '1.6.0')
compile(group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3')
compile(group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3')
testCompile(group: 'junit', name: 'junit', version: '4.12')
testCompile(group: 'org.mockito', name: 'mockito-core', version: '1.8.5')
}