crotwell / gradle-macappbundle

A Gradle Plugin to create a Mac OSX .app application and dmg based on the project.
Apache License 2.0
96 stars 33 forks source link

Error prototypes method getJREDirName #51

Closed ago75 closed 6 years ago

ago75 commented 6 years ago

thanks for the job, i'm performing the task with android studio and jdk 1.8+ and i have this problem:

FAILURE: Build failed with an exception.

BUILD FAILED in 0s

crotwell commented 6 years ago

What version of macAppBundle are you using?

Can you share your build.gradle, or at least the macAppBundle section?

Is this on a mac? What version of OSX?

Thanks for reporting this.

ago75 commented 6 years ago

tool: Android Studio 3.0 gradle version: gradle-4.1 gradle plugin: 'com.android.tools.build:gradle:3.0.0' os: macOS Sierra 10.12.6

plugins { id 'java-library' id 'maven' id "edu.sc.seis.launch4j" version "2.4.2" id "edu.sc.seis.macAppBundle" version "2.1.9" }

macAppBundle { appName = "MapsCreator" icon = "src/main/resources/ic_launcher.icns" version = "1.0" mainClassName = "it.jago.navigator.MapsCreator" bundleJRE = false bundleExecutable = "MapsCreator" bundleIdentifier = "it.jago.navigator.MapsCreator" bundleExtras.put("NSHighResolutionCapable", "true") //javaProperties.put("file.encoding", "utf-8") javaExtras.put("X","mx8192M") //javaXProperties.add("startOnFirstThread") dmgName = "MapsCreator 0.1-alpha1" }

tasks.withType(JavaCompile) { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 }

another question : is correct javaExtras.put("X","mx8192M") for jvm option?

thank!

ago75 commented 6 years ago

update: I've compiled the plugin with jdk 1.8 and the problem is no longer present.

Agostino.

crotwell commented 6 years ago

OK. I have not been able to reproduce this here, and the next version, 2.2.0, will be source/target java version of 1.8, so closing as hopefully this is resolved. Let me know if not.