-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
108 lines (95 loc) · 3.03 KB
/
Copy pathbuild.gradle
File metadata and controls
108 lines (95 loc) · 3.03 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
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
97
98
99
100
101
102
103
104
105
106
107
108
import io.github.fvarrui.javapackager.gradle.PackageTask
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'io.github.fvarrui:javapackager:1.4.0'
}
}
plugins {
id 'java'
}
subprojects {
group 'org.kascoder'
version = '1.0.1'
sourceCompatibility = 15
targetCompatibility = 15
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
}
apply plugin: 'io.github.fvarrui.javapackager.plugin'
task packageCliApp(type: PackageTask, dependsOn: build) {
version = '1.0.1'
mainClass = 'org.kascoder.vkex.VkExLauncher'
bundleJre = true
description = 'A simple app which allows to export attachments from your vkontakte conversations'
jreDirectoryName = 'jre'
organizationName = 'kascoder'
organizationUrl = 'https://vk.com/paul_kasper'
organizationEmail = 'kascoder@gmail.com'
customizedJre = false
platform = 'windows'
displayName = 'VkEx'
copyDependencies = false
outputDirectory = file('/build/artifacts')
assetsDir = file('/assets')
url = 'https://vk.com/public195065105'
runnableJar = file('/app/build/libs/vkex.jar')
generateInstaller = false
appName = 'vkex-cli'
vmArgs = ['-Dexecution.type=console']
winConfig {
headerType = 'console'
wrapJar = false
}
}
task packageDesktopApplication(type: PackageTask, dependsOn: packageCliApp) {
version = '1.0.1'
mainClass = 'org.kascoder.vkex.VkExLauncher'
bundleJre = true
description = 'A simple app which allows to export attachments from vkontakte conversations'
jreDirectoryName = 'jre'
organizationName = 'kascoder'
organizationUrl = 'https://vk.com/paul_kasper'
organizationEmail = 'kascoder@gmail.com'
customizedJre = false
platform = 'windows'
displayName = 'VkEx'
copyDependencies = false
outputDirectory = file('/build/artifacts')
assetsDir = file('/assets')
url = 'https://vk.com/public195065105'
runnableJar = file('/app/build/libs/vkex.jar')
appName = 'vkex'
generateInstaller = true
vmArgs = ['-Dexecution.type=gui']
additionalResources = [
file('/build/artifacts/vkex-cli/vkex-cli.exe'),
file('/build/artifacts/vkex-cli/vkex-cli.ico'),
file('/updater/build/libs/vkex-updater.jar')
]
winConfig {
headerType = 'gui'
wrapJar = false
generateSetup = true
generateMsi = false
generateMsm = false
disableDirPage = false
disableFinishedPage = false
createDesktopIconTask = true
setupLanguages = [
enlish : 'compiler:Default.isl',
russian: 'compiler:Languages\\Russian.isl',
ukrainian: 'compiler:Languages\\Ukrainian.isl'
]
}
}
task packageApplication(dependsOn: packageDesktopApplication)