Gradle plugin for Android library publishing

Maven parent project for OSS publishment

License

License

GroupId

GroupId

com.sdklite
ArtifactId

ArtifactId

publishing
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

pom
Description

Description

Gradle plugin for Android library publishing
Maven parent project for OSS publishment
Project Organization

Project Organization

SDKLite
Source Code Management

Source Code Management

https://github.com/sdklite/publishing

Download publishing

Filename Size
publishing-0.2.0.pom 1 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.sdklite/publishing/ -->
<dependency>
    <groupId>com.sdklite</groupId>
    <artifactId>publishing</artifactId>
    <version>0.2.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.sdklite/publishing/
implementation 'com.sdklite:publishing:0.2.0'
// https://jarcasting.com/artifacts/com.sdklite/publishing/
implementation ("com.sdklite:publishing:0.2.0")
'com.sdklite:publishing:pom:0.2.0'
<dependency org="com.sdklite" name="publishing" rev="0.2.0">
  <artifact name="publishing" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.sdklite', module='publishing', version='0.2.0')
)
libraryDependencies += "com.sdklite" % "publishing" % "0.2.0"
[com.sdklite/publishing "0.2.0"]

Dependencies

test (4)

Group / Artifact Type Version
junit : junit jar 4.12
org.robolectric : robolectric jar 3.0
org.robolectric : android-all jar 5.0.0_r2-robolectric-1
org.hamcrest : hamcrest-library jar 1.3

Project Modules

  • maven

Getting Started

  1. Configure the classpath

    buildscript {
        ...
        dependencies {
            ...
            classpath 'com.sdklite.publishing:maven:0.1.0'
        }
    }
  2. Apply the plugin

    apply plugin: 'com.sdklite.publishing.maven'
  3. Configure properties for Maven

    Properties Description Default Value
    group The groupId project.group
    artifactId The artifactId project.name
    version The version project.version
    packaging The packaging aar
    url The project URL project.SCM_URL
    SCM_URL The SCM URL
    SCM_CONNECTION The SCM connection URI
    SCM_DEV_CONNECTION The SCM connection URI for developer
    LICENSE_NAME The license name
    LICENSE_URL The license URL
    LICENSE_DIST The license distribution
    DEVELOPER_ID The ID of developer ${user.name}
    DEVELOPER_NAME The name of developer ${user.name}
    RELEASE_REPOSITORY_URL The repository URL for release ~/.m2/repository
    SNAPSHOT_REPOSITORY_URL The repository URL for snapshot ~/.m2/repository
    REPOSITORY_USERNAME The username
    REPOSITORY_PASSWORD The password
  4. Deploy the library

    $ ./gradlew clean uploadArchives

    By default a library only publishes its release variant. You can control which variant gets published:

    android {
        defaultPublishConfig 'debug'
    }
com.sdklite

SDKLite

SDKLite

Versions

Version
0.2.0
0.1.0