Skip to content
kai-morich edited this page Oct 12, 2019 · 3 revisions

Jitpack repository (default)

The library is typically consumed from jitpack.io with:

dependencies {
    implementation 'com.github.mik3y:usb-serial-for-android:2.x.y
}

When pushing to github with jitpack enabled, *.aar and *-sources.jar are automatically published by jitpack, even if no maven or maven-publish gradle plugin is used.

Jar

If you need a jar file (e.g. for cordova) run gradle task createFullJarRelease and use full.jar

Local maven repository

To use a local maven repository (e.g. for testing new library version) comment in

//apply from: 'publishToMavenLocal.gradle'

set correct version and run gradle task publishToMavenLocal. This include file is not enabled by default, as it confuses jitpack

Clone this wiki locally