-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·96 lines (80 loc) · 2.21 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
//https://ksah.in/introduction-to-web-scraping-with-java/
//https://github.com/ksahin/introWebScraping
/*
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'
*/
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.8'
id 'java'
id 'jacoco'
}
//sourceCompatibility = '1.8'
//targetCompatibility = '1.8'
repositories {
mavenCentral()
}
task debug(type:JavaExec) {
group 'application'
description 'debug'
jvmArgs '-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9099'
//main = 'comp3111.coursescraper.MyApplication'
main = 'main.Main'
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'
// testFX - https://github.com/TestFX/TestFX
testCompile group: 'org.testfx', name: 'testfx-junit', version : '4.0.15-alpha'
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/jacocoHTML")
}
}
configurations {
doc {
transitive false
}
}
javadoc {
options.charSet = 'UTF-8'
source configurations.doc.collect { zipTree(it) }
options.memberLevel = JavadocMemberLevel.PACKAGE
include '**/*.java'
options.addStringOption('Xdoclint:none', '-quiet')
}
jar {
baseName = 'courseScraper'
version = '0.1.0'
destinationDir = file("/")
manifest {
attributes 'Implementation-Title': baseName,
'Implementation-Version': version,
//'Main-Class': 'comp3111.coursescraper.MyApplication'
'Main-Class': 'main.Main'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
javafx {
version = "13.0.2"
modules = [ 'javafx.controls', 'javafx.fxml' ]
}
run {
if (javafx.platform.classifier == 'win') {
// Temporal fix for Eclipse with JDK 1.8 and Windows
systemProperty "java.library.path", "C:\tmp"
}
}
test {
testLogging.showStandardStreams = true
}
//mainClassName = 'comp3111.coursescraper.MyApplication'
mainClassName = 'main.Main'