-
Configure the classpath
buildscript { ... dependencies { ... classpath 'com.sdklite.publishing:maven:0.1.0' } }
-
Apply the plugin
apply plugin: 'com.sdklite.publishing.maven'
-
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 -
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' }
-
Notifications
You must be signed in to change notification settings - Fork 0
Gradle plugin for Android library publishing
License
sdklite/publishing
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Gradle plugin for Android library publishing
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published