From dc38c397ebae3fa15c3eaa0c0846725b9b81e980 Mon Sep 17 00:00:00 2001
From: Daniel <nieltansah@gmail.com>
Date: Thu, 16 Nov 2017 19:16:54 +0700
Subject: [PATCH] TugasBesar2: Add build configurations

---
 TugasBesar2_2017/build.gradle    | 44 ++++++++++++++------------------
 TugasBesar2_2017/settings.gradle | 20 +++------------
 2 files changed, 22 insertions(+), 42 deletions(-)

diff --git a/TugasBesar2_2017/build.gradle b/TugasBesar2_2017/build.gradle
index 454db16..10ad771 100644
--- a/TugasBesar2_2017/build.gradle
+++ b/TugasBesar2_2017/build.gradle
@@ -1,31 +1,25 @@
-/*
- * This build file was generated by the Gradle 'init' task.
- *
- * This generated file contains a commented-out sample Java project to get you started.
- * For more details take a look at the Java Quickstart chapter in the Gradle
- * user guide available at https://docs.gradle.org/4.3/userguide/tutorial_java_projects.html
- */
+plugins {
+    id 'org.akhikhl.gretty' version '2.0.0'
+}
 
-/*
-// Apply the java plugin to add support for Java
-apply plugin: 'java'
+dependencies {
+    // https://mvnrepository.com/artifact/mysql/mysql-connector-java
+    gretty 'mysql:mysql-connector-java:8.0.8-dmr'
 
-// In this section you declare where to find the dependencies of your project
-repositories {
-    // Use 'jcenter' for resolving your dependencies.
-    // You can declare any Maven/Ivy/file repository here.
-    jcenter()
+    // https://mvnrepository.com/artifact/com.sun.xml.ws/jaxws-ri
+    gretty 'com.sun.xml.ws:jaxws-ri:2.3.0'
 }
 
-// In this section you declare the dependencies for your production and test code
-dependencies {
-    // The production code uses the SLF4J logging API at compile time
-    compile 'org.slf4j:slf4j-api:1.7.25'
+allprojects {
+    repositories {
+        jcenter()
+
+        maven {
+            url 'http://download.eclipse.org/rt/eclipselink/maven.repo'
+        }
+    }
+}
 
-    // Declare the dependency for your favourite test framework you want to use in your tests.
-    // TestNG is also supported by the Gradle Test task. Just change the
-    // testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
-    // 'test.useTestNG()' to your build script.
-    testCompile 'junit:junit:4.12'
+task clean(type: Delete) {
+    delete rootProject.buildDir
 }
-*/
diff --git a/TugasBesar2_2017/settings.gradle b/TugasBesar2_2017/settings.gradle
index e906e5e..1f6396d 100644
--- a/TugasBesar2_2017/settings.gradle
+++ b/TugasBesar2_2017/settings.gradle
@@ -1,18 +1,4 @@
-/*
- * This settings file was generated by the Gradle 'init' task.
- *
- * The settings file is used to specify which projects to include in your build.
- * In a single project build this file can be empty or even removed.
- *
- * Detailed information about configuring a multi-project build in Gradle can be found
- * in the user guide at https://docs.gradle.org/4.3/userguide/multi_project_builds.html
- */
-
-/*
-// To declare projects as part of a multi-project build use the 'include' method
-include 'shared'
-include 'api'
-include 'services:webservice'
-*/
-
 rootProject.name = 'TugasBesar2_2017'
+
+include ':SharedLibrary'
+include ':WebApp', ':IdentityService', ':WebService'
-- 
GitLab