This repository has been archived by the owner on Aug 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
105 lines (81 loc) · 2.83 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
buildscript {
ext { springBootVersion = '2.1.3.RELEASE'
hibernateVersion = '5.11.0.Final'
httpClientVersion = '4.5.6'
swaggerVersion = '2.9.2'
jgitVersion = '5.2.0.201812061821-r'
}
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
maven { url 'https://jitpack.io' }
jcenter()
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
jar {
baseName = 'turing-nutch'
version = '0.3.3'
}
configurations {
localDeps
jar.archiveName = 'indexer-viglet-turing.jar'
}
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
maven { url 'https://jitpack.io' }
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task stage(dependsOn: ['build', 'clean'])
task copyLibs(type: Copy) {
configurations.localDeps.setCanBeResolved(true)
from configurations.localDeps
into '$buildDir/extracted_dist/indexer-viglet-turing/'
from "plugin.xml"
into "$buildDir/extracted_dist/indexer-viglet-turing/"
from "$buildDir/libs/indexer-viglet-turing.jar"
into "$buildDir/extracted_dist/indexer-viglet-turing/"
}
task copyConfs(type: Copy) {
configurations.localDeps.setCanBeResolved(true)
from "conf"
into "$buildDir/extracted_dist/conf/"
}
task packageDistribution(type: Zip) {
archiveFileName = "turing-nutch.zip"
destinationDirectory = file("$buildDir/dist")
from "$buildDir/extracted_dist"
}
copyConfs.dependsOn build
copyLibs.dependsOn copyConfs
packageDistribution.dependsOn copyLibs
build.dependsOn
build.mustRunAfter clean
dependencies {
implementation group: 'org.apache.nutch', name: 'nutch', version: '1.18'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.8'
implementation group: 'org.apache.solr', name: 'solr-solrj', version: "8.5.1"
implementation group: 'org.apache.httpcomponents', name: 'httpcore', version:"4.4.12"
implementation group: 'org.apache.httpcomponents', name: 'httpmime', version:"4.5.10"
implementation group: 'org.apache.hadoop', name: 'hadoop-core', version: '0.20.2'
implementation group: 'org.apache.hadoop', name: 'hadoop-common', version: '3.1.3'
implementation group: 'com.github.openturing', name: 'turing-java-sdk', version: '0.3.3'
localDeps group: 'org.apache.solr', name: 'solr-solrj', version: "8.5.1"
localDeps group: 'org.apache.httpcomponents', name: 'httpcore', version:"4.4.12"
localDeps group: 'org.apache.httpcomponents', name: 'httpmime', version:"4.5.10"
localDeps group: 'com.github.openturing', name: 'turing-java-sdk', version: '0.3.3'
}
test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
}