-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add document for setting up Gradle #83
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
= Work with Gradle | ||
|
||
WARNING: Gradle support is experimental | ||
|
||
== Requirements | ||
|
||
* `gradle` command must be installed. | ||
** antq alone does not work. | ||
|
||
== build.gradle | ||
|
||
To work with gradle, you should update your `build.gradle` as following. | ||
|
||
[source,build.gradle] | ||
---- | ||
plugins { | ||
id 'java-library' | ||
} | ||
repositories { | ||
mavenCentral() | ||
maven { | ||
name = 'clojars' | ||
url = 'https://repo.clojars.org' | ||
} | ||
} | ||
dependencies { | ||
runtimeOnly 'org.clojure:clojure:1.10.3' | ||
runtimeOnly 'com.github.liquidz:antq:latest.release' | ||
} | ||
// Required to support detecting repositories | ||
task antq_list_repositories { | ||
doLast { | ||
project.repositories.each { println "ANTQ;" + it.name + ";" + it.url } | ||
} | ||
} | ||
// Main task to run antq | ||
task outdated(type: JavaExec) { | ||
classpath = sourceSets.main.runtimeClasspath | ||
mainClass = "clojure.main" | ||
args = ['-m', 'antq.core'] | ||
} | ||
---- | ||
|
||
Then, run `gradle outdated`. |