Reformated build.gradles
This commit is contained in:
parent
a88dee6c95
commit
e46b824638
4 changed files with 78 additions and 75 deletions
|
@ -12,43 +12,43 @@ repositories {
|
|||
}
|
||||
|
||||
android {
|
||||
signingConfigs {
|
||||
}
|
||||
compileSdkVersion 28
|
||||
defaultConfig {
|
||||
applicationId "online.anthonycicchetti.financetracker"
|
||||
minSdkVersion 24
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
signingConfigs {
|
||||
}
|
||||
compileSdkVersion 28
|
||||
defaultConfig {
|
||||
applicationId "online.anthonycicchetti.financetracker"
|
||||
minSdkVersion 24
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':common')
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
implementation project(':common')
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${DependencyVersions.Kotlin}"
|
||||
implementation "org.jetbrains.kotlin:kotlin-reflect:${DependencyVersions.Kotlin}"
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${DependencyVersions.Kotlin}"
|
||||
implementation "org.jetbrains.kotlin:kotlin-reflect:${DependencyVersions.Kotlin}"
|
||||
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:${DependencyVersions.Jupiter}"
|
||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${DependencyVersions.Jupiter}"
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:${DependencyVersions.Jupiter}"
|
||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${DependencyVersions.Jupiter}"
|
||||
|
||||
implementation "com.android.support:design:${DependencyVersions.Android.SupportLibrary}"
|
||||
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
|
||||
implementation 'androidx.constraintlayout:constraintlayout-solver:1.1.2'
|
||||
implementation 'com.google.android.material:material:1.0.0-beta01'
|
||||
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
|
||||
implementation "com.android.support:design:${DependencyVersions.Android.SupportLibrary}"
|
||||
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
|
||||
implementation 'androidx.constraintlayout:constraintlayout-solver:1.1.2'
|
||||
implementation 'com.google.android.material:material:1.0.0-beta01'
|
||||
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
|
||||
}
|
||||
|
|
24
build.gradle
24
build.gradle
|
@ -1,20 +1,20 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.2.60'
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.1.3'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
ext.kotlin_version = '1.2.60'
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.1.3'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
|
|
|
@ -1,40 +1,43 @@
|
|||
import com.anthonycicchetti.financetracker.DependencyVersions
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${DependencyVersions.Kotlin}"
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${DependencyVersions.Kotlin}"
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'java-library'
|
||||
id 'kotlin'
|
||||
}
|
||||
|
||||
group 'online.anthonycicchetti'
|
||||
version '0.1.0'
|
||||
|
||||
apply plugin: 'java-library'
|
||||
apply plugin: 'kotlin'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
google()
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api "com.fasterxml.jackson.module:jackson-module-kotlin:${DependencyVersions.Jackson}"
|
||||
api "com.fasterxml.jackson.module:jackson-module-kotlin:${DependencyVersions.Jackson}"
|
||||
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:${DependencyVersions.Jupiter}"
|
||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${DependencyVersions.Jupiter}"
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:${DependencyVersions.Jupiter}"
|
||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${DependencyVersions.Jupiter}"
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
}
|
||||
compileTestKotlin {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
useJUnitPlatform()
|
||||
}
|
|
@ -1,20 +1,20 @@
|
|||
import com.anthonycicchetti.financetracker.DependencyVersions
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${DependencyVersions.Kotlin}"
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${DependencyVersions.Kotlin}"
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id "us.kirchmeier.capsule" version '1.0.2'
|
||||
id 'application'
|
||||
id "us.kirchmeier.capsule" version '1.0.2'
|
||||
id 'application'
|
||||
id 'kotlin'
|
||||
}
|
||||
|
||||
apply plugin: 'kotlin'
|
||||
|
||||
group 'online.anthonycicchetti'
|
||||
version '0.1.0'
|
||||
|
@ -28,17 +28,17 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${DependencyVersions.Kotlin}"
|
||||
implementation project(":common")
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${DependencyVersions.Kotlin}"
|
||||
implementation project(":common")
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
}
|
||||
compileTestKotlin {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
}
|
||||
|
||||
task fatCapsule(type: FatCapsule) {
|
||||
applicationClass 'MainKt'
|
||||
applicationClass 'MainKt'
|
||||
}
|
Loading…
Add table
Reference in a new issue