Created
May 22, 2013 01:43
-
-
Save u1aryz/5624679 to your computer and use it in GitHub Desktop.
ライブラリプロジェクトをローカルのmavenリポジトリにデプロイするスクリプト(これはおそらく邪道である)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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