Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Adding ability to publish to Maven Local #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'android-library'
apply plugin: 'maven-publish'

dependencies {
compile 'com.android.support:support-v4:20.0.+'
Expand All @@ -22,3 +23,16 @@ android {
}
}
}

def getArtifactFullPath() {
return "${project.buildDir}/outputs/aar/${project.name}-${project.version}.aar"
}

publishing {
publications {
maven(MavenPublication) {
artifact getArtifactFullPath()
}
}
}