Anyone ever deployed to Heroku with a build.gradle...
# gradle
r
Anyone ever deployed to Heroku with a build.gradle.kts file and without gradlew? I get this error when pushing to heroku
Could not find a 'gradlew' script or a 'build.gradle' file! Please check that they exist and are commited to Git.
which is correct, because I use
build.gradle.kts
(with .kts). This is also in the documentation (https://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku) but that would mean I HAVE to use
gradlew
instead of the wrapper task in gradle?
v
Can you tell why you don't have the
gradlew
scripts checked in and how you mean using the wrapper task instead? The wrapper task is only for updating the four wrapper files to newer versions. If you don't have the four wrapper files checked in, this takes away one of the greatest strenghts of the Wrapper, that you don't even have to have Gradle installed to run the build but only Java.
👍 1
r
Oh sorry, I thought it was to replace the gradlew file.
So from what I understand I need it anyway, right?
v
"need" is a strong word. You can always work without the wrapper at all. But imho even the tiniest project should use it and have the four files checked in
r
Okay will do