Hello,
   I would like to add some functionality to my Javascript Library plugin
which would allow user's to specify artifacts for the plugin to version and
copy over to the lib directory.

Ideally, I would like for user's to be able to do something like:
[code src="build.gradle"]
artifacts {
   javascript ['context_library', 'context2_library']
}
[/code]

Where the list are file names which should be versioned and copied to the
build/libs directory.

Eg. In the case of context2_library, the artifact creation would take the
file named 'context2_library.js', and then version it and copy it to the
libs directory, resulting in:
build/libs/context2_library-[version].js

I'm not sure where to even start on this one. The JavaPlugin seems to need
to only set up a configuration like this:
[quote src="JavaPlugin.java:156"]
Configuration compileConfiguration =
configurations.add(COMPILE_CONFIGURATION_NAME).setVisible(false).
                setDescription("Classpath for compiling the sources.");
[/quote]

Trying to do this myself doesn't seem to resolve anything, I always get "No
such property: javascript for class:
org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler".

Any help here would be greatly appreciated.

Thanks,
Eric

-- 
Learn from the past. Live in the present. Plan for the future.
Blog: http://www.townsfolkdesigns.com/blogs/elberry
jEdit <http://www.jedit.org> - Programmer's Text Editor
Bazaar <http://bazaar.canonical.com> - Version Control for Humans

Reply via email to