Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shakalaca/6191239 to your computer and use it in GitHub Desktop.
Save shakalaca/6191239 to your computer and use it in GitHub Desktop.
gradle file for RootTools
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android'
repositories {
maven { url uri("${rootDir}/../mvn-repo") }
// maven { url "http://xxxxx/mvn-repo" }
}
dependencies {
compile 'com.stericson.RootTools:RootTools_sdk3_generic:3.2.0'
}
android {
compileSdkVersion 18
buildToolsVersion "18.0.1"
defaultConfig {
minSdkVersion 8
targetSdkVersion 18
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android-library'
android {
compileSdkVersion 18
buildToolsVersion "18.0.1"
defaultConfig {
minSdkVersion 8
targetSdkVersion 18
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}
apply plugin: 'maven'
group = 'com.stericson.RootTools'
version = '3.2.0'
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri("$rootDir/../mvn-repo"))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment