Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
51 lines (44 loc) · 1.59 KB
/
Copy pathbuild.gradle
File metadata and controls
51 lines (44 loc) · 1.59 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
plugins {
id 'groovy'
id 'application'
}
def projectName = 'techmap-scraping-system'
mainClassName = 'io.techmap.scrape.Main'
version = '0.11.0'
repositories {
mavenCentral()
mavenLocal()
jcenter()
}
dependencies {
// Use the latest Groovy version for building this library
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '3.0.7'
// Data related Access
compile group: 'org.mongodb', name: 'mongo-java-driver', version: '3.12.7'
// HTTP access - for Website interaction
compile group: 'org.jsoup', name: 'jsoup', version: '1.13.1'
compile group: 'org.gebish', name: 'geb-core', version: '4.0'
compile group: 'org.seleniumhq.selenium', name: 'selenium-support', version: '3.141.59'
compile group: 'org.seleniumhq.selenium', name: 'selenium-chrome-driver', version: '3.141.59'
// Logging
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.30' // to suppress mongodb logs etc.
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.13.3'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.13.3'
}
jar {
archiveBaseName = "$projectName"
archiveVersion = "$version"
zip64 = true
outputs.cacheIf { true }
manifest {
attributes (
"Implementation-Title": "Gradle",
"Implementation-Version": archiveVersion,
'Main-Class': "$mainClassName",
'Multi-Release': 'true' // needed to remove "Reflection.getCallerClass is not supported" warning in production
)
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}