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

[Feature Request] Add ./gradlew :plugins:xyz:run #11839

Open
dblock opened this issue Jan 10, 2024 · 2 comments
Open

[Feature Request] Add ./gradlew :plugins:xyz:run #11839

dblock opened this issue Jan 10, 2024 · 2 comments
Labels
Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. enhancement Enhancement or improvement to existing feature or request

Comments

@dblock
Copy link
Member

dblock commented Jan 10, 2024

Is your feature request related to a problem? Please describe

Developers want an easy way to run a plugin during development.

Describe the solution you'd like

In #11844 we've added the ability to do ./gradlew run -PinstalledPlugins="['plugin1', 'plugin2']". For one plugin this is a bit of a convoluted syntax (the name can't be plugins), so I'd like to be able to do ./gradlew :plugins:xyz:run when developing an xyz plugin in the plugins folder which should end up doing what ./gradlew run -PinstalledPlugins="['xyz']" does.

Related component

Build

Describe alternatives you've considered

Currently you can modify gradle/run.gradle as follows.

testClusters {
  runTask {
    testDistribution = 'archive'
    if (numZones > 1) numberOfZones = numZones
    if (numNodes > 1) numberOfNodes = numNodes
    // add plugin(s) to load in ./gradlew run
    plugin(':plugins:xyz') // <-------- add this to load xyz plugin
  }
}

Additional context

Some people might want to load more than one plugin via command line.

@dblock dblock added enhancement Enhancement or improvement to existing feature or request untriaged labels Jan 10, 2024
@github-actions github-actions bot added the Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. label Jan 10, 2024
@reta
Copy link
Collaborator

reta commented Jan 10, 2024

@dblock do you think this is related? #6285

@dblock
Copy link
Member Author

dblock commented Jan 11, 2024

It's the same intent but a different syntax.

@dblock dblock removed the untriaged label Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. enhancement Enhancement or improvement to existing feature or request
Projects
None yet
Development

No branches or pull requests

2 participants