changeset 558:8e507ce09187

update build.gradle
author riono
date Thu, 30 Jan 2020 17:34:22 +0900
parents 07bc0bf4b21a
children 3481a187687f
files build.gradle
diffstat 1 files changed, 5 insertions(+), 47 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Thu Jan 30 17:26:01 2020 +0900
+++ b/build.gradle	Thu Jan 30 17:34:22 2020 +0900
@@ -1,11 +1,10 @@
 plugins {
-    id "edu.sc.seis.macAppBundle" version "2.3.0"
+    id 'application'
 }
 
 apply plugin:'java'
 apply plugin: 'eclipse'
 apply plugin: 'application'
-apply plugin: "edu.sc.seis.macAppBundle"
 
 
 sourceCompatibility = JavaVersion.VERSION_11
@@ -16,20 +15,13 @@
 def buildNo = processBuildNo(version)
 
 defaultTasks 'clean' , 'jar'
-macAppBundle {
+
+application {
     mainClassName = "com.glavsoft.viewer.TreeViewer"
-    icon = "src/viewer_swing/resources/TreeVNC.png.icns"
-    bundleJRE = true
-    javaProperties.put("apple.laf.useScreenMenuBar", "true")
 }
-
-//convasion jar file for .app
-//https://github.com/crotwell/gradle-macappbundle/wiki/Intro
-//icon create web applecation
-//https://iconverticons.com/online/ 
+ 
 configurations {
     viewerSwingImplementation { extendsFrom implementation }
-    //viewerSwingRuntime { extendsFrom viewerSwingCompile, runtime }
 }
 
 sourceSets {
@@ -56,8 +48,7 @@
 dependencies {
     viewerSwingImplementation group: 'com.jcraft', name: 'jsch', version: '0.1.+', ext: 'jar'
     implementation group: 'com.jcraft', name: 'jsch', version: '0.1.+', ext: 'jar'
-    //viewerSwingRuntime configurations.viewerSwingCompile
-}
+ }
 
 def manifestAttributes = ['Main-Class': 'com.glavsoft.viewer.TreeViewer',
         'Implementation-Version': "${project.version} (${buildNo})",
@@ -65,45 +56,20 @@
         'Implementation-Vendor': 'GlavSoft LLC.']
 
 jar {
-    //baseName = project.baseName
-    //version = null
     manifest {
         attributes manifestAttributes
     }
-//    def runtimeDeps = configurations.viewerSwingRuntime.collect {
-//        it.isDirectory() ? it : zipTree(it)
-//    }
-//    from(runtimeDeps) {
-//        exclude 'META-INF/**'
-//    }
 }
 
 
 
-
 task noSshJar (type: Jar, dependsOn: classes) {
-//    baseName = 'nossh/' + project.baseName
-//    version = null
     manifest {
         attributes manifestAttributes
     }
     from sourceSets.main.output
 }
 
-//artifacts {
-//    archives file('src/web/viewer-applet-example.html')
-//    archives noSshJar
-//}
-
-//uploadArchives {
-//    repositories {
-//
-//    }
-//	uploadDescriptor = false
-//}
-
-//task dist(dependsOn: uploadArchives)
-
 def processBuildNo(currentVersion) {
     final String VERSION = 'version'
     final String BUILD = 'build'
@@ -149,11 +115,3 @@
 // set mainclass to Application Plugin
 mainClassName = 'com.glavsoft.viewer.TreeViewer'
 applicationName = 'TreeVNC'
-
-//allprojects {
-//    gradle.projectsEvaluated {
-//        tasks.withType(JavaCompile) {
-//            options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
-//        }
-//    }
-//}