From 668547ad259f1196048097d6661f370e8a535c1c Mon Sep 17 00:00:00 2001 From: Rob Greene Date: Sun, 6 Oct 2019 13:03:43 -0500 Subject: [PATCH] Noticed new Gradle projects have a newer structure; making changes to reflect this. #36 --- build.gradle | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index d5db5fd..5cbb964 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,10 @@ +plugins { + id 'java' + id 'application' + id 'maven' + id 'signing' +} + repositories { mavenCentral() maven { @@ -6,14 +13,14 @@ repositories { } } -apply plugin: 'java' -apply plugin: 'application' -apply plugin: 'maven' -apply plugin: 'signing' - mainClassName = 'com.webcodepro.applecommander.ui.AppleCommander' version "${version}" +compileJava { + sourceCompatibility = '1.8' + targetCompatibility = '1.8' +} + test { String swtDependency switch (System.getProperty('os.name').toLowerCase().split()[0]) {