-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
42 lines (36 loc) · 1.03 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
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = '1.0'
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
test {
forkEvery = 1
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.12'
compile 'org.slf4j:slf4j-api:1.7.12', 'ch.qos.logback:logback-classic:1.1.3'
compile 'org.jsoup:jsoup:1.8.2', 'commons-validator:commons-validator:1.4.1'
compile 'org.hibernate:hibernate-core:4.3.10.Final', 'org.hibernate:hibernate-entitymanager:4.3.10.Final'
compile 'com.h2database:h2:1.3.176'
}
task fatJar(type: Jar) {
System.setProperty('org.jboss.logging.provider', 'slf4j')
manifest {
attributes 'Implementation-Title': 'Web Crawler',
'Implementation-Version': version,
'Main-Class': 'ru.webcrawler.Main'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}