How to publish an Android library from GitHub? [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
Recently I have been trying to figure out how to publish my ScaleNumberPicker Android library from GitHub.
I read articles about publishing to Jitpack, GitHub Packages and Maven Central, but I found it confusing.
What is the difference between these different package repositories, and which one is the best for Android Studio? And how do I publish? Do I need to create a release first on GitHub? And after publishing, can I modify the README.md file on my GitHub repository to add the usage instructions?

JitPack pulls the source from your GitHub repo and builds it (when the first user uses the lib).
For Maven Central and GitHub Packages, you build and upload your own artifacts.
I'd say, the simplest way is JitPack.
Follow the docs to publish the lib. (Follow the Guide to Android)
After adding a release, you still can edit the README, and you can continue to work on the lib.
If you want to publish a new version, just create a new release and update the README.

Related

Does java library update when changing file in path? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have created a library to use some utilities I need in multiple projects. So lets say I'm building a new version of the library and overwrite the old one, do my other project automatically update the library to the newer version when I reload my project? (Or when I build it)
You should not be referencing external libraries by relative path unless you have a good reason for it, exactly for reasons like these. Ideally you want to use a build automation tool which will handle this, for example Maven, Gradle or Ant, so that the dependencies are included on compile and are a part of your JAR or whatever you are building your project into.
https://www.baeldung.com/ant-maven-gradle

Run Maven plugin globally [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm trying to get a maven plugin (specifically Jacoco) to run on every maven project, but I can't find much info on this. I don't think settings.xml would work and the lifecycle extension documentation isn't very helpful either.
Any ideas?
Usually, you declare such plugins in a company parent POM and use it as parent in all your projects.
according to maven doc
https://maven.apache.org/settings.html
I think that you can't enforce a plugin on every maven project of a given host. there's no settings directive to do that.
Anyway you can facilitate the command line plugin dedicated goal through pluginGroups settings section.

how to manipulate android libraries? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a library that I got it from github and I wanna make changes in some of the methods and layouts.how can I do it?
also I should say my workplace is AndroidStudio and use Gradle for adding library to my project.
Is there a way to manipulate gradle libraries?!
There are 2 solutions for these:-
u can download the .zip of the library modify it and import as a module in android studio project
clone the repository ,modify it and then upload it mavencentral so that u can use as dependency in studio or download .zip after modifying it and import as android studio project
If you use any function related with that library in your project you can access the specific class using Control + Left click on the function and go any deep you need. Then you can make it there the local modificacion of the library.
It is also not so recomended to make major changes.

Having multiple eclipse project in one Github repository [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I want to develop a multi-platform game using libGdx (for Desktop and Android).To share my work with some friends, I created a GitHub repository.
In ecplise, I have 3 different projects :
MyProject-core (most of the game)
MyProject-desktop (specific desktop code)
MyProject-android (specific android code)
I want to push them in my Github repository in 3 different folders.
Basicaly, I want my repository to look like this :
MyRepository
/core/
/desktop/
/android/
README.md
LICENCE.md
My question is, Should I use 3 different local git repositories, or should I just use 1 large repo?
It seems like you may want to use Git submodules.
You can have 1 main repo, with each of the other folders being a submodule, which is just a separate repo you pull down on checkout.
When pulling down your main repo you would do git submodule init which pulls down the other 3 repos/submodules.
The benefit of doing this instead of just having 1 repo with these 3 folders is that each repo with different codebases is essentially its own project, with its own language and set of issues.

How to use java library not supplied as a jar [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am programming a YouTube-Downloader, and I'd like to use the 2 libraries VGet and WGet, since no other library worked. How do I embed those into my project? I'm using IntelliJ 14.
As noted at the bottom on the pages of those two libraries, the libraries are available on Maven Central.
You could search on Maven for "com.github.axet", e.g. http://search.maven.org/#search%7Cga%7C1%7Ccom.github.axet
Then you'll see the vget and wget libraries. By clicking on the latest version, you come to a page where there is also a jar-file to be downloaded.
But please be aware: Both libraries require additional libraries (e.g. some of the Apache commons libs), which you'll need as well. It is thus highly recommended, to use a dependency management tool like Maven, Ivy or Gradle for your project. I don't know IntelliJ that good, but at least Maven should be supported out of the box. Then all you have to do is specify that you want to use wget and vget, and libraries used by wget or vget will be automatically added to your classpath as well.

Categories