-
Notifications
You must be signed in to change notification settings - Fork 148
Expand file tree
/
Copy pathbuild.gradle
More file actions
50 lines (42 loc) · 1.03 KB
/
build.gradle
File metadata and controls
50 lines (42 loc) · 1.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
buildscript {
repositories {
mavenLocal()
}
dependencies {
classpath 'io.github.fvarrui:javapackager:1.7.7-SNAPSHOT'
}
}
plugins {
id 'application'
}
apply plugin: 'io.github.fvarrui.javapackager.plugin'
version = '1.0.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
// Include a dependency to ensure that dependency packaging works correctly
implementation 'org.apache.commons:commons-lang3:3.20.0'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
application {
mainClass = 'org.example.App'
}
tasks.register("packageForMac", io.github.fvarrui.javapackager.gradle.PackageTask) {
dependsOn(tasks.build)
mainClass = 'org.example.App'
bundleJre = true
generateInstaller = true
administratorRequired = false
platform = "mac"
macConfig {
appId = "org.example.javapackagerdemo"
generateDmg = true
generatePkg = true
macStartup = io.github.fvarrui.javapackager.model.MacStartup.UNIVERSAL
}
}