Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle scaffolding doesn't work with Kotlin based build.gradle.kts or settings.gradle.kts #3981

Open
mcanalesmayo opened this issue Jun 17, 2021 · 0 comments

Comments

@mcanalesmayo
Copy link

mcanalesmayo commented Jun 17, 2021

As stated in the Gradle scaffolding reference, it looks for a build.gradle or settings.gradle file, otherwise the scaffolding will fail. This makes the scaffolding not support projects with Kotlin based build scripts, which are named build.gradle.kts and settings.gradle.kts.
The issue happens here: https://github.com/habitat-sh/core-plans/blob/master/scaffolding-gradle/lib/scaffolding.sh#L209-L215

_confirm_scaffolding() {
  if [[ -f build.gradle || -f setttings.gradle ]]; then
    return 0
  else
    exit_with "Gradle Scaffolding cannot find build.gradle or settings.gradle" 5
  fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant