Skip to content

Commit

Permalink
Migrate to gradle 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Drjacky committed Aug 6, 2023
1 parent 6da28e6 commit 8401515
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 21 deletions.
6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ android {
}
}
compileOptions {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}
lintOptions {
isAbortOnError = false
Expand All @@ -64,11 +64,12 @@ android {
exclude("META-INF/proguard/androidx-annotations.pro")
resources.excludes += "DebugProbesKt.bin"
}
namespace = "app.web.drjackycv.mvvmtemplate"
}

tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
freeCompilerArgs = freeCompilerArgs + listOf("-XXLanguage:+InlineClasses")
}
}
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="app.web.drjackycv.mvvmtemplate">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repositories {

dependencies {
implementation("org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.8.10")
implementation("com.android.tools.build:gradle:7.4.1")
implementation("com.android.tools.build:gradle:8.1.0")
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.22.0")
implementation("com.squareup:javapoet:1.13.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ object Depends {

object Versions {
const val appVersionCode = 1_000_000
const val gradleVersion = "7.4.1"
const val gradleVersion = "8.2.0-alpha14"
const val androidCompileSdkVersion = 33
const val targetSdkVersion = 33
const val minSdkVersion = 21
Expand Down
7 changes: 4 additions & 3 deletions data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ android {
consumerProguardFiles("consumer-rules.pro")
}
compileOptions {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}
testOptions.unitTests.isReturnDefaultValues = true
sourceSets {
Expand Down Expand Up @@ -53,6 +53,7 @@ android {
)
}
}
namespace = "app.web.drjackycv.data"

}

Expand Down
2 changes: 1 addition & 1 deletion data/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<manifest package="app.web.drjackycv.data" />
<manifest />
7 changes: 4 additions & 3 deletions domain/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ android {
consumerProguardFiles("consumer-rules.pro")
}
compileOptions {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
freeCompilerArgs = freeCompilerArgs + listOf("-XXLanguage:+InlineClasses")
}
sourceSets {
Expand All @@ -42,6 +42,7 @@ android {
)
}
}
namespace = "app.web.drjackycv.domain"

}

Expand Down
2 changes: 1 addition & 1 deletion domain/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<manifest package="app.web.drjackycv.domain" />
<manifest />
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ org.gradle.parallel=true
org.gradle.caching.debug=true
org.gradle.warning.mode=summary
org.gradle.configureondemand=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
#android.enableR8=true
#android.databinding.enableV2=true
#kapt.use.worker.api=false
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
7 changes: 4 additions & 3 deletions presentation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ android {
consumerProguardFiles("consumer-rules.pro")
}
compileOptions {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}

buildFeatures {
Expand All @@ -54,6 +54,7 @@ android {
)
}
}
namespace = "app.web.drjackycv.presentation"

}

Expand Down
2 changes: 1 addition & 1 deletion presentation/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<manifest package="app.web.drjackycv.presentation" />
<manifest />

0 comments on commit 8401515

Please sign in to comment.