Created
August 25, 2016 09:31
-
-
Save NeedPainkiller/e98cbd7080764da2fb58d78736d333eb to your computer and use it in GitHub Desktop.
Gradle 예제
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: 'com.android.application' | |
apply plugin: 'com.jakewharton.hugo' | |
apply plugin: 'me.tatarka.retrolambda' | |
apply plugin: 'com.neenbedankt.android-apt' | |
android { | |
compileSdkVersion 24 | |
buildToolsVersion "24.0.0" | |
compileOptions { | |
encoding = 'UTF-8' | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 | |
} | |
dataBinding { | |
enabled = true | |
} | |
defaultConfig { | |
applicationId "BLIND" | |
minSdkVersion 21 | |
targetSdkVersion 24 | |
versionCode 2 | |
versionName "1.0.0.1" | |
buildConfigField('String', 'UNKNOWN', '"UNKNOWN"'); | |
} | |
buildTypes { | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
packagingOptions { | |
exclude 'META-INF/services/javax.annotation.processing.Processor' | |
} | |
} | |
dependencies { | |
def ext = rootProject.ext; | |
Map<String, String> BasicDependencies = ext.BasicDependencies; | |
Map<String, String> TestDependencies = ext.TestDependencies; | |
Map<String, String> InjectionDependencies = ext.InjectionDependencies; | |
Map<String, String> GoogleDependencies = ext.GoogleDependencies; | |
Map<String, String> RxDependencies = ext.RxDependencies; | |
Map<String, String> UiDependencies = ext.UiDependencies; | |
Map<String, String> ToolsDependencies = ext.ToolsDependencies; | |
Map<String, String> otherDependencies = ext.OtherDependencies; | |
compile BasicDependencies.FileTree | |
testCompile TestDependencies.mockito | |
testCompile TestDependencies.robolectric | |
testCompile TestDependencies.JUnit | |
compile InjectionDependencies.dagger | |
apt InjectionDependencies.daggerCompilerApt | |
compile InjectionDependencies.ButterKnife | |
apt InjectionDependencies.ButterKnifeCompilerApt | |
compile GoogleDependencies.Google_SupportV4 | |
compile GoogleDependencies.Google_AppCompatV7 | |
compile GoogleDependencies.Google_Design | |
compile GoogleDependencies.Google_CardView | |
compile GoogleDependencies.Google_RecyclerView | |
compile GoogleDependencies.Google_Annotations | |
compile GoogleDependencies.Guava | |
compile RxDependencies.RxJava | |
compile RxDependencies.RxAndroid | |
compile RxDependencies.Rxlifecycle | |
compile RxDependencies.RxlifecycleComponent | |
compile RxDependencies.RxBinding | |
compile RxDependencies.RxBindingSupportV4 | |
compile RxDependencies.RxBindingAppcompatV7 | |
compile RxDependencies.RxBindingDesign | |
compile RxDependencies.RxBindingRecyclerViewV7 | |
compile(UiDependencies.MaterialDialogs) { | |
transitive = true | |
} | |
compile ToolsDependencies.Stetho | |
compile ToolsDependencies.StethoOkHttp | |
compile otherDependencies.GattManager | |
// compile project(':Manager') | |
} | |
buildscript { | |
repositories { | |
mavenCentral() | |
jcenter() | |
} | |
dependencies { | |
Map<String, String> ClassPaths = rootProject.ext.ClassPaths; | |
classpath ClassPaths.Gradle | |
classpath ClassPaths.Hugo | |
classpath ClassPaths.Retrolambda | |
classpath ClassPaths.APT | |
} | |
} |
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
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
apply from: 'dependencies.gradle' | |
buildscript { | |
repositories { | |
mavenCentral() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:2.1.3' | |
// NOTE: Do not place your application dependencies here; they belong | |
// in the individual module build.gradle files | |
} | |
} | |
allprojects { | |
repositories { | |
mavenCentral() | |
jcenter() | |
maven { url "https://jitpack.io" } | |
} | |
} | |
task clean(type: Delete) { | |
delete rootProject.buildDir | |
} |
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: 'com.android.application' | |
// Hugo | |
apply plugin: 'com.jakewharton.hugo' | |
// Retrolambda (Java 1.8) | |
apply plugin: 'me.tatarka.retrolambda' | |
// APT | |
apply plugin: 'com.neenbedankt.android-apt' | |
// SRC:CLR | |
apply plugin: "com.srcclr.gradle" | |
// Realm Java | |
apply plugin: 'realm-android' | |
// AndroidAnnotations Version | |
def AAVersion = '4.0.0' | |
android { | |
compileSdkVersion 24 | |
buildToolsVersion "23.0.3" | |
compileOptions { | |
encoding = 'UTF-8' | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 | |
} | |
defaultConfig { | |
applicationId "BLIND" | |
minSdkVersion 21 | |
targetSdkVersion 24 | |
versionCode 2 | |
versionName "1.0.0.1" | |
buildConfigField('String', 'UNKNOWN', '"UNKNOWN"'); | |
} | |
buildTypes { | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
// debug{ | |
// debuggable true | |
// minifyEnabled true | |
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
// } | |
} | |
//noinspection GroovyMissingReturnStatement | |
packagingOptions { | |
exclude 'META-INF/services/javax.annotation.processing.Processor' | |
} | |
sourceSets { | |
main.java.srcDirs += 'src/main/kotlin' | |
} | |
} | |
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
testCompile 'junit:junit:4.12' | |
// BLE-GATT_MANAGER | |
// compile project(':Manager') | |
// Google Android Support Library | |
compile 'com.android.support:support-v4:24.0.0' | |
compile 'com.android.support:appcompat-v7:24.0.0' | |
compile 'com.android.support:design:24.0.0' | |
compile 'com.android.support:cardview-v7:24.0.0' | |
compile 'com.android.support:recyclerview-v7:24.0.0' | |
compile 'com.android.support:support-annotations:24.0.0' | |
// Guava | |
compile 'com.google.guava:guava:19.0' | |
// Otto | |
compile 'com.squareup:otto:1.3.8' | |
// Rx | |
compile 'io.reactivex:rxandroid:1.2.0' | |
compile 'io.reactivex:rxjava:1.1.5' | |
// RxLifeCycle | |
compile 'com.trello:rxlifecycle:0.6.1' | |
compile 'com.trello:rxlifecycle-components:0.6.1' | |
// Lombok | |
provided "org.projectlombok:lombok:1.12.6" | |
apt "org.projectlombok:lombok:1.12.6" | |
// Dagger | |
compile 'com.google.dagger:dagger:2.2' | |
apt 'com.google.dagger:dagger-compiler:2.2' | |
// jsr310 | |
compile 'com.jakewharton.threetenabp:threetenabp:1.0.3' | |
// ButterKnife | |
compile 'com.jakewharton:butterknife:8.0.1' | |
apt 'com.jakewharton:butterknife-compiler:8.0.1' | |
// AndroidAnnotations | |
compile "org.androidannotations:androidannotations-api:$AAVersion" | |
apt "org.androidannotations:androidannotations:$AAVersion" | |
// Material Dialogs | |
compile('com.github.afollestad.material-dialogs:commons:0.8.5.6@aar') { | |
transitive = true | |
} | |
// BLUETOOTH | |
compile 'com.rainbow.library:android-ble-gatt-manager:0.1.2.1' | |
// Stetho | |
compile 'com.facebook.stetho:stetho:1.3.1' | |
compile 'com.facebook.stetho:stetho-okhttp3:1.3.1' | |
} | |
repositories { | |
maven { url "https://jitpack.io" } | |
mavenCentral() | |
} | |
buildscript { | |
repositories { | |
mavenCentral() | |
jcenter() | |
maven { | |
url "https://plugins.gradle.org/m2/" | |
} | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:2.1.2' | |
// Hugo | |
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1' | |
// Retrolambda (Java 1.8) | |
classpath 'me.tatarka:gradle-retrolambda:3.2.5' | |
// APT | |
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' | |
} | |
} |
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
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
repositories { | |
mavenCentral() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:2.1.3' | |
// NOTE: Do not place your application dependencies here; they belong | |
// in the individual module build.gradle files | |
} | |
} | |
allprojects { | |
repositories { | |
mavenCentral() | |
jcenter() | |
maven { url "https://jitpack.io" } | |
} | |
} | |
task clean(type: Delete) { | |
delete rootProject.buildDir | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment