Skip to content

Commit

Permalink
Remove --no-daemon from default flags (#107)
Browse files Browse the repository at this point in the history
* Remove `--no-daemon` from default flags

* Set JDK17

* Fix step input
  • Loading branch information
ofalvai authored Nov 26, 2024
1 parent 82c4ab9 commit e655023
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ You can also set up file path filters to avoid exporting unwanted archives or ma
| `mapping_file_include_filter` | The Step will copy the generated mapping files that match this filter into the Bitrise deploy directory. If you specify an empty filter, no mapping files will be copied. Example: Copy every mapping.txt file: ``` *mapping.txt ``` | | `*/mapping.txt` |
| `mapping_file_exclude_filter` | The Step will **not** copy the generated mapping files that match this filter into the Bitrise deploy directory. You can use this input to avoid moving a beta mapping file, for example. If you specify an empty filter, every mapping file (selected by `mapping_file_include_filter`) will be copied. Example: Do not copy any mapping.txt file that is in a `beta` directoy: ``` */beta/mapping.txt ``` | | `*/tmp/*` |
| `cache_level` | `all` - will cache build-cache and dependencies `only_deps` - will cache dependencies only `none` - won't cache any of the above | required | `only_deps` |
| `gradle_options` | Options added to the end of the Gradle call. You can use multiple options, separated by a space character. Example: `--stacktrace --debug` If `--debug` or `-d` options are set then only the last 20 lines of the raw gradle output will be visible in the build log. The full raw output will be exported to the `$BITRISE_GRADLE_RAW_RESULT_TEXT_PATH` variable and will be added as an artifact. | | `--stacktrace --no-daemon` |
| `gradle_options` | Flags added to the end of the Gradle call. You can use multiple options, separated by a space. Example: `--stacktrace --debug` If `--debug` or `-d` options are set then only the last 20 lines of the raw gradle output will be visible in the build log. The full raw output will be exported to the `$BITRISE_GRADLE_RAW_RESULT_TEXT_PATH` variable and will be added as a build artifact. | | `--stacktrace` |
| `apk_file_include_filter` | This input is **DEPRECATED** - use the `APK and AAB file include filter` input instead and set this input to empty value. The step will copy the generated APK files that match this filter into the Bitrise Deploy Directory. If you specify an empty filter, the new input "APK and AAB file include filter" will be used. Example: Copy every APK file: ``` "*.apk" ``` Copy every APK file with a filename that contains `release`, like (`./app/build/outputs/apk/app-release-unsigned.apk`): ``` *release*.apk ``` | | |
| `apk_file_exclude_filter` | This input is **DEPRECATED** - use the `APK and AAB file exclude filter` input instead and set this input to empty value. One filter per line. The step will **not** copy the generated APK files that match this filters into the Bitrise Deploy Directory. You can use this filter to avoid moving unalinged and/or unsigned apk files. If you specify an empty filter, the new input "APK and AAB file exclude filter" will be used. Examples: Do not copy APK files with a filename that contains `unaligned`: ``` *unaligned*.apk ``` Do not copy APK files with a filename that contains `unaligned` and/or `Test`: ``` *unaligned*.apk *Test*.apk ``` | | |
| `collect_metrics` | Enable Gradle metrics collection and send data to Bitrise. | | `no` |
Expand Down
17 changes: 2 additions & 15 deletions e2e/bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,22 +221,9 @@ workflows:

_common:
steps:
- script:
run_if: $.IsCI
- set-java-version:
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-amd64/bin/javac
sudo update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
envman add --key JAVA_HOME --value "/usr/lib/jvm/java-11-openjdk-amd64"
elif [[ "$OSTYPE" == "darwin"* ]]; then
jenv global 11 || jenv global 11.0
export JAVA_HOME="$(jenv prefix)"
envman add --key JAVA_HOME --value "$(jenv prefix)"
fi
- set_java_version: "17"
- script:
title: recreate _tmp directory
inputs:
Expand Down
11 changes: 5 additions & 6 deletions step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,15 @@ inputs:
- all
- only_deps
- none
- gradle_options: --stacktrace --no-daemon
- gradle_options: --stacktrace
opts:
category: Debug
title: Additional options for Gradle call
title: Additional flags for Gradle
description: |-
Options added to the end of the Gradle call.
You can use multiple options, separated by a space
character. Example: `--stacktrace --debug`
Flags added to the end of the Gradle call.
You can use multiple options, separated by a space. Example: `--stacktrace --debug`
If `--debug` or `-d` options are set then only the last 20 lines of the raw gradle output will be visible in the build log.
The full raw output will be exported to the `$BITRISE_GRADLE_RAW_RESULT_TEXT_PATH` variable and will be added as an artifact.
The full raw output will be exported to the `$BITRISE_GRADLE_RAW_RESULT_TEXT_PATH` variable and will be added as a build artifact.
- apk_file_include_filter: null
opts:
category: Deprecated
Expand Down

0 comments on commit e655023

Please sign in to comment.