Skip to content

Commit

Permalink
chore(deps): Bump gradle from 4.2.2 to 7.0.0 (#271)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mateusz Kwieciński <[email protected]>
  • Loading branch information
dependabot[bot] and mateuszkwiecinski authored Jul 28, 2021
1 parent 78afeaf commit 2987d5a
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
gradle: [ 6.8.3, current, rc ]
gradle: [ 7.0.2, current, rc ]
task: [ build, projectTest, projectLint, projectCodeStyle, projectCoverage, issueLinksReport ]
name: (Android) Gradle version ${{ matrix.gradle }}, task ${{ matrix.task }}
steps:
Expand Down
7 changes: 7 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.31.0] - 2021-07-28
## Changed
- Update _Android Gradle Plugin_ to _7.0.0_, see [release notes](https://developer.android.com/studio/releases/gradle-plugin)

## [0.30.0] - 2021-07-28
## Changed
- Update Kotlin plugin to _1.5.21_, see [release notes](https://github.com/JetBrains/kotlin/releases/tag/v1.5.21)

## [0.29.0] - 2021-07-10
## Changed
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repositories {
}

dependencies {
api 'com.android.tools.build:gradle:4.2.2'
api 'com.android.tools.build:gradle:7.0.0'
implementation project(":jvm")
implementation project(":config")
implementation project(":versioning")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import org.gradle.api.Project
internal fun BaseExtension.configureAndroidPlugin(rootConfig: RootConfigExtension) {
defaultConfig.apply {
compileSdkVersion(rootConfig.android.compileSdkVersion)
minSdkVersion(rootConfig.android.minSdkVersion)
targetSdkVersion(rootConfig.android.targetSdkVersion ?: rootConfig.android.compileSdkVersion)
minSdk = rootConfig.android.minSdkVersion
targetSdk = rootConfig.android.targetSdkVersion ?: rootConfig.android.compileSdkVersion
setTestInstrumentationRunner("androidx.test.runner.AndroidJUnitRunner")
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ allprojects {
pluginManager.withPlugin("java") {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
languageVersion.set(JavaLanguageVersion.of(11))
}
}

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repositories {
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-gradle-plugin'
implementation "com.gradle.publish:plugin-publish-plugin:0.15.0"
implementation "com.project.starter:jvm:0.28.2"
implementation "com.project.starter:jvm:0.30.0"
}

gradlePlugin {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/groovy/myproject.java-conventions.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
languageVersion = JavaLanguageVersion.of(11)
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package com.project.starter.config.extensions

import groovy.lang.Closure
import org.gradle.api.Action
import org.gradle.api.JavaVersion
import org.gradle.util.ConfigureUtil

open class RootConfigExtension(
var javaVersion: JavaVersion = JavaVersion.VERSION_1_8,
Expand All @@ -14,21 +12,12 @@ open class RootConfigExtension(
val android = AndroidPluginConfig()
val versioning = VersioningPluginConfig()

fun qualityPlugin(c: Closure<QualityPluginConfig>) =
ConfigureUtil.configure(c, quality)

fun qualityPlugin(action: Action<QualityPluginConfig>) =
action.execute(quality)

fun androidPlugin(c: Closure<AndroidPluginConfig>) =
ConfigureUtil.configure(c, android)

fun androidPlugin(action: Action<AndroidPluginConfig>) =
action.execute(android)

fun versioningPlugin(c: Closure<VersioningPluginConfig>) =
ConfigureUtil.configure(c, versioning)

fun versioningPlugin(action: Action<VersioningPluginConfig>) =
action.execute(versioning)

Expand Down
2 changes: 1 addition & 1 deletion quality/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies {
api 'org.jmailen.gradle:kotlinter-gradle:3.4.5'
api 'io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.17.1'
api 'org.jetbrains.kotlin:kotlin-gradle-plugin'
compileOnly 'com.android.tools.build:gradle:4.2.2'
compileOnly 'com.android.tools.build:gradle:7.0.0'
implementation 'com.github.usefulness:issuechecker:0.3.0'
implementation project(":config")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ internal fun Project.configureDetekt() {
onMultiplatform {
sourceSets.configureEach {
detekt.input.from(it.kotlin.srcDirs)
// detekt.input.from(it.kotlin.srcDirTrees)
}
}

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

dependencies {
compileOnly 'com.android.tools.build:gradle:4.2.2'
compileOnly 'com.android.tools.build:gradle:7.0.0'
implementation 'pl.allegro.tech.build:axion-release-plugin:1.13.3'
implementation project(":config")

Expand Down

0 comments on commit 2987d5a

Please sign in to comment.