grails-core: grails install doesn't work

Expected Behavior

According to https://docs.grails.org/5.1.2/guide/single.html#creatingAndInstallingPlugins

To make your plugin available for use in a Grails application run the install command:

grails install
This will install the plugin into your local Maven cache. Then to use the plugin within an application declare a dependency on the plugin in your build.gradle file and include mavenLocal() in your repositories hash:

Actual Behaviour

| Resolving Dependencies. Please wait...

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings

CONFIGURE SUCCESSFUL in 3s
<-------------> 0% CONFIGURING [348ms]
> root project > Resolve dependencies of :runtimeClasspath

FAILURE: Build failed with an exception.

* What went wrong:
Task 'install' not found in root project 'myPlug512'.

* Try:
Run gradle tasks to get a list of available tasks. 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.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings
<-------------> 0% WAITING
> IDLE
| Error Gradle build terminated with error: Task 'install' not found in root project 'myPlug512'. (Use --stacktrace to see the full trace)

Steps To Reproduce

grails create-plugin myPlug512 cd myPlug512 grails install

Environment Information

grails -version | Grails Version: 5.1.2 | JVM Version: 1.8.0_312

Windows 11

Example Application

No response

Version

5.1.2

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 19 (15 by maintainers)

Most upvoted comments