Slackbot
01/15/2024, 6:59 AMVampire
01/15/2024, 7:53 AMMike Wacker
01/15/2024, 9:59 PMgradle init , using the absolute path to Gradle (e.g., /home/mike/Downloads/gradle-8.5/bin/gradle init).
After that, like @Vampire said, you will always run ./gradlew from the root directory of your project.
For existing Gradle projects, those wrapper files (including gradlew) are almost always checked into source control; you shouldn't need to run gradle init for existing projects.
(I guess you could add gradle to your PATH, but I don't use gradle init that frequently, so I just use the absolute path on the rare occasion I need to run it.)Vampire
01/15/2024, 10:04 PMmkdir newproject
cd newproject
../oldproject/gradlew init --gradle-version 8.5
gw init
🙂ephemient
01/16/2024, 5:04 AMcp -a oldproject/gradle* newproject/
and then clean up references (gradle.properties, gradle/libs.versions.toml) 😃