Skip to content

Commit 84d87a2

Browse files
committed
Move plugins to the DSL block
1 parent 4825a0a commit 84d87a2

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

app/build.gradle

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "kotlin-kapt"
5+
id "kotlin-parcelize"
6+
id "checkstyle"
27
id "org.sonarqube" version "3.1.1"
38
}
49

5-
apply plugin: 'com.android.application'
6-
apply plugin: 'kotlin-android'
7-
apply plugin: 'kotlin-parcelize'
8-
apply plugin: 'kotlin-kapt'
9-
apply plugin: 'checkstyle'
10-
1110
android {
1211
compileSdkVersion 30
1312
buildToolsVersion '30.0.3'
@@ -80,13 +79,13 @@ android {
8079
// Flag to enable support for the new language APIs
8180
coreLibraryDesugaringEnabled true
8281

83-
sourceCompatibility JavaVersion.VERSION_1_8
84-
targetCompatibility JavaVersion.VERSION_1_8
82+
sourceCompatibility JavaVersion.VERSION_11
83+
targetCompatibility JavaVersion.VERSION_11
8584
encoding 'utf-8'
8685
}
8786

8887
kotlinOptions {
89-
jvmTarget = JavaVersion.VERSION_1_8
88+
jvmTarget = JavaVersion.VERSION_11
9089
}
9190

9291
sourceSets {

0 commit comments

Comments
 (0)