Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


clojuresque/clojars – a Clojars plugin for Gradle

What is Gradle?

Gradle is a build system written in Java and Groovy. One advantage of Gradle is, that the build script itself is also a Groovy script. That means whatever can be done in Groovy can be done in the build script. This is useful to abstract away common patterns in the build like repetition or conditional decisions.

On top of that Gradle provides a convenient build system which comes in form of different plugins. Each plugin defines certain conventions which (if followed) automasie 95% of the build completely. Still the conventions are freely configurable to be adapted to different project structures.

What is clojuresque?

clojuresque is now a plugin for Gradle, which adds Clojure support. It allows compilation with automatic namespace recognition. The plugin is based on the Java plugin and hooks into the standard configurations and archives.

The Clojars sub plugin adds some configuration convenience to deploy to the “clojars” community repository. It sets up a https transport for any given upload task. A convenience method for repository definition is also provided.


apply plugin: 'clojuresque-clojars'

clojars {
    deploy(uploadArchives, username: "user", password: "passw0rd") {
        project {
            licenses {
                license {
                    name 'MIT License'
                    url ''
                    distribution 'repo'


v1.1 -> v1.2: * Breaking change: give credentials directly to deploy call. Extension properties for the purpose are removed. * Plugin name "clojars" is deprecated and will go away in a future version. Use "clojuresque-clojars" instead.

-- Meikel Brandmeyer Erlensee, January 2013

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.