|
14 | 14 | app.deploy do |
15 | 15 | expect(clean_output(app.output)).to include(<<~OUTPUT) |
16 | 16 | remote: ! Error: Gradle Wrapper is missing. |
17 | | - remote: ! |
| 17 | + remote: ! |
18 | 18 | remote: ! The Gradle Wrapper (gradlew) is required to build your application on Heroku. |
19 | 19 | remote: ! This ensures that your application builds with the same version of Gradle |
20 | 20 | remote: ! that you use during development. Projects are required to include |
21 | 21 | remote: ! their own Wrapper for reliable, reproducible builds. |
22 | | - remote: ! |
| 22 | + remote: ! |
23 | 23 | remote: ! Note: The buildpack used to provide a default Gradle Wrapper (using Gradle 2.0) for |
24 | 24 | remote: ! applications that didn't include their own wrapper. That workaround was deprecated |
25 | 25 | remote: ! in 2014 and has now been removed. |
26 | | - remote: ! |
| 26 | + remote: ! |
27 | 27 | remote: ! To fix this issue, run this command in your project directory |
28 | 28 | remote: ! locally and commit the generated files: |
29 | 29 | remote: ! $ gradle wrapper |
30 | | - remote: ! |
| 30 | + remote: ! |
31 | 31 | remote: ! If you don't have Gradle installed locally, you can install it first: |
32 | 32 | remote: ! https://gradle.org/install/ |
33 | | - remote: ! |
| 33 | + remote: ! |
34 | 34 | remote: ! For more information about Gradle Wrapper, see: |
35 | 35 | remote: ! https://docs.gradle.org/current/userguide/gradle_wrapper.html |
36 | 36 | remote: ! https://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku |
|
49 | 49 | app.deploy do |
50 | 50 | expect(clean_output(app.output)).to include(<<~OUTPUT) |
51 | 51 | remote: ! Error: Failed to start Gradle daemon. |
52 | | - remote: ! |
| 52 | + remote: ! |
53 | 53 | remote: ! An error occurred while starting the Gradle daemon. This usually |
54 | 54 | remote: ! indicates an issue with the Gradle wrapper, build configuration, |
55 | 55 | remote: ! or system resources. |
56 | | - remote: ! |
| 56 | + remote: ! |
57 | 57 | remote: ! Check the output above for specific error messages from Gradle. |
58 | 58 | remote: ! Common causes include: |
59 | | - remote: ! |
| 59 | + remote: ! |
60 | 60 | remote: ! - Corrupted or missing Gradle wrapper files |
61 | 61 | remote: ! - Invalid Gradle configuration in build.gradle(.kts) or settings.gradle(.kts) |
62 | 62 | remote: ! - Network connectivity issues downloading Gradle dependencies |
63 | 63 | remote: ! - Incompatible Gradle version with the current Java runtime |
64 | | - remote: ! |
| 64 | + remote: ! |
65 | 65 | remote: ! To resolve this issue: |
66 | 66 | remote: ! 1. Verify your Gradle wrapper works locally: ./gradlew --version |
67 | 67 | remote: ! 2. Check your build.gradle(.kts) and settings.gradle(.kts) for syntax errors |
68 | 68 | remote: ! 3. Ensure you're using a supported Gradle version |
69 | | - remote: ! |
| 69 | + remote: ! |
70 | 70 | remote: ! If this appears to be a temporary network or download issue, |
71 | 71 | remote: ! try deploying again as it may resolve itself. |
72 | | - remote: ! |
| 72 | + remote: ! |
73 | 73 | remote: ! For more information, see: |
74 | 74 | remote: ! https://docs.gradle.org/current/userguide/troubleshooting.html |
75 | 75 | OUTPUT |
|
95 | 95 | app.deploy do |
96 | 96 | expect(clean_output(app.output)).to include(<<~OUTPUT) |
97 | 97 | remote: ! Error: Gradle build failed. |
98 | | - remote: ! |
| 98 | + remote: ! |
99 | 99 | remote: ! An error occurred during the Gradle build process. This usually |
100 | 100 | remote: ! indicates an issue with your application's dependencies, configuration, |
101 | 101 | remote: ! or source code. |
102 | | - remote: ! |
| 102 | + remote: ! |
103 | 103 | remote: ! First, check the build output above for specific error messages |
104 | 104 | remote: ! from Gradle that might indicate what went wrong. Common issues include: |
105 | | - remote: ! |
| 105 | + remote: ! |
106 | 106 | remote: ! - Missing or incompatible dependencies in your build.gradle(.kts) |
107 | 107 | remote: ! - Compilation errors in your application source code |
108 | 108 | remote: ! - Test failures (if tests are enabled during the build) |
109 | 109 | remote: ! - Invalid Gradle configuration or settings |
110 | 110 | remote: ! - Using an incompatible OpenJDK version for your project |
111 | | - remote: ! |
| 111 | + remote: ! |
112 | 112 | remote: ! To troubleshoot this issue: |
113 | 113 | remote: ! 1. Try building your application locally with the same Gradle command |
114 | 114 | remote: ! 2. Check that your gradlew script works locally: ./gradlew build |
115 | 115 | remote: ! 3. Verify your Java version is compatible with your project |
116 | | - remote: ! |
| 116 | + remote: ! |
117 | 117 | remote: ! If the error persists, check the documentation: |
118 | 118 | remote: ! https://docs.gradle.org/current/userguide/troubleshooting.html |
119 | 119 | remote: ! https://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku |
|
129 | 129 | app.deploy do |
130 | 130 | expect(clean_output(app.output)).to include(<<~OUTPUT) |
131 | 131 | remote: ! Error: Gradle task 'pleasefail' not found. |
132 | | - remote: ! |
| 132 | + remote: ! |
133 | 133 | remote: ! The specified Gradle task 'pleasefail' does not exist in your project. |
134 | 134 | remote: ! This can happen when: |
135 | | - remote: ! |
| 135 | + remote: ! |
136 | 136 | remote: ! - The task name is misspelled |
137 | 137 | remote: ! - The task is defined in a plugin that hasn't been applied |
138 | 138 | remote: ! - The task is only available in certain project configurations |
139 | 139 | remote: ! - You're trying to run a task that doesn't exist in this project |
140 | | - remote: ! |
| 140 | + remote: ! |
141 | 141 | remote: ! To see all available tasks in your project, run locally: |
142 | 142 | remote: ! $ ./gradlew tasks |
143 | | - remote: ! |
| 143 | + remote: ! |
144 | 144 | remote: ! To see all tasks including those from plugins, run: |
145 | 145 | remote: ! $ ./gradlew tasks --all |
146 | | - remote: ! |
| 146 | + remote: ! |
147 | 147 | remote: ! If you're setting GRADLE_TASK as an environment variable, make sure |
148 | 148 | remote: ! it contains a valid task name for your project. |
149 | | - remote: ! |
| 149 | + remote: ! |
150 | 150 | remote: ! For more information about Gradle tasks, see: |
151 | 151 | remote: ! https://docs.gradle.org/current/userguide/more_about_tasks.html |
152 | 152 | OUTPUT |
|
158 | 158 | app.deploy do |
159 | 159 | expect(clean_output(app.output)).to include(<<~OUTPUT) |
160 | 160 | remote: ! Warning: Unsupported Gradle version detected. |
161 | | - remote: ! |
| 161 | + remote: ! |
162 | 162 | remote: ! You are using Gradle 7.6.3, which is end-of-life and no longer |
163 | 163 | remote: ! receives security updates or bug fixes. |
164 | | - remote: ! |
| 164 | + remote: ! |
165 | 165 | remote: ! Please upgrade to Gradle 9 (current) for active support, or at minimum |
166 | 166 | remote: ! Gradle 8 for security fixes only. |
167 | | - remote: ! |
| 167 | + remote: ! |
168 | 168 | remote: ! This buildpack will attempt to build your application, but compatibility |
169 | 169 | remote: ! with unsupported Gradle versions is not guaranteed and may break in future |
170 | 170 | remote: ! buildpack releases. We strongly recommend upgrading. |
171 | | - remote: ! |
| 171 | + remote: ! |
172 | 172 | remote: ! For more information: |
173 | 173 | remote: ! - https://docs.gradle.org/current/userguide/feature_lifecycle.html#eol_support |
174 | | - remote: ! |
| 174 | + remote: ! |
175 | 175 | remote: ! Upgrade guides: |
176 | 176 | remote: ! - https://docs.gradle.org/current/userguide/upgrading_version_7.html |
177 | 177 | remote: ! - https://docs.gradle.org/current/userguide/upgrading_major_version_9.html |
|
0 commit comments