Skip to content

Instantly share code, notes, and snippets.

@hl5pma

hl5pma/build.gradle

Last active Dec 29, 2015
Embed
What would you like to do?
ViewPagerIndicator Maven 중앙 저장소에 등록하는 빌드 스크립트
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android-library'
apply plugin: 'maven'
android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
defaultConfig {
minSdkVersion 8
targetSdkVersion 19
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
}
dependencies {
compile 'com.android.support:support-v4:+'
}
uploadArchives {
repositories {
mavenDeployer {
repository url: 'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath
pom.artifactId = 'library'
pom.groupId = 'com.viewpagerindicator'
pom.version = '2.4.1'
pom.packaging = 'aar'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment