From f1676dbba8deb029346af241c33ef366893089de Mon Sep 17 00:00:00 2001 From: Janus Varmarken Date: Tue, 24 Apr 2018 09:48:07 -0700 Subject: [PATCH] apply application plugin --- Code/Projects/SmartPlugDetector/build.gradle | 3 +++ .../src/main/java/edu/uci/iotproject/Main.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Code/Projects/SmartPlugDetector/build.gradle b/Code/Projects/SmartPlugDetector/build.gradle index df80f62..29b73eb 100644 --- a/Code/Projects/SmartPlugDetector/build.gradle +++ b/Code/Projects/SmartPlugDetector/build.gradle @@ -2,9 +2,12 @@ group 'edu.uci.iotproject' version '1.0-SNAPSHOT' apply plugin: 'java' +apply plugin: 'application' sourceCompatibility = 1.8 +mainClassName = "edu.uci.iotproject.Main" + repositories { mavenCentral() } diff --git a/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/Main.java b/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/Main.java index f088fd6..903839d 100644 --- a/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/Main.java +++ b/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/Main.java @@ -8,7 +8,7 @@ package edu.uci.iotproject; public class Main { public static void main(String[] args) { - + System.out.println("it works"); } } -- 2.34.1