# Referencing Plugin same with Maven

**URL:** <https://discuss.gradle.org/t/referencing-plugin-same-with-maven/6638>\
**Category:** Old Forum Archive\
**Created:** [January 10, 2014, 9:42am UTC](https://discuss.gradle.org/t/referencing-plugin-same-with-maven/6638 "2014-01-10T09:42:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamm0nth](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/mamm0nth/32/1129_2.png) [@mamm0nth](https://discuss.gradle.org/u/mamm0nth)\
**Post date:** [January 10, 2014, 9:42am UTC](https://discuss.gradle.org/t/referencing-plugin-same-with-maven/6638/1 "2014-01-10T09:42:00Z")

</div>

Is gradle support referencing a plugin as a task directly e.g gradle java:compile? or similar in maven?

Like:

```gradle
mvn org.apache.maven.plugins:maven-clean-plugin:2.0:clean
  mvn org.apache.maven.plugins:maven-clean-plugin:clean
  mvn clean:clean

```

this is based on: [http://maven.apache.org/guides/introduction/introduction-to-plugin-resolution.html](http://maven.apache.org/guides/introduction/introduction-to-plugin-resolution.html)

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [January 10, 2014, 11:10am UTC](https://discuss.gradle.org/t/referencing-plugin-same-with-maven/6638/2 "2014-01-10T11:10:00Z")

</div>

I’m not sure I understand the question. You mean without having a ‘buildscript {}’ block?

---

<div class="post-metadata">

**Author:** ![bmuschko](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/bmuschko/32/5458_2.png) [@bmuschko](https://discuss.gradle.org/u/bmuschko)\
**Post date:** [January 10, 2014, 1:45pm UTC](https://discuss.gradle.org/t/referencing-plugin-same-with-maven/6638/3 "2014-01-10T13:45:00Z")

</div>

I believe the user asked if a task provided from a plugin can be referenced and executed from the command line similar to the way Maven does it (for example ‘gradle \<pluginname\>:\<taskname\>’). The short answer is no.

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [January 10, 2014, 1:58pm UTC](https://discuss.gradle.org/t/referencing-plugin-same-with-maven/6638/4 "2014-01-10T13:58:00Z")

</div>

Not yet, but it’s coming.

---

<div class="post-metadata">

**Author:** ![mamm0nth](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/mamm0nth/32/1129_2.png) [@mamm0nth](https://discuss.gradle.org/u/mamm0nth)\
**Post date:** [January 13, 2014, 1:41am UTC](https://discuss.gradle.org/t/referencing-plugin-same-with-maven/6638/5 "2014-01-13T01:41:00Z")

</div>

Hi guys, thank you so much for your responses. Is there a JIRA ticket for this so we can follow the progress for this feature?

I believe that this feature can help also in IDE plugin for giving a default IDE configuration for Gradle project type and bind it in IDE’s Action Map e.g. Run, Profile, etc. even the user did not have a configuration in their buildscript.

---

<div class="post-metadata">

**Author:** ![bmuschko](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/bmuschko/32/5458_2.png) [@bmuschko](https://discuss.gradle.org/u/bmuschko)\
**Post date:** [January 13, 2014, 2:55pm UTC](https://discuss.gradle.org/t/referencing-plugin-same-with-maven/6638/6 "2014-01-13T14:55:00Z")

</div>

As far as I know this will be implemented as part of the [build-initialisation story](https://github.com/gradle/gradle/blob/master/design-docs/done/build-initialisation.md#story-user-initializes-a-gradle-build-without-writing-a-stub-build-script-done). I don’t think there is a JIRA ticket to follow at the moment.
