mini2dx / parcl Goto Github PK
View Code? Open in Web Editor NEWGradle plugin for bundling your Java application for distribution on Windows, Mac and Linux
License: MIT License
Gradle plugin for bundling your Java application for distribution on Windows, Mac and Linux
License: MIT License
Was attempting to add this to my project and got the error:
* What went wrong:
Could not determine the dependencies of task ':project:bundleNative'.
> Task with path 'installApp' not found in project ':project'.
Followed directions to add the buildscript
and project(":project") {
as listed. Have the project included in the root settings.gradle
file.
In the case that a 64-bit JRE is bundled, or one is picked up from the system, the runner will crash with a debugger prompt that closes before the option to Debug comes available.
http://www.oracle.com/technetwork/java/javase/jre-8-readme-2095710.html
The Oracle license provides a list of "optional" files in the JRE distribution that can be omitted if the features aren't needed. A few configuration options could be added to optionally omit those files and save space.
Add support for generating a .deb installer for Debian platforms. This should also install a launch icon when possible.
Accodring to this link: https://discuss.gradle.org/t/programmatically-set-applications-global-mainclassname-in-custom-plugin/22805 the application plugin uses an old api. I had to use
project.getConvention().getPlugin(ApplicationPluginConvention.class).setMainClassName("full.ClassName")
in my Gradle 4.4 project, to set the mainClassName variable. I think it would be nice if this would be mentioned in the Readme under a note section or something.
hey
thanks for a great plugin. I'm having an issue you may be able to help me with. I got the plugin embedded into my gradle build ok and I can run the tasks. But the windows\libs folder is empty - so nothing is being "packaged". Any ideas?
How can I configure this plugin using the Kotlin DSL? using configure<Exe>
does not work.
Hello,
I tried running the bundleNative task but due to some odd reason I am getting this exception.
Caused by: java.lang.IllegalArgumentException: Neither path nor baseDir may be null or empty string. path='null' basedir='/Users/sneh/projects/PBO/PBOClient/desktop'
Here is how my desktop configuration looks like -
apply plugin: 'application'
apply plugin: "org.mini2Dx.parcl"
project.ext.assetsDir = new File("../core/assets");
mainClassName = 'com.pbo.game.desktop.DesktopLauncher'
eclipse.project.name = appName + '-desktop'
sourceCompatibility = 1.8
dependencies {
compile project(':core')
compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
}
jar {
archiveName "${appName}-${version}.jar"
from { configurations.compile.collect { zipTree(it) } }
manifest {
attributes 'Main-Class': project.mainClassName
}
}
run {
ignoreExitValue = true
}
parcl {
exe {
exeName = "myapplication"
}
app {
appName = "My Application"
applicationCategory = "public.app-category.adventure-games"
displayName = 'My Application'
identifier = 'com.example.my.apple.identifier'
copyright = 'Copyright 2015 Your Name Here'
}
}
I want to be able to distribute my java app on Linux, Windows, and Mac using their typical packaging. I can't tell from the readme whether this plugin creates .exe/.app/etc or whether it creates .dmg/.deb/etc.
Add support for generating a .rpm installer for Redhat platforms. This should also install a launch icon when possible.
Hi,
Thanks for the awesome plugin. I am having an issue with this. I am trying to bundle my application for OSX. I am able to generate the OSX executable but it won't run without assets obviously. I am not sure where exactly to place the assets. I tried placing my assets inside the package in all the folders but I don't think its working.
Thanks
I get this error:
`* What went wrong:
An exception occurred applying plugin request [id: 'org.mini2Dx.parcl']
Failed to apply plugin 'org.mini2Dx.parcl'.
Could not create task ':desktop:bundleNativeZip'.
> You can't map a property that does not exist: propertyName=archiveName
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
The following build error:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':bundleNative'.
> Task with path 'installApp' not found in root project 'parcltest'.
occurs when building on Windows with a gradlew or IDEA's gradle runner.
My build.gradle
group 'com.idolagames'
version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.0.6'
repositories {
mavenLocal()
maven { url "https://mini2dx.org/maven/content/repositories/thirdparty" }
maven { url "https://mini2dx.org/maven/content/repositories/releases" }
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath group: 'org.mini2Dx', name: 'parcl', version: '1.0.11'
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: "org.mini2Dx.parcl"
sourceCompatibility = 1.5
mainClassName = "idola.MainKt"
sourceSets {
main {
java {
srcDirs = ['src/java']
}
kotlin {
srcDirs = ['src/kotlin']
}
resources {
srcDirs = ['src/resources']
}
}
}
parcl {
exe {
exeName = "parcltest"
}
}
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.