you can actually put the artifact anywhere you want. Password = 'token' // this is a Git Personal Access TokenĪrtifact("$buildDir/ogury-mediation-mopub-5.2.0.aar") I'm using 'zuko' as an example - replace every instance of that name with your Github login. In the module-level adle, implement the Github Packages authentication flow.Connect your project to your Github repository (or create a new one).Add maven-publish plugin to the module-level adle.Convert new project into a standalone Library module.Create a new android Application project.mvn install, then consume from mavenLocal().įor anyone in search of a solution still. I would use the library's package and name, and version 1.0 if you don`t have a version. The package name, group ID and library name are up to you, anything will work. Where you swap aar and jar depending on the type. Once you installed maven, type this in your terminal: mvn install:install-file -Dfile=d:\mylibrary-Dpackaging=aar Putting jars/aars manually into a project is just a bad practice, and reaaally outdated to top. Another advantage is, you'll be able to swap versions of the library as you do with all the others, just change the version in gradle (after deploying the new one), and will work for all your projects. All versions of Android Studio will work, all version of IntelliJ will work, VSCode will work, the command line will work, etc. if you install maven, you can use the mavenLocal() repository in gradle and read from there as with any other repo, regardless of the IDE you are using. In my opinion, the best way to do this is to deploy the jar/aar to a local maven repository.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |