-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from bitPogo/feature/bump-gradle
Bump Gradle
- Loading branch information
Showing
9 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,8 @@ toc::[] | |
|
||
=== Bumped | ||
|
||
* Gradle 7.2 -> 7.4.1 | ||
|
||
=== Deprecated | ||
|
||
=== Migration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ugin/kmock-dependency/src/main/kotlin/tech/antibytes/gradle/kmock/dependency/Insurance.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2022 Matthias Geisler (bitPogo) / All rights reserved. | ||
* | ||
* Use of this source code is governed by Apache License, Version 2.0 | ||
*/ | ||
|
||
package tech.antibytes.gradle.kmock.dependency | ||
|
||
import org.gradle.api.Project | ||
|
||
private val modules = listOf( | ||
"kotlin-stdlib-jdk7", | ||
"kotlin-stdlib-jdk8", | ||
"kotlin-stdlib", | ||
"kotlin-stdlib-common", | ||
"kotlin-reflect" | ||
) | ||
|
||
fun Project.ensureKotlinVersion(version: String? = null) { | ||
configurations.all { | ||
resolutionStrategy.eachDependency { | ||
if (requested.group == "org.jetbrains.kotlin" && requested.name in modules) { | ||
useVersion(version ?: Version.kotlin) | ||
because("Avoid resolution conflicts") | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters