Android clean way of including other projects? Tool like maven, gradle, etc - java

I am trying to configure an eclipse project such that it will be easy to import by another programmer, and keep the git repository light. I really like maven for my java ee projects, but i was unable to use it.
For now, my android app need this:
facebook android sdk
google play services
amazon s3 android sdk
support library v4
It seems there is no clean way of doing this, only hacks and workarounds. I am using the eclipse IDE. Any ideas?

Related

How to run and configure java maven project in MuleSoft Anypoint Studio?

I have created a java maven project in eclipse to get response from web services using rest api, but not able to get the response in Anypoint Studio using the same code I am getting error like importing of rest assured and many more. Could anyone help how to run same maven project that i have created in eclipse in MuleSoft Anypoint Studio to get the response. Please let me know if any further information required.
Anypoint Studio only supports Mule projects.
Since it is based on Eclipse You might be able to install the Eclipse plugin for Java to add support for Java projects.

How to share code between Eclipse Swing/maven and Androidstudio / gradle project?

I am an experienced Java developer with years of familarity with Eclipse and Maven.
My goal is to create an android application and I am getting familiar with the latest Development environment Android Studio 2.3.2 which obviously uses Java 8 and Gradle. The app shall share code with an Eclipse based project that uses maven and Swing and is also Java 8 based. I am intending to publish the result as an open source project on github.
I found e.g.
https://github.com/uhafner/android-config as an example but that seems to be outdated.
https://github.com/cgeo/cgeo - which explictly states that eclipse is only used for codewriting/testing
Gradle project for plain Java and Android with single source tree suggests an answer for a gradle only approach that has a tutorial link as an answer (which is not accepted) and no example
https://github.com/javadev/calc which is purely maven driven and has two pom.xml files
https://github.com/adrian/upm-swing and https://github.com/adrian/upm-android simply have copied subdirectories instead of any kind of shared config management
How feasible is a combined maven/gradle project structure?
What would be a proper way to structure the project files to accomplish the above goals?
What are good examples projects that follow a similar approach?
My reason to be reluctant with Gradle and IntelliJ is obvious. It is an unfamiliar environment for me and android is not the main target of my development.
Part of the answer seems be covered at:
Can Android Studio be used to run standard Java projects?
I got somewhat of a success with the project https://github.com/BITPlan/can4eve
but would appreciate some help on the android studio / gradle side of things.
The project also has travis support built in and I am also running nightly Jenkins checks based on maven.

Can Java Netbeans desktop application and Maven work together?

I have developed a java desktop application in netbeans 8.1 for a security project I am currently busy with.
I have been asked by the client to add Google drive or DropBox to the desktop application for storing the data files on the cloud storage at any of the two mentioned above.
I have done research and have seen that the only way to get this to work is to use Maven or Gradle.
I have picked up that there is Maven projects in Netbeans, But I would like to know if the following is possible:
Would it be possible to just copy the desktop application to the Maven created project?
Do I need to use the dependencies to add the jars needed for the desktop application classes?
Will I need to re-download the jar files or how can I add the jars that I currently have on the computer to the Maven project?
Will the copying of the normal desktop application to the maven project affect any of the other features created previously?
Does the Maven project work differently from normal java desktop applications created in Netbeans?
I would be very grateful for answers to this or any other information that would help out. I do not want to start this transition and land up it not working out.
Any information will be tremendously helpful.
Much appreciated for your help
At work here, most java developers use netbeans with Maven.
Netbeans for java is built around Maven.

how to get Android-Studio modules name I Intellij Plugin development

I want to develop plugin for Android studio for this I am using Intellij idea plugin APIs. For this I need to get project module names in project. Can anyone suggest how i can get list of modules in android studio project using intellij plugin APIs.
com.intellij.openapi.module.ModuleManager#getModules

How do I migrate an Eclipse GAE project to Maven such that it won't be tied to Eclipse?

I have an open source Eclipse Google App Engine project (it's called LastCalc and it's open source, you can find it here, created using the GAE Eclipse plugin.
The problem is that several months ago I switched IDEs to IntelliJ IDEA. Since most of my projects were Maven-based this wasn't an issue, but LastCalc was stubbornly tied to Eclipse.
I'm hoping that someone can suggest an easy way to migrate this project to Maven such that it will work nicely in both IDEA and Eclipse.
We released the app engine maven plugin and a gustbook sample with that plugin. I don't think the manual migration is very difficult. You can create a directory structure similar to our guestbook sample and copy your source and resource files. Dependency might be a bit cumbersome, so maybe you can try the 'Convert to Maven Project' functionality of the newer version of m2eclipse.

Categories

Resources