Hello,
I am writing a plugin that extends JavaPlugin. My plugin has a task class of
which is a subclass of org.gradle.api.tasks.bundling.Jar.
In the use method of the plugin is the following:
ClassdepTask classdepTask = project.getTasks().add(CLASSDEP_TASK_NAME,
ClassdepTask.class);
...
project.getConfigurations().getByName(Dependency.ARCHIVES_CONFIGURATION).addArtifact(
new ArchivePublishArtifact(classdepTask));
This mimics what is in JavaPlugin.configureArchives().
Compiling gives:
/usr/home/kuti/project/gradleRioPlugin/Plugin/src/main/java/org/rio/gradle/RioPlugin.java:78:
cannot find symbol
symbol : constructor ArchivePublishArtifact(org.rio.gradle.ClassdepTask)
location: class
org.gradle.api.internal.artifacts.publish.ArchivePublishArtifact
new ArchivePublishArtifact(classdepTask));
^
Temporarily changing the parameter to new Jar() works.
Any idea why constructor complains for my type?
(gradle is 0.8)
Thanks.
Zsolt
--
View this message in context:
http://old.nabble.com/ArchivePublishArtifact-constructor-does-not-accept-my-subtype-tp26792995p26792995.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email