-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
43 lines (36 loc) · 903 Bytes
/
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
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'edu.sc.seis.launch4j' version '2.5.4'
id 'java'
}
group 'me.vlod'
version '2.5.2'
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation "org.jsoup:jsoup:1.15.4"
implementation "org.json:json:20220320"
}
java {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
withSourcesJar()
}
jar {
manifest {
attributes("Main-Class": "me.vlod.lightshotscraper.LightshotScraper")
}
}
build {
dependsOn shadowJar
dependsOn createExe
}
launch4j {
headerType="gui"
mainClassName = "me.vlod.lightshotscraper.LightshotScraper"
outfile = "${archivesBaseName}-${project.version}.exe"
icon = "${projectDir}/src/main/resources/Icon.ico"
jar = "../libs/${archivesBaseName}-${project.version}-all.jar"
}