aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorClemens Fries <ormpaloompa@xenoworld.de>2016-05-18 18:46:27 +0200
committerxeno <xeno@eisberg.nacht>2016-05-19 00:36:52 +0200
commit62e2a4bbd5ba239fc413607b223822cf4146a673 (patch)
treedbff117e4d8fc44bfb969ebd28c9dc1a9dac586c /build.gradle
Initial commit
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle39
1 files changed, 39 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..d9c6a07
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,39 @@
+apply plugin: 'java'
+
+group = 'de.xenoworld'
+version = '1.0-SNAPSHOT'
+
+description = ""
+
+sourceCompatibility = 1.8
+targetCompatibility = 1.8
+
+repositories {
+ jcenter()
+ mavenCentral()
+}
+
+configurations {
+ asciidoclet
+}
+
+dependencies {
+ asciidoclet 'org.asciidoctor:asciidoclet:1.+'
+ compile group: 'org.xerial', name: 'sqlite-jdbc', version:'3.8.7'
+ compile group: 'org.apache.commons', name: 'commons-lang3', version:'3.4'
+ testCompile group: 'org.hamcrest', name: 'hamcrest-all', version:'1.3'
+ testCompile group: 'org.mockito', name: 'mockito-all', version:'1.10.19'
+ testCompile group: 'junit', name: 'junit', version:'4.12'
+}
+
+// as shown here: http://asciidoctor.org/docs/asciidoclet/
+javadoc {
+ options.docletpath = configurations.asciidoclet.files.asType(List)
+ options.doclet = 'org.asciidoctor.Asciidoclet'
+ options.overview = "src/main/java/overview.adoc"
+ options.addStringOption "-base-dir", "${projectDir}"
+ options.addStringOption "-attribute",
+ "name=${project.name}," +
+ "version=${project.version}," +
+ "title-link=http://example.com[${project.name} ${project.version}]"
+}