Skip to content

Instantly share code, notes, and snippets.

@VictorAlbertos
Created November 13, 2015 13: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 VictorAlbertos/1e14d6047f511ebba508 to your computer and use it in GitHub Desktop.
Save VictorAlbertos/1e14d6047f511ebba508 to your computer and use it in GitHub Desktop.
apply plugin: 'java'
apply plugin: 'me.tatarka.retrolambda'
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath rootProject.ext.buildScriptDependencies.retrolambda
classpath "net.ltgt.gradle:gradle-apt-plugin:0.4"
}
}
apply plugin: 'idea'
apply plugin: "net.ltgt.apt"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
configurations {
provided
}
sourceSets {
main {
compileClasspath += configurations.provided
runtimeClasspath += configurations.provided
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
def domainDependencies = rootProject.ext.domainDependencies
compile domainDependencies.dagger
apt domainDependencies.daggerCompiler
provided domainDependencies.javaxAnnotation
compile domainDependencies.rxJava
compile domainDependencies.lombok
def domainTestDependencies = rootProject.ext.domainTestDependencies
testCompile domainTestDependencies.junit
testCompile domainTestDependencies.mockito
testCompile domainTestDependencies.hamcrest
}
retrolambda {
jdk System.getenv("JAVA8_HOME")
oldJdk System.getenv("JAVA7_HOME")
javaVersion JavaVersion.VERSION_1_7
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment