Skip to content

Commit

Permalink
test: gradle path
Browse files Browse the repository at this point in the history
  • Loading branch information
Heonbyeong committed Jul 24, 2024
1 parent a2ee2eb commit 3802afe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ platform :android do
new_release = latest_release + 1

increment_version_code(
gradle_file_path: './app/build.gradle.kts',
version_code: new_release
)

git_add(
path: "./app/build.gradle.kts"
path: ["./app/build.gradle.kts"]
)
git_commit(
path: ["./app/build.gradle.kts"],
Expand Down
8 changes: 8 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do

## Android

### android increment_code

```sh
[bundle exec] fastlane android increment_code
```

Increment the Version Code

### android test

```sh
Expand Down
9 changes: 1 addition & 8 deletions fastlane/report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@



<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000193">

</testcase>


<testcase classname="fastlane.lanes" name="1: test" time="0.993541">

<failure message="/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/actions/actions_helper.rb:67:in `execute_action&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:229:in `chdir&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing&apos;&#10;Fastfile:21:in `block (2 levels) in parsing_binding&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/lane.rb:41:in `call&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:45:in `chdir&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/runner.rb:45:in `execute&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/commander-4.6.0/lib/commander/command.rb:187:in `call&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/commander-4.6.0/lib/commander/command.rb:157:in `run&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/gems/fastlane-2.217.0/bin/fastlane:23:in `&lt;top (required)&gt;&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/bin/fastlane:25:in `load&apos;&#10;/opt/homebrew/Cellar/fastlane/2.217.0/libexec/bin/fastlane:25:in `&lt;main&gt;&apos;&#10;&#10;Exit status of command &apos;/Users/heon/Git/23rd-Android-Team-2-Android/gradlew test -p .&apos; was 1 instead of 0.&#10;Type-safe project accessors is an incubating feature.&#10;&gt; Task :build-logic:convention:compileKotlin UP-TO-DATE&#10;&gt; Task :build-logic:convention:compileJava NO-SOURCE&#10;&gt; Task :build-logic:convention:pluginDescriptors UP-TO-DATE&#10;&gt; Task :build-logic:convention:processResources UP-TO-DATE&#10;&gt; Task :build-logic:convention:classes UP-TO-DATE&#10;&gt; Task :build-logic:convention:jar UP-TO-DATE&#10;&gt; Task :build-logic:convention:inspectClassesForKotlinIC UP-TO-DATE&#10;&#10;FAILURE: Build failed with an exception.&#10;&#10;* Where:&#10;Build file &apos;/Users/heon/Git/23rd-Android-Team-2-Android/app/build.gradle.kts&apos; line: 2&#10;&#10;* What went wrong:&#10;An exception occurred applying plugin request [id: &apos;moneymong.android.application&apos;, version: &apos;unspecified&apos;]&#10;&gt; Failed to apply plugin &apos;com.android.internal.application&apos;.&#10; &gt; Android Gradle plugin requires Java 17 to run. You are currently using Java 11.&#10; Your current JDK is located in /Library/Java/JavaVirtualMachines/jdk-11.0.17.jdk/Contents/Home&#10; You can try some of the following options:&#10; - changing the IDE settings.&#10; - changing the JAVA_HOME environment variable.&#10; - changing `org.gradle.java.home` in `gradle.properties`.&#10;&#10;* Try:&#10;&gt; Run with --stacktrace option to get the stack trace.&#10;&gt; Run with --info or --debug option to get more log output.&#10;&gt; Run with --scan to get full insights.&#10;&#10;* Get more help at https://help.gradle.org&#10;&#10;BUILD FAILED in 513ms&#10;5 actionable tasks: 5 up-to-date&#10;" />
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000143">

</testcase>

Expand Down

0 comments on commit 3802afe

Please sign in to comment.