You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -126,10 +118,6 @@ And execute the next command in project's root folder:
126
118
gradle packageMyApp
127
119
```
128
120
129
-
### Package your app via CI
130
-
131
-
-**GitHub:** You can find an example workflow file [here](https://github.com/fvarrui/JavaPackager/blob/pr-248/test/hello-world-maven/.github/workflows/package.yml).
132
-
133
121
### Generated artifacts
134
122
135
123
By default it will generate next artifacts in `${outputDirectory} ` folder:
@@ -173,25 +161,21 @@ By default it will generate next artifacts in `${outputDirectory} ` folder:
173
161
|`extra`|:x:|| Map with extra properties to be used in customized Velocity templates, accesible through `$info.extra` variable. |
174
162
|`fileAssociations`|:x:|[`FileAssociation[]`](https://github.com/fvarrui/JavaPackager/blob/master/src/main/java/io/github/fvarrui/javapackager/model/FileAssociation.java)| Associate file extensions or MIME types to the app. |
175
163
|`forceInstaller`|:x:|`false`| If `true`, skips operating system check when generating installers. |
176
-
|`nativeImage`|:x:|`false`| If `true`, generates a native image for the current operating system. Note that `jdkVendor` must be set to `graalvm` for this to work. |
177
-
|`sharedLibrary`|:x:|`false`| If `true`, generates a shared library for the current operating system. Note that `jdkVendor` must be set to `graalvm` for this to work. |
178
164
|`generateInstaller`|:x:|`true`| Generates an installer for the app. |
179
-
|`jdkVersion`|:x:|`latest`| JDK version to download and use. The latest version is used by default. See all available versions here: [adoptium](https://api.adoptium.net/v3/info/available_releases). |
180
-
|`jdkVendor`|:x:|`graalvm`| JDK vendor to download the JDK from. Currently supported: `adoptium, graalvm`|
181
-
|`jdkPath`|:x:|`null`| If null downloads (if necessary and also updates it if needed) the right JDK for the selected platform and sets this value to `<temp-dir>/jdk/win` or `<temp-dir>/jdk/linux` or `<temp-dir>/jdk/mac`. The downloaded JDK will be used to generate a customized JRE. |
165
+
|`jdkPath`|:x:|`${java.home}`| JDK used to generate a customized JRE. It allows to bundle customized JREs for different platforms. |
|`jreMinVersion`|:x:|| JRE minimum version. If an appropriate version cannot be found display error message. Disabled if a JRE is bundled. |
184
168
|`jrePath`|:x:|`""`| Path to JRE folder. If specified, it will bundle this JRE with the app, and won't generate a customized JRE. For Java 8 version or least. |
185
169
|`licenseFile`|:x:|`${project.licenses[0].url}` or `${basedir}/LICENSE` or `${projectdir}/LICENSE`| Path to project license file. |
186
170
|`mainClass`|:heavy_check_mark:|`${exec.mainClass}`| Full path to your app main class. |
187
171
|`manifest`|:x:||[Allows adding additional entries to MANIFEST.MF file.](docs/manifest.md)|
188
172
|`modules`|:x:|`[]`| Modules to customize the bundled JRE. Don't use `jdeps` to get module dependencies. |
189
-
|`appName`|:x:|`${project.name}` or `${project.artifactId}`| App name. |
173
+
|`name`|:x:|`${project.name}` or `${project.artifactId}`| App name. |
190
174
|`organizationName`|:x:|`${project.organization.name}` or `"ACME"`| Organization name. |
|`outputDirectory`|:x:|`${project.build.directory}` or `${project.builddir}`| Output directory (where the artifacts will be generated). |
194
-
|`packagingJdk`|:x:|`null` or same as `jdkPath`| JDK used in the execution of `jlink` and other JDK tools. If null `jdkPath` will be used.|
178
+
|`packagingJdk`|:x:|`${java.home}`| JDK used in the execution of `jlink` and other JDK tools. |
195
179
|`platform`|:x:|`auto`| Defines the target platform, which could be different to the execution platform. Possible values: `auto`, `mac`, `linux`, `windows`. Use `auto` for using execution platform as target. |
196
180
|`runnableJar`|:x:|| Defines your own JAR file to be bundled. If it's ommited, the plugin packages your code in a runnable JAR and bundle it with the app. |
197
181
|`scripts`|:x:|| Specify bootstrap script. **Pre and post-install scripts comming soon!**|
@@ -214,7 +198,7 @@ By default it will generate next artifacts in `${outputDirectory} ` folder:
214
198
215
199
### Plugin assets
216
200
217
-
Any [asset used by JavaPackager]([JavaPackager/src/main/resources at master · fvarrui/JavaPackager · GitHub](https://github.com/fvarrui/JavaPackager/tree/master/src/main/resources)), such as application icons or templates, can be replaced just by placing a file with the same name in `${assetsDir}` folder organized by platform.
201
+
Any [asset used by JavaPackager](https://github.com/fvarrui/JavaPackager/tree/master/src/main/resources), such as application icons or templates, can be replaced just by placing a file with the same name in `${assetsDir}` folder organized by platform.
description ='Hybrid Maven/Gradle plugin to package Java applications as native Windows, Mac OS X or GNU/Linux executables and create installers for them'
84
75
85
76
sourceCompatibility =JavaVersion.VERSION_1_8
@@ -95,11 +86,6 @@ publishing {
95
86
}
96
87
}
97
88
98
-
java {
99
-
withSourcesJar()
100
-
// and/or analogously use "withJavadocJar()" to get a "javadocJar" task
0 commit comments