What went wrong:
An exception occurred applying plugin request [id: 'de.fayard.refreshVersions', version: '0.51.0']
Failed to apply plugin 'de.fayard.refreshVersions'.
plugins.id("de.fayard.refreshVersions") must be configured in settings.gradle(.kts), not in build.gradle(.kts).
See https://jmfayard.github.io/refreshVersions/setup/
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
## ⚠️ Current behavior
Does not work out of the box. Entering `./gradlew refreshVersions` returns the error `plugins.id("de.fayard.refreshVersions") must be configured in settings.gradle(.kts), not in build.gradle(.kts).`
## ✅ Expected behavior
Should work out of the box
## 💣 Steps to reproduce
1) Setup Gradle 7.6
2) Create a simple `build.gradle` with `spring boot 3`
3) Add `id 'de.fayard.refreshVersions' version '0.51.0'` to `build.gradle`
3) Run `./gradlew refreshVersions`
4) Receive error
## 📱 Tech info
Gradle 7.6
Build time: 2022-11-25 13:35:10 UTC
Revision: daece9dbc5b79370cc8e4fd6fe4b2cd400e150a8
Kotlin: 1.7.10
Groovy: 3.0.13
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 17.0.1 (Azul Systems, Inc. 17.0.1+12-LTS)
OS: Mac OS X 13.2.1 aarch64
Continues #674
🐛 Describe the bug
Where: Build file 'build.gradle' line: 2
What went wrong: An exception occurred applying plugin request [id: 'de.fayard.refreshVersions', version: '0.51.0']
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 353ms
Gradle 7.6
Build time: 2022-11-25 13:35:10 UTC Revision: daece9dbc5b79370cc8e4fd6fe4b2cd400e150a8
Kotlin: 1.7.10 Groovy: 3.0.13 Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021 JVM: 17.0.1 (Azul Systems, Inc. 17.0.1+12-LTS) OS: Mac OS X 13.2.1 aarch64