Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jun 7, 2024
1 parent ae2e639 commit 5319d05
Show file tree
Hide file tree
Showing 6 changed files with 276 additions and 0 deletions.
138 changes: 138 additions & 0 deletions docs/modules/reference/pages/project.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,30 @@ project:
# icon:dot-circle[]
multiProject: false
# Environment variables used in launch scripts.
# icon:dot-circle[]
environmentVariables:
# Included in all scripts
# icon:dot-circle[] icon:file-alt[]
universal:
KEY: value
# Included in all non Windows scripts
# icon:dot-circle[] icon:file-alt[]
unix:
KEY: value
# Included in all non Windows (except OSX) scripts
# icon:dot-circle[] icon:file-alt[]
linux:
KEY: value
# Included only in OSX scripts
# icon:dot-circle[] icon:file-alt[]
osx:
KEY: value
# Included in Windows scripts
# icon:dot-circle[] icon:file-alt[]
windows:
KEY: value
# Additional properties used when evaluating templates.
# icon:dot-circle[]
extraProperties:
Expand Down Expand Up @@ -384,6 +408,28 @@ TOML::
# icon:dot-circle[]
java.multiProject = false
# Environment variables used in launch scripts.
# Included in all scripts
# icon:dot-circle[] icon:file-alt[]
java.environmentVariables.universal.KEY = "value"
# Included in all non Windows scripts
# icon:dot-circle[] icon:file-alt[]
java.environmentVariables.unix.KEY = "value"
# Included in all non Windows (except OSX) scripts
# icon:dot-circle[] icon:file-alt[]
java.environmentVariables.linux.KEY = "value"
# Included only in OSX scripts
# icon:dot-circle[] icon:file-alt[]
java.environmentVariables.osx.KEY = "value"
# Included in Windows scripts
# icon:dot-circle[] icon:file-alt[]
java.environmentVariables.windows.KEY = "value"
# Additional properties used when evaluating templates.
# icon:dot-circle[]
java.extraProperties.foo = "bar"
Expand Down Expand Up @@ -609,6 +655,36 @@ JSON::
// icon:dot-circle[]
"multiProject": false,
// Environment variables used in launch scripts.
// icon:dot-circle[]
"environmentVariables": {
// Included in all scripts
// icon:dot-circle[] icon:file-alt[]
"universal": {
"KEY": "value"
},
// Included in all non Windows scripts
// icon:dot-circle[] icon:file-alt[]
"unix": {
"KEY": "value"
},
// Included in all non Windows (except OSX) scripts
// icon:dot-circle[] icon:file-alt[]
"linux": {
"KEY": "value"
},
// Included only in OSX scripts
// icon:dot-circle[] icon:file-alt[]
"osx": {
"KEY": "value"
},
// Included in Windows scripts
// icon:dot-circle[] icon:file-alt[]
"windows": {
"KEY": "value"
}
},
// Additional properties used when evaluating templates.
// icon:dot-circle[]
"extraProperties": {
Expand Down Expand Up @@ -941,6 +1017,48 @@ Maven::
-->
<multiProject>false</multiProject>
<!--
Environment variables used in launch scripts.
icon:dot-circle[]
-->
<environmentVariables>
<!--
Included in all scripts
icon:dot-circle[] icon:file-alt[]
-->
<universal>
<KEY>value</KEY>
</universal>
<!--
Included in all non Windows scripts
icon:dot-circle[] icon:file-alt[]
-->
<unix>
<KEY>value</KEY>
</unix>
<!--
Included in all non Windows (except OSX) scripts
icon:dot-circle[] icon:file-alt[]
-->
<linux>
<KEY>value</KEY>
</linux>
<!--
Included only in OSX scripts
icon:dot-circle[] icon:file-alt[]
-->
<osx>
<KEY>value</KEY>
</osx>
<!--
Included in Windows scripts
icon:dot-circle[] icon:file-alt[]
-->
<windows>
<KEY>value</KEY>
</windows>
</environmentVariables>
<!--
Additional properties used when evaluating templates.
icon:dot-circle[]
Expand Down Expand Up @@ -1214,6 +1332,26 @@ jreleaser {
// icon:dot-circle[]
multiProject = false
// Environment variables used in launch scripts.
// icon:dot-circle[]
environmentVariables {
// Included in all scripts
// icon:dot-circle[] icon:file-alt[]
universal('KEY', 'value')
// Included in all non Windows scripts
// icon:dot-circle[] icon:file-alt[]
unix('KEY', 'value')
// Included in all non Windows (except OSX) scripts
// icon:dot-circle[] icon:file-alt[]
linux('KEY', 'value')
// Included only in OSX scripts
// icon:dot-circle[] icon:file-alt[]
osx('KEY', 'value')
// Included in Windows scripts
// icon:dot-circle[] icon:file-alt[]
windows('KEY', 'value')
}
// Additional properties used when evaluating templates.
// Key will be capitalized and prefixed with `java`, i.e, `javaFoo`.
// icon:dot-circle[]
Expand Down
20 changes: 20 additions & 0 deletions docs/modules/reference/partials/assemble/gradle/common-java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,26 @@
// icon:dot-circle[]
options = ['-Xmx2048m']

// Environment variables used in launch scripts.
// icon:dot-circle[]
environmentVariables {
// Included in all scripts
// icon:dot-circle[] icon:file-alt[]
universal('KEY', 'value')
// Included in all non Windows scripts
// icon:dot-circle[] icon:file-alt[]
unix('KEY', 'value')
// Included in all non Windows (except OSX) scripts
// icon:dot-circle[] icon:file-alt[]
linux('KEY', 'value')
// Included only in OSX scripts
// icon:dot-circle[] icon:file-alt[]
osx('KEY', 'value')
// Included in Windows scripts
// icon:dot-circle[] icon:file-alt[]
windows('KEY', 'value')
}

ifdef::java-assembler[]
// Maven coordinates = groupId.
// If left undefined, will use `#{project.java.groupId}`.
Expand Down
30 changes: 30 additions & 0 deletions docs/modules/reference/partials/assemble/json/common-java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,36 @@
// icon:dot-circle[]
"options": ["-Xmx2048m"],

// Environment variables used in launch scripts.
// icon:dot-circle[]
"environmentVariables": {
// Included in all scripts
// icon:dot-circle[] icon:file-alt[]
"universal": {
"KEY": "value"
},
// Included in all non Windows scripts
// icon:dot-circle[] icon:file-alt[]
"unix": {
"KEY": "value"
},
// Included in all non Windows (except OSX) scripts
// icon:dot-circle[] icon:file-alt[]
"linux": {
"KEY": "value"
},
// Included only in OSX scripts
// icon:dot-circle[] icon:file-alt[]
"osx": {
"KEY": "value"
},
// Included in Windows scripts
// icon:dot-circle[] icon:file-alt[]
"windows": {
"KEY": "value"
}
},

ifdef::java-assembler[]
// Maven coordinates: groupId.
// If left undefined, will use `#{project.java.groupId}`.
Expand Down
42 changes: 42 additions & 0 deletions docs/modules/reference/partials/assemble/maven/common-java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,48 @@
-->
<options>-Xmx2048m</options>

<!--
Environment variables used in launch scripts.
icon:dot-circle[]
-->
<environmentVariables>
<!--
Included in all scripts
icon:dot-circle[] icon:file-alt[]
-->
<universal>
<KEY>value</KEY>
</universal>
<!--
Included in all non Windows scripts
icon:dot-circle[] icon:file-alt[]
-->
<unix>
<KEY>value</KEY>
</unix>
<!--
Included in all non Windows (except OSX) scripts
icon:dot-circle[] icon:file-alt[]
-->
<linux>
<KEY>value</KEY>
</linux>
<!--
Included only in OSX scripts
icon:dot-circle[] icon:file-alt[]
-->
<osx>
<KEY>value</KEY>
</osx>
<!--
Included in Windows scripts
icon:dot-circle[] icon:file-alt[]
-->
<windows>
<KEY>value</KEY>
</windows>
</environmentVariables>

ifdef::java-assembler[]
<!--
Maven coordinates>groupId.
Expand Down
22 changes: 22 additions & 0 deletions docs/modules/reference/partials/assemble/toml/common-java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,28 @@
# icon:dot-circle[]
java.options = ["-Xmx2048m"]

# Environment variables used in launch scripts.

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

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

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

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

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

ifdef::java-assembler[]
# Maven coordinates: groupId.
# If left undefined, will use `#{project.java.groupId}`.
Expand Down
24 changes: 24 additions & 0 deletions docs/modules/reference/partials/assemble/yaml/common-java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,30 @@
# icon:dot-circle[]
options: [-Xmx2048m]

# Environment variables used in launch scripts.
# icon:dot-circle[]
environmentVariables:
# Included in all scripts
# icon:dot-circle[] icon:file-alt[]
universal:
KEY: value
# Included in all non Windows scripts
# icon:dot-circle[] icon:file-alt[]
unix:
KEY: value
# Included in all non Windows (except OSX) scripts
# icon:dot-circle[] icon:file-alt[]
linux:
KEY: value
# Included only in OSX scripts
# icon:dot-circle[] icon:file-alt[]
osx:
KEY: value
# Included in Windows scripts
# icon:dot-circle[] icon:file-alt[]
windows:
KEY: value

ifdef::java-assembler[]
# Maven coordinates: groupId.
# If left undefined, will use `#{project.java.groupId}`.
Expand Down

0 comments on commit 5319d05

Please sign in to comment.