-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
70 lines (58 loc) · 1.86 KB
/
build.gradle.kts
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
plugins {
kotlin("jvm") version "1.8.10"
id("edu.sc.seis.launch4j") version "2.5.4"
}
group = "scraper"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
//Jackson - Serialize/Deserialize
implementation("com.fasterxml.jackson.core:jackson-core:2.14.2")
implementation("com.fasterxml.jackson.core:jackson-annotations:2.14.2")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.2")
//Emulate Web Browser - Some proxy sites require JavaScript
implementation("org.seleniumhq.selenium:selenium-chrome-driver:4.8.0")
implementation("org.seleniumhq.selenium:selenium-devtools-v109:4.8.0")
//Reflection for Plugins
implementation("org.reflections:reflections:0.10.2")
//Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
//Logging
implementation("io.github.microutils:kotlin-logging-jvm:3.0.5")
implementation("ch.qos.logback:logback-classic:1.4.5")
}
tasks.test {
useJUnitPlatform()
}
launch4j {
mainClassName = "scraper.Main"
headerType = "console"
bundledJrePath = "jre11"
bundledJre64Bit = true
fileDescription = "Proxy Scraping Tool - https://github.com/jetkai/proxy-scraper"
productName = "Proxy Scraper"
copyright = "MIT License"
companyName = "jetkai"
version = "1.0"
textVersion = "1.0"
language = "ENGLISH_UK"
}
lateinit var jarFile: File
tasks.withType<Jar> {
archiveFileName.set("proxy-scraper.jar")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes["Main-Class"] = "scraper/Main"
}
from(sourceSets.main.get().output)
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
jarFile = archiveFile.get().asFile
}
kotlin {
jvmToolchain(11)
}