Skip to content

patrontech/code-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 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>code-scanner</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/code-scanner/X.Y.Z/library-X.Y.Z.aar
    • com/code-scanner/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/code-scanner -DrepositoryId=code-scanner -Dfile=PATH_TO_YOUR_LOCAL_REPO/code-scanner/com/code-scanner/library/X.Y.Z/library-X.Y.Z.aar -DpomFile=PATH_TO_YOUR_LOCAL_REPO/code-scanner/com/code-scanner/library/X.Y.Z/library-X.Y.Z.pom -X

You are done!

Ressources

About

Copy of com.budiyev.android:code-scanner from JCenter, JCenter repo is closing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages