How to create a library based on libGdx

I want to create my own library that will use the libgdx framework. As a result, I want to get a jar of my library that can be added to any other project that also uses libgdx.

The problem is that I cannot find any tutorial on how to do this. I can build a normal libgdx project, but how can I get the jar library from it? Maybe I need to create a gradle based project and compile libgdx dependencies?

If anyone has experience creating libraries or extensions based on libgdx, please share your experience.

+3


source to share


2 answers


The question is a little old, but for others who might stumble here; This is the best solution I have found for creating / using my own library project in another LibGDX project. Though I believe the HTML project requires further steps that I have not investigated.



+1


source


Using eclipse:

File-> Export-> Java-> JAR file-> Export files and resources of generated classes



AFAIK you can say that you don't need to package the required libraries with JARs.

+1


source







All Articles