Skip to content

Move this public ressource from JCenter to our github account since we want to get rid of jcenter asap

Notifications You must be signed in to change notification settings

patrontech/pixplicity-sharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

How to publish a new AAR on Github Maven side

Security step

If you never had to setup it before you may need to setup a settings.xml in your ~/.m2/ folder. In this file precise at least this:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <servers>
    <server>
      <id>pixplicity-sharp</id>
      <username>GITHUB_USERNAME</username>
      <password>GITHUB_TOKEN</password>
    </server>
  </servers>
</settings>

Publication on Maven

In the next lines X.Y.Z will represent a version number like 1.2.3

You need two things:

  • Generate the new version folder and files:
    • com/pixplicity/sharp/library/X.Y.Z/library-X.Y.Z.aar
    • com/pixplicity/sharp/library/X.Y.Z/library-X.Y.Z.pom
  • Now you can upload it by using the command below, replace the PATH_TO_YOUR_LOCAL_REPO and X.Y.Z:
mvn deploy:deploy-file -Durl=https://maven.pkg.github.com/patrontech/pixplicity-sharp -DrepositoryId=pixplicity-sharp -Dfile=PATH_TO_YOUR_LOCAL_REPO/pixplicity-sharp/com/pixplicity/sharp/library/X.Y.Z/library-X.Y.Z.aar -DpomFile=PATH_TO_YOUR_LOCAL_REPO/pixplicity-sharp/com/pixplicity/sharp/library/X.Y.Z/library-X.Y.Z.pom -X

You are done!

Ressources

About

Move this public ressource from JCenter to our github account since we want to get rid of jcenter asap

Resources

Stars

Watchers

Forks

Packages