{"action":"created","issue":{"url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/869","repository_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine","labels_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/869/labels{/name}","comments_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/869/comments","events_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/869/events","html_url":"https://github.com/jMonkeyEngine/jmonkeyengine/issues/869","id":337724540,"node_id":"MDU6SXNzdWUzMzc3MjQ1NDA=","number":869,"title":"Are you going to port jme3 sdk to gradle? ","user":{"login":"xahon","id":18731681,"node_id":"MDQ6VXNlcjE4NzMxNjgx","avatar_url":"https://avatars3.githubusercontent.com/u/18731681?v=4","gravatar_id":"","url":"https://api.github.com/users/xahon","html_url":"https://github.com/xahon","followers_url":"https://api.github.com/users/xahon/followers","following_url":"https://api.github.com/users/xahon/following{/other_user}","gists_url":"https://api.github.com/users/xahon/gists{/gist_id}","starred_url":"https://api.github.com/users/xahon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xahon/subscriptions","organizations_url":"https://api.github.com/users/xahon/orgs","repos_url":"https://api.github.com/users/xahon/repos","events_url":"https://api.github.com/users/xahon/events{/privacy}","received_events_url":"https://api.github.com/users/xahon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-03T02:34:46Z","updated_at":"2018-07-03T11:06:07Z","closed_at":null,"author_association":"NONE","body":"Hello. I'm having troubles with compiling gradle-based project on Android (honestly, I can't understand how to do it at all). Do you plan to make something similar to libgdx system? In libgdx you can run your application on Android very easy using adb, but in jme3 I can't\r\n\r\nPs. I don't use sdk and use idea instead"},"comment":{"url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/comments/402112072","html_url":"https://github.com/jMonkeyEngine/jmonkeyengine/issues/869#issuecomment-402112072","issue_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/869","id":402112072,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjExMjA3Mg==","user":{"login":"MeFisto94","id":12577813,"node_id":"MDQ6VXNlcjEyNTc3ODEz","avatar_url":"https://avatars0.githubusercontent.com/u/12577813?v=4","gravatar_id":"","url":"https://api.github.com/users/MeFisto94","html_url":"https://github.com/MeFisto94","followers_url":"https://api.github.com/users/MeFisto94/followers","following_url":"https://api.github.com/users/MeFisto94/following{/other_user}","gists_url":"https://api.github.com/users/MeFisto94/gists{/gist_id}","starred_url":"https://api.github.com/users/MeFisto94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeFisto94/subscriptions","organizations_url":"https://api.github.com/users/MeFisto94/orgs","repos_url":"https://api.github.com/users/MeFisto94/repos","events_url":"https://api.github.com/users/MeFisto94/events{/privacy}","received_events_url":"https://api.github.com/users/MeFisto94/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T11:06:07Z","updated_at":"2018-07-03T11:06:07Z","author_association":"MEMBER","body":"I don't completely understand what you are looking for, so I'll explain everything:\r\n\"Back then\" the SDK was built using custom ANT Tasks for jME users. Those are handling packaging your applications etc. Today gradle is the bee's knees, which is why no one wants ant anymore (though it still works actually).\r\n\r\nThe Problem is the SDK is subclassing Netbeans \"Project\" class, which the gradle plugin also does. This means you can either have the SDK Tools or the Gradle Project Thing.\r\n\r\nI tried to integrate the both of them but I couldn't even add the gradle plugin as a dependency to a sdk netbeans module. I chatted with both the gradle plugin author as well as with the maintainers of netbeans but no one had a clue. I hope that with Netbeans 9.0 they have time again to look at this. If not, I'd need to merge the whole sourcecode into our code base, which is something I don't want to do, it's a maintenance hell.\r\n\r\nThe other dimension is the NbAndroid Module, which brought Android compatibility to Netbeans. In addition to that we had some custom Android Code. Unfortunately Android switched to gradle as well and changed their toolings, which is why the SDK currently is unable to build to Android (NbAndroidModule used ant and I _think_ it isn't updated anymore) and the SDK used android.bat to handle the AVM images and all. Since android.bat has been replaced and the syntax is completely different and more complex this should been redone completely.\r\n\r\nActually for Android I think you really profit from using Android Studio (which is IntelliJ), since it's generally built around Android, has a great UI Builder with Android in mind and all that which you would probably be missing in the SDK.\r\n\r\n\r\nWORKAROUND 1\r\nThe Workaround I am currently using is having an old regular sdk project and adding a build.gradle (but NOT enabling the Gradle Plugin in the SDK). That way you can use the SDK as regular and I simply use the command line to launch my code. You only have the Problem that you need to add the libraries from maven manually to the SDK Project for the error highlighting to be satisfied.\r\n\r\nI'm using these Gradle Tasks to support Debugging from within the SDK and Profiling (It will tell you the path to the .so/.dll inside Netbeans)\r\n```gradle\r\ntask(debug, dependsOn: 'classes', type: JavaExec) {\r\n    main = mainClassName\r\n    classpath = sourceSets.main.runtimeClasspath\r\n    jvmArgs = [\"-Xdebug\", \"-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005\"]\r\n}\r\n\r\ntask(profile, dependsOn: 'classes', type: JavaExec) {\r\n\tmain = mainClassName\r\n\tclasspath = sourceSets.main.runtimeClasspath\r\n\t\r\n\tjvmArgs = ['-XX:+UseLinuxPosixThreadCPUClocks', \"-agentpath:/home/marc/Dokumente/02_GIT/sdk/build/testuserdir/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so=/home/marc/Dokumente/02_GIT/sdk/build/testuserdir/lib,5140\"]\r\n}\r\n\r\ntask(profileJMC, dependsOn: 'classes', type: JavaExec) {\r\n    main = mainClassName\r\n    classpath = sourceSets.main.runtimeClasspath\r\n    \r\n    jvmArgs = ['-XX:+UnlockCommercialFeatures', '-XX:+FlightRecorder']\r\n}\r\n```\r\n\r\nWORKAROUND 2:\r\nThis is much like Workaround 1, however you don't use the SDK to run things, you just use it to convert and edit models and then code in another IDE.\r\n\r\nWORKAROUND 3:\r\nThere is the \"jMonkeyBuilder\", an Application designed to do tasks like Model Converting, Inspection, Material editing etc just like the SDK does. It also comes with an IntelliJ Plugin"}}
{"actor":{"display_login":"MeFisto94"}}