GithubHelp home page GithubHelp logo

xlisp / gradle-clojure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clojurephant/clojurephant

0.0 2.0 0.0 285 KB

Clojure and Clojurescript support for Gradle

Home Page: https://gradle-clojure.github.io/gradle-clojure

License: Apache License 2.0

Clojure 43.27% Java 56.73%

gradle-clojure's Introduction

gradle-clojure

Download CircleCI

What is this?

A Gradle plugin providing support for the Clojure and Clojurescript languages.

NOTE: gradle-clojure should not be considered stable until 1.0.0. Until then, minor versions (e.g. 0.1.0 to 0.2.0) will likely contain breaking changes.

Clojure Features

  • Packaging Clojure code (and/or AOT compiled classes) into a JAR
  • AOT compilation
  • Running clojure.test tests (integrated into Gradle's Test task)
  • Running an nREPL server

ClojureScript Features

Coming soon

Why should you care?

The goal is to provide the same creature comforts that Leiningen and Boot do for Clojure/Clojurescript development, while also leveraging Gradle's unique features:

  • Strong support for polyglot projects
  • Strong support for multi-project builds
  • Large plugin ecosystem

Usage

See the Release Notes for available versions, compatibility with Gradle, Java, and Clojure, and detailed change notes.

This plugin assumes you're using a sane layout for your Clojure code - namespaces corresponding to your source code layout, and one namespace per file. The plugin uses the filenames to calculate the namespaces involved, it does not parse the files looking for ns forms.

Quick Start

Download the sample project for the basic structure.

Common Commands

  • ./gradlew test Executes your clojure.test tests (and any other JUnit tests in your build).
  • ./gradlew clojureRepl Starts an nREPL server (on a random port by default).

build.gradle

plugins {
  id "gradle-clojure.clojure" version "<version>"
}

dependencies {
  // whatever version of clojure you prefer (older versions may not be compatible)
  compile 'org.clojure:clojure:1.8.0'
  // and any other dependencies you want on the compile classpath
  // compile 'group:artifact:version'

  // needed for test integration
  testCompile 'junit:junit:4.12'
  // and any other test-specific dependencies
  // testCompile 'group:artifact:version'

  // dependencies for REPL use only
  devCompile 'org.clojure:tools.namespace:0.3.0-alpha4'
}

See all available options in the docs.

Getting help

Please use the repo's issues for all questions, bug reports, and feature requests.

Contributing

See the guidelines for details on how you can contribute.

Acknowledgements

This project started from the cursive.clojure plugin by Colin Fleming (@cmf, original author) and Piotrek Bzdyl (@pbzdyl).

Thanks to John Szakmeister (@jszakmeister) for organizing a call with Gradle to get us started in the right direction.

Thanks to all our contributors.

gradle-clojure's People

Contributors

ajoberstar avatar anolivetree avatar pbzdyl avatar brown131 avatar

Watchers

James Cloos avatar Steve Chan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.