Skip to content

Commit 290ed4b

Browse files
authored
Merge pull request #61 from RedMadRobot/feature/update-dependencies
Update dependencies
2 parents 94a7cca + 4c95da0 commit 290ed4b

File tree

20 files changed

+93
-65
lines changed

20 files changed

+93
-65
lines changed

buildSrc/build.gradle.kts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@ plugins {
22
`kotlin-dsl`
33
}
44

5-
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
6-
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
7-
}
8-
9-
java {
10-
targetCompatibility = JavaVersion.VERSION_11
11-
sourceCompatibility = JavaVersion.VERSION_11
5+
kotlin {
6+
jvmToolchain(11)
127
}
138

149
dependencies {
@@ -18,5 +13,5 @@ dependencies {
1813
implementation(stack.gradle.android.cacheFixGradlePlugin)
1914
implementation(stack.kotlin.gradlePlugin)
2015
implementation(stack.detekt.gradlePlugin)
21-
implementation(libs.android.gradlePlugin)
16+
implementation(stack.android.tools.build.gradle)
2217
}

buildSrc/settings.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ pluginManagement {
88

99
@Suppress("UnstableApiUsage")
1010
dependencyResolutionManagement {
11-
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11+
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
1212

1313
repositories {
1414
google {
1515
content {
16-
includeGroupByRegex("com\\.android.*")
17-
includeGroupByRegex("com\\.google.*")
18-
includeGroupByRegex("androidx.*")
16+
includeGroupAndSubgroups("com.android")
17+
includeGroupAndSubgroups("com.google")
18+
includeGroupAndSubgroups("androidx")
1919
}
2020
}
2121

@@ -24,7 +24,7 @@ dependencyResolutionManagement {
2424
}
2525

2626
versionCatalogs {
27-
val version = "2024.04.10"
27+
val version = "2024.08.01"
2828
create("rmr") {
2929
from("com.redmadrobot.versions:versions-redmadrobot:$version")
3030
}

buildSrc/src/main/kotlin/convention.detekt.gradle.kts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
import io.gitlab.arturbosch.detekt.Detekt
2-
import io.gitlab.arturbosch.detekt.DetektCreateBaselineTask
3-
41
plugins {
52
id("io.gitlab.arturbosch.detekt")
63
}
74

8-
tasks.withType<Detekt>().configureEach {
9-
jvmTarget = JavaVersion.VERSION_11.toString()
10-
}
11-
tasks.withType<DetektCreateBaselineTask>().configureEach {
12-
jvmTarget = JavaVersion.VERSION_11.toString()
13-
}
14-
155
dependencies {
166
//noinspection UseTomlInstead
177
detektPlugins("io.gitlab.arturbosch.detekt:detekt-rules-libraries:1.23.6")
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import com.redmadrobot.build.dsl.isRunningOnCi
2+
import org.jetbrains.kotlin.gradle.dsl.kotlinExtension
3+
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
4+
5+
kotlinExtension.jvmToolchain(11)
6+
7+
// Treat all warnings as errors on CI
8+
val warningsAsErrors = findProperty("warningsAsErrors") == "true" || isRunningOnCi
9+
10+
tasks.withType<KotlinJvmCompile>().configureEach {
11+
compilerOptions {
12+
allWarningsAsErrors = warningsAsErrors
13+
}
14+
}
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
plugins {
2-
id("com.redmadrobot.android-library")
2+
id("com.android.library")
3+
kotlin("android")
4+
id("org.gradle.android.cache-fix")
5+
id("convention.jvm")
36
id("convention.publishing")
47
id("convention.detekt")
58
}
69

7-
redmadrobot {
8-
android.minSdk = 19
10+
android {
11+
compileSdk = 34
12+
defaultConfig.minSdk = 21
13+
}
14+
15+
kotlin {
16+
explicitApi()
917
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
plugins {
2-
id("com.redmadrobot.kotlin-library")
2+
kotlin("jvm")
3+
id("convention.jvm")
34
id("convention.publishing")
45
id("convention.detekt")
56
}
7+
8+
kotlin {
9+
explicitApi()
10+
}
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import com.redmadrobot.build.dsl.kotlinCompile
2-
31
plugins {
42
id("convention.library.android")
53
}
64

7-
kotlinCompile {
8-
kotlinOptions {
9-
moduleName = "redmadrobot.${project.name}"
5+
kotlin {
6+
compilerOptions {
7+
"redmadrobot.${project.name}"
108
}
119
}

gears/gears-compose/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# gears-compose <GitHub path="RedMadRobot/gears-android/tree/main/gears/compose"/>
2+
23
[![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/gears-compose?style=flat-square)][mavenCentral]
34
[![License](https://img.shields.io/github/license/RedMadRobot/gears-android?style=flat-square)][license]
45

6+
A set of gears for Jetpack Compose.
7+
58
---
69
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
710
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
@@ -12,8 +15,6 @@
1215

1316
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1417

15-
A set of gears for compose.
16-
1718
## Installation
1819

1920
Add the dependency:

gears/gears-compose/build.gradle.kts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
plugins {
22
convention.library.android
3+
alias(stack.plugins.kotlin.compose)
34
}
45

56
version = "0.1.0"
6-
description = "A set of gears for compose"
7-
8-
redmadrobot {
9-
android.minSdk = 21
10-
}
7+
description = "A set of gears for Jetpack Compose"
118

129
android {
1310
namespace = "$group.compose"
14-
15-
buildFeatures {
16-
compose = true
17-
}
18-
19-
composeOptions {
20-
kotlinCompilerExtensionVersion = androidx.versions.compose.compiler.get()
21-
}
2211
}
2312

2413
dependencies {

gears/gears-kotlin/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# gears-kotlin <GitHub path="RedMadRobot/gears-android/tree/main/gears/kotlin"/>
2+
23
[![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square)][mavenCentral]
34
[![License](https://img.shields.io/github/license/RedMadRobot/gears-android?style=flat-square)][license]
45

6+
A set of gears for Kotlin.
7+
58
---
69
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
710
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
@@ -12,8 +15,6 @@
1215

1316
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1417

15-
A set of gears for kotlin.
16-
1718
## Installation
1819

1920
Add the dependency:

0 commit comments

Comments
 (0)