android-finance-tracker/build.gradle
anthony.cicchetti 5a2d7a88c7 Updated Android Gradle Build plugin
Also added the wrapper config to avoid old versions of Gradle messing up
2018-04-04 15:05:22 -04:00

54 lines
1.5 KiB
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.21'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.junit.platform:junit-platform-gradle-plugin:+"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
ext.kotlin_version = '1.2.21'
}
subprojects.findAll { it.name.equalsIgnoreCase("common") or it.name.equalsIgnoreCase("server")}.each { p ->
configure(p) {
apply plugin: 'kotlin'
apply plugin: 'org.junit.platform.gradle.plugin'
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"){
because 'This is the latest version of kotlin?'
}
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"){
because 'This is required by Jackson'
}
testImplementation 'org.junit.jupiter:junit-jupiter-api:+'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:+'
}
junitPlatform {
details 'tree'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}