-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
50 lines (40 loc) · 1.29 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
//https://ksah.in/introduction-to-web-scraping-with-java/
//https://github.com/ksahin/introWebScraping
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'
jar {
baseName = 'webscraper'
version = '0.1.0'
destinationDir = file("${buildDir}/jar")
manifest {
attributes 'Implementation-Title': baseName,
'Implementation-Version': version,
'Main-Class': 'comp3111.webscraper.WebScraperApplication'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
mainClassName = 'comp3111.webscraper.WebScraperApplication'
repositories {
mavenCentral()
}
task debug(type:JavaExec) {
group 'application'
description 'debug'
jvmArgs '-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9099'
main = 'comp3111.webscraper.WebScraperApplication'
classpath = sourceSets.main.runtimeClasspath
}
dependencies {
// https://mvnrepository.com/artifact/net.sourceforge.htmlunit/htmlunit
compile group: 'net.sourceforge.htmlunit', name: 'htmlunit', version: '2.31'
// https://mvnrepository.com/artifact/junit/junit
testCompile group: 'junit', name: 'junit', version: '4.12'
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/jacocoHTML")
}
}