[dasher] Fix circleci setup and build.gradle for java (#150)



commit a414899ca9b2f8ab091edcb593fbb6f3bf0367c8
Author: Cagdas Evren Gerede <cagdasgerede users noreply github com>
Date:   Fri Mar 23 23:57:43 2018 +0300

    Fix circleci setup and build.gradle for java (#150)
    
    * Delete config.yml
    
    * Create config.yml
    
    * Update build.gradle
    
    * Update config.yml
    
    * Update config.yml
    
    * Update config.yml
    
    * Update config.yml

 .circleci/config.yml | 26 ++++++++++++++++++++++++++
 config.yml           | 46 ----------------------------------------------
 java/build.gradle    | 23 +----------------------
 3 files changed, 27 insertions(+), 68 deletions(-)
---
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 00000000..718bb62b
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,26 @@
+# Java Gradle CircleCI 2.0 configuration file
+#
+# Check https://circleci.com/docs/2.0/language-java/ for more details
+#
+version: 2
+jobs:
+  build:
+    docker:
+      - image: circleci/openjdk:8-jdk
+
+    environment:
+      # Customize the JVM maximum heap limit
+      JVM_OPTS: -Xmx128m
+      TERM: dumb
+    
+    steps:
+      - checkout
+      - run:
+          command: |
+            echo Content of current directory
+            ls -al
+            echo Switching to java directory
+            cd java
+            echo Running tests
+            gradle test
+
diff --git a/java/build.gradle b/java/build.gradle
index f4bf90f0..ce0ec121 100644
--- a/java/build.gradle
+++ b/java/build.gradle
@@ -1,30 +1,9 @@
-/*
- * This file was generated by the Gradle 'init' task.
- *
- * This generated file contains a 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.6/userguide/tutorial_java_projects.html
- */
-
-plugins {
-    // Apply the java plugin to add support for Java
-    id 'java'
-
-    // Apply the application plugin to add support for building an application
-    id 'application'
-}
-
-// Define the main class for the application
-mainClassName = 'App'
+apply plugin: 'java'
 
 dependencies {
-    // Use JUnit test framework
     testCompile 'junit:junit:4.12'
 }
 
-// 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()
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]