Skip to content

Instantly share code, notes, and snippets.

@jitpack-io
Last active December 31, 2022 15:07
Show Gist options
  • Save jitpack-io/f928a858aa5da08ad9d9662f982da983 to your computer and use it in GitHub Desktop.
Save jitpack-io/f928a858aa5da08ad9d9662f982da983 to your computer and use it in GitHub Desktop.
Publish an existing jar file to jitpack
install:
- FILE="-Dfile=jars/my-library.jar"
- mvn install:install-file $FILE -DgroupId=com.github.user -DartifactId=repo -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true
@kekru
Copy link

kekru commented Jun 5, 2020

Isn't there any kind of authentication required?
Can everyone upload artifacts named with every github username?
This would be a huge security issue

@jitpack-io
Copy link
Author

@kekru the groupId and artifactId will be overwritten by JitPack at the time of build. If you put another username then the groupId will still be 'com.github.YourUsername'

@a914-gowtham
Copy link

a914-gowtham commented Mar 16, 2021

@jitpack-io I published an aar by following that example. but after I used the dependency url and I can't reach the classes that exist on the aar file. it doesn't even available in library folder

Screenshot from 2021-03-16 23-38-32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment