Skip to content

Instantly share code, notes, and snippets.

@u1aryz
Created May 22, 2013 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save u1aryz/5624679 to your computer and use it in GitHub Desktop.
Save u1aryz/5624679 to your computer and use it in GitHub Desktop.
ライブラリプロジェクトをローカルのmavenリポジトリにデプロイするスクリプト(これはおそらく邪道である)
apply plugin: 'android-library'
dependencies {
compile 'com.google.android:support-v4:r7'
}
android {
compileSdkVersion 14
buildToolsVersion '17'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}
apply plugin: 'maven'
uploadArchives {
repositories {
mavenDeployer {
repository url: 'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath
pom.version = '4.3.2'
pom.groupId = 'com.actionbarsherlock'
pom.artifactId = 'library'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment