From e57a63b3aa1da9f20023b2152e4a6853752e6116 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Tue, 9 Feb 2016 17:45:18 -0600 Subject: [PATCH] Update build scripts for re-organized multi-project build. --- build.gradle | 12 ++++++++++++ cli/build.gradle | 19 ++++++------------- settings.gradle | 5 ++++- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/build.gradle b/build.gradle index 821b2bb..bc3433c 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,16 @@ allprojects { + + buildscript { + repositories { + mavenLocal() + mavenCentral() + } + + dependencies { + classpath 'ch.raffael.pegdown-doclet:pegdown-doclet:1.2' + } + } + group = 'com.jdbernard' version = 'alpha' diff --git a/cli/build.gradle b/cli/build.gradle index 0cd5964..bca597b 100644 --- a/cli/build.gradle +++ b/cli/build.gradle @@ -1,18 +1,9 @@ -buildscript { - repositories { - mavenLocal() - mavenCentral() - } - - dependencies { - classpath 'ch.raffael.pegdown-doclet:pegdown-doclet:1.2' - } -} - apply plugin: 'java' apply plugin: 'groovy' apply plugin: 'ch.raffael.pegdown-doclet' -apply plugin: 'war' +apply plugin: 'application' + +mainClassName = 'com.jdbernard.wdiwtlt.cli.CommandLineInterface' dependencies { compile localGroovy() @@ -20,7 +11,9 @@ dependencies { compile 'ch.qos.logback:logback-core:1.1.3' compile 'org.slf4j:slf4j-api:1.7.14' compile 'com.offbytwo:docopt:0.6.0.20150202' - compile project(":service") + compile 'com.jdbernard:jdb-util:4.2' + compile 'org.fusesource.jansi:jansi-project:1.11' + compile project(":wdiwtlt-core") testCompile 'junit:junit:4.12' diff --git a/settings.gradle b/settings.gradle index d7607a3..38bff7e 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,4 @@ -include 'service', 'webapp' +include 'core', 'cli' + +project(":core").name ="wdiwtlt-core" +project(":cli").name = "wdiwtlt-cli"