Hello World in Clojure with Gradle + Clojurephant
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
.gradle/
|
||||||
|
build/
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
plugins {
|
||||||
|
id 'dev.clojurephant.clojure' version '0.9.1'
|
||||||
|
id 'application'
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
maven {
|
||||||
|
name = 'Clojars'
|
||||||
|
url = 'https://repo.clojars.org/'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation 'org.clojure:clojure:1.12.0'
|
||||||
|
}
|
||||||
|
|
||||||
|
clojure {
|
||||||
|
builds {
|
||||||
|
main {
|
||||||
|
aotNamespaces.add('hello')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
application {
|
||||||
|
mainClass = 'hello'
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
rootProject.name = 'hello-clojure'
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
(ns hello
|
||||||
|
(:gen-class))
|
||||||
|
|
||||||
|
(defn -main
|
||||||
|
[& args]
|
||||||
|
(println "Hello, World!"))
|
||||||
Reference in New Issue
Block a user