Skip to content

Instantly share code, notes, and snippets.

@jitpack-io jitpack-io/jitpack.yml
Last active May 22, 2019

Embed
What would you like to do?
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
@jitpack-io

This comment has been minimized.

Copy link
Owner Author

commented Mar 26, 2019

For this to work the root directory also needs to have a pom.xml file:

<?xml version="1.0" encoding="iso-8859-1"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
			    http://maven.apache.org/maven-v4_0_0.xsd">
	<groupId>com.github.user</groupId>
	<artifactId>repo</artifactId>
	<version>1.0</version>
</project>
@mpdude

This comment has been minimized.

Copy link

commented Apr 2, 2019

@jitpack-io Do I need to repeat this for all the .jars? Should they all share the same artifactId, or use a unique one for each jar?

@ozymand1as

This comment has been minimized.

Copy link

commented May 22, 2019

But what about .aars? Do I just need to change all instances of jar to aar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.