Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jun 13, 2024
1 parent 1adcbad commit f3d7396
Show file tree
Hide file tree
Showing 7 changed files with 234 additions and 13 deletions.
11 changes: 10 additions & 1 deletion docs/modules/reference/pages/name-templates.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,16 @@ The following names are related to xref:reference:distributions.adoc[]
| distributionJavaMainClass | the main class launched by the executable script launcher
| distributionJavaMainJar | the main jar launched by the executable script launcher
| distributionJavaMainModule | the module used by the executable script launcher
| distributionJavaOptions | the jvm custom settings used by the executable script launcher
| distributionJavaJvmOptionsUniversal | JVM custom settings used by the executable script launcher
| distributionJavaJvmOptionsUnix | JVM custom settings used by the executable script launcher
| distributionJavaJvmOptionsLinux | JVM custom settings used by the executable script launcher
| distributionJavaJvmOptionsOsx | JVM custom settings used by the executable script launcher
| distributionJavaJvmOptionsWindows | JVM custom settings used by the executable script launcher
| distributionJavaEnvironmentVariablesUniversal | Environment variables used by the executable script launcher
| distributionJavaEnvironmentVariablesUnix | Environment variables used by the executable script launcher
| distributionJavaEnvironmentVariablesLinux | Environment variables used by the executable script launcher
| distributionJavaEnvironmentVariablesOsx | Environment variables used by the executable script launcher
| distributionJavaEnvironmentVariablesWindows | Environment variables used by the executable script launcher
|===

Additionally, every key/value from `distribution.<name>.extraProperties` is mapped with `distribution` as key prefix
Expand Down
118 changes: 112 additions & 6 deletions docs/modules/reference/pages/project.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,27 @@ project:
# Options to pass to the Java runtime
# icon:dot-circle[]
options: [-Xmx2048m]
jvmOptions:
# Included in all scripts
# icon:dot-circle[] icon:file-alt[]
universal:
- -Dprop=value
# Included in all non Windows scripts
# icon:dot-circle[] icon:file-alt[]
unix:
- -Dprop=value
# Included in all non Windows (except OSX) scripts
# icon:dot-circle[] icon:file-alt[]
linux:
- -Dprop=value
# Included only in OSX scripts
# icon:dot-circle[] icon:file-alt[]
osx:
- -Dprop=value
# Included in Windows scripts
# icon:dot-circle[] icon:file-alt[]
windows:
- -Dprop=value
# Identifies the project as being member of a multi-project build.
# Defaults to `false`.
Expand Down Expand Up @@ -400,8 +420,26 @@ TOML::
java.mainClass = "com.acme.Main"
# Options to pass to the Java runtime
# icon:dot-circle[]
java.options = ["-Xmx2048m"]
# Included in all scripts
# icon:dot-circle[] icon:file-alt[]
java.jvmOptions.universal = ["-Dprop=value"]
# Included in all non Windows scripts
# icon:dot-circle[] icon:file-alt[]
java.jvmOptions.unix = ["-Dprop=value"]
# Included in all non Windows (except OSX) scripts
# icon:dot-circle[] icon:file-alt[]
java.jvmOptions.linux = ["-Dprop=value"]
# Included only in OSX scripts
# icon:dot-circle[] icon:file-alt[]
java.jvmOptions.osx = ["-Dprop=value"]
# Included in Windows scripts
# icon:dot-circle[] icon:file-alt[]
java.jvmOptions.windows = ["-Dprop=value"]
# Identifies the project as being member of a multi-project build.
# Defaults to `false`.
Expand Down Expand Up @@ -648,7 +686,33 @@ JSON::
// Options to pass to the Java runtime
// icon:dot-circle[]
"options": ["-Xmx2048m"],
"jvmOptions": {
// Included in all scripts
// icon:dot-circle[] icon:file-alt[]
"universal": [
"-Dprop=value"
],
// Included in all non Windows scripts
// icon:dot-circle[] icon:file-alt[]
"unix": [
"-Dprop=value"
],
// Included in all non Windows (except OSX) scripts
// icon:dot-circle[] icon:file-alt[]
"linux": [
"-Dprop=value"
],
// Included only in OSX scripts
// icon:dot-circle[] icon:file-alt[]
"osx": [
"-Dprop=value"
],
// Included in Windows scripts
// icon:dot-circle[] icon:file-alt[]
"windows": [
"-Dprop=value"
]
},
// Identifies the project as being member of a multi-project build.
// Defaults to `false`.
Expand Down Expand Up @@ -1008,7 +1072,33 @@ Maven::
Options to pass to the Java runtime
icon:dot-circle[]
-->
<options>-Xmx2048m</options>
<jvmOptions>
<!--
Included in all scripts
icon:dot-circle[] icon:file-alt[]
-->
<universal>-Dprop=value</universal>
<!--
Included in all non Windows scripts
icon:dot-circle[] icon:file-alt[]
-->
<unix>-Dprop=value</unix>
<!--
Included in all non Windows (except OSX) scripts
icon:dot-circle[] icon:file-alt[]
-->
<linux>-Dprop=value</linux>
<!--
Included only in OSX scripts
icon:dot-circle[] icon:file-alt[]
-->
<osx>-Dprop=value</osx>
<!--
Included in Windows scripts
icon:dot-circle[] icon:file-alt[]
-->
<windows>-Dprop=value</windows>
</jvmOptions>
<!--
Identifies the project as being member of a multi-project build.
Expand Down Expand Up @@ -1324,7 +1414,23 @@ jreleaser {
// Options to pass to the Java runtime
// icon:dot-circle[]
options = ['-Xmx2048m']
jvmOptions {
// Included in all scripts
// icon:dot-circle[] icon:file-alt[]
universal('-Dprop=value')
// Included in all non Windows scripts
// icon:dot-circle[] icon:file-alt[]
unix('-Dprop=value')
// Included in all non Windows (except OSX) scripts
// icon:dot-circle[] icon:file-alt[]
linux('-Dprop=value')
// Included only in OSX scripts
// icon:dot-circle[] icon:file-alt[]
osx('-Dprop=value')
// Included in Windows scripts
// icon:dot-circle[] icon:file-alt[]
windows('-Dprop=value')
}
// Identifies the project as being member of a multi-project build.
// Defaults to `false`.
Expand Down
18 changes: 17 additions & 1 deletion docs/modules/reference/partials/assemble/gradle/common-java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,23 @@

// Options to pass to the Java runtime
// icon:dot-circle[]
options = ['-Xmx2048m']
jvmOptions {
// Included in all scripts
// icon:dot-circle[] icon:file-alt[]
universal('-Dprop=value')
// Included in all non Windows scripts
// icon:dot-circle[] icon:file-alt[]
unix('-Dprop=value')
// Included in all non Windows (except OSX) scripts
// icon:dot-circle[] icon:file-alt[]
linux('-Dprop=value')
// Included only in OSX scripts
// icon:dot-circle[] icon:file-alt[]
osx('-Dprop=value')
// Included in Windows scripts
// icon:dot-circle[] icon:file-alt[]
windows('-Dprop=value')
}

// Environment variables used in launch scripts.
// icon:dot-circle[]
Expand Down
28 changes: 27 additions & 1 deletion docs/modules/reference/partials/assemble/json/common-java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,33 @@

// Options to pass to the Java runtime
// icon:dot-circle[]
"options": ["-Xmx2048m"],
"jvmOptions": {
// Included in all scripts
// icon:dot-circle[] icon:file-alt[]
"universal": [
"-Dprop=value"
],
// Included in all non Windows scripts
// icon:dot-circle[] icon:file-alt[]
"unix": [
"-Dprop=value"
],
// Included in all non Windows (except OSX) scripts
// icon:dot-circle[] icon:file-alt[]
"linux": [
"-Dprop=value"
],
// Included only in OSX scripts
// icon:dot-circle[] icon:file-alt[]
"osx": [
"-Dprop=value"
],
// Included in Windows scripts
// icon:dot-circle[] icon:file-alt[]
"windows": [
"-Dprop=value"
]
},

// Environment variables used in launch scripts.
// icon:dot-circle[]
Expand Down
28 changes: 27 additions & 1 deletion docs/modules/reference/partials/assemble/maven/common-java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,33 @@
Options to pass to the Java runtime
icon:dot-circle[]
-->
<options>-Xmx2048m</options>
<jvmOptions>
<!--
Included in all scripts
icon:dot-circle[] icon:file-alt[]
-->
<universal>-Dprop=value</universal>
<!--
Included in all non Windows scripts
icon:dot-circle[] icon:file-alt[]
-->
<unix>-Dprop=value</unix>
<!--
Included in all non Windows (except OSX) scripts
icon:dot-circle[] icon:file-alt[]
-->
<linux>-Dprop=value</linux>
<!--
Included only in OSX scripts
icon:dot-circle[] icon:file-alt[]
-->
<osx>-Dprop=value</osx>
<!--
Included in Windows scripts
icon:dot-circle[] icon:file-alt[]
-->
<windows>-Dprop=value</windows>
</jvmOptions>

<!--
Environment variables used in launch scripts.
Expand Down
22 changes: 20 additions & 2 deletions docs/modules/reference/partials/assemble/toml/common-java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,26 @@
java.mainClass = "com.acme.Main"

# Options to pass to the Java runtime
# icon:dot-circle[]
java.options = ["-Xmx2048m"]

# Included in all scripts
# icon:dot-circle[] icon:file-alt[]
java.jvmOptions.universal = ["-Dprop=value"]

# Included in all non Windows scripts
# icon:dot-circle[] icon:file-alt[]
java.jvmOptions.unix = ["-Dprop=value"]

# Included in all non Windows (except OSX) scripts
# icon:dot-circle[] icon:file-alt[]
java.jvmOptions.linux = ["-Dprop=value"]

# Included only in OSX scripts
# icon:dot-circle[] icon:file-alt[]
java.jvmOptions.osx = ["-Dprop=value"]

# Included in Windows scripts
# icon:dot-circle[] icon:file-alt[]
java.jvmOptions.windows = ["-Dprop=value"]

# Environment variables used in launch scripts.

Expand Down
22 changes: 21 additions & 1 deletion docs/modules/reference/partials/assemble/yaml/common-java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,27 @@

# Options to pass to the Java runtime
# icon:dot-circle[]
options: [-Xmx2048m]
jvmOptions:
# Included in all scripts
# icon:dot-circle[] icon:file-alt[]
universal:
- -Dprop=value
# Included in all non Windows scripts
# icon:dot-circle[] icon:file-alt[]
unix:
- -Dprop=value
# Included in all non Windows (except OSX) scripts
# icon:dot-circle[] icon:file-alt[]
linux:
- -Dprop=value
# Included only in OSX scripts
# icon:dot-circle[] icon:file-alt[]
osx:
- -Dprop=value
# Included in Windows scripts
# icon:dot-circle[] icon:file-alt[]
windows:
- -Dprop=value

# Environment variables used in launch scripts.
# icon:dot-circle[]
Expand Down

0 comments on commit f3d7396

Please sign in to comment.