Skip to content

Commit

Permalink
Merge pull request #487 from jmfayard/main
Browse files Browse the repository at this point in the history
Prepare for release 0.30.2
  • Loading branch information
LouisCAD authored Jan 9, 2022
2 parents 371c022 + 80767cd commit 4cc518c
Show file tree
Hide file tree
Showing 53 changed files with 1,091 additions and 523 deletions.
117 changes: 107 additions & 10 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,58 @@
# https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
# https://github.com/marketplace/actions/gradle-command
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions

# Yes, booleans used here are 'strings' despite the type of input being declared as boolean because… well, see here:
# https://docs.github.com/en/actions/learn-github-actions/expressions

# https://github.com/marketplace/actions/gradle-build-action
name: Check build and tests of plugins and samples
on:
workflow_dispatch:
inputs:
run-refreshVersions-task:
description: "Run the refreshVersions task"
required: true
type: boolean
default: 'false'
sample-kotlin:
description: "Enable sample-kotlin"
required: true
type: boolean
default: 'true'
sample-groovy:
description: "Enable sample-groovy"
required: true
type: boolean
default: 'true'
sample-multi-modules:
description: "Enable sample-multi-modules"
required: true
type: boolean
default: 'true'
sample-kotlin-js:
description: "Enable sample-kotlin-js"
required: true
type: boolean
default: 'true'
sample-android:
description: "Enable sample-android"
required: true
type: boolean
default: 'false'
run-on:
type: choice
description: "Where to run this workflow"
default: 'ubuntu-latest'
required: true
options:
- windows-2022
- windows-2019
- windows-latest
- macos-11
- macos-10.5
- macos-latest
- ubuntu-20.04
- ubuntu-18.04
- ubuntu-latest
pull_request:
paths:
- 'plugins/**'
Expand All @@ -27,47 +77,94 @@ on:
- '!docs/**'
jobs:
check-all:
runs-on: ubuntu-latest
runs-on: ${{ github.event.inputs.run-on || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v2
- name: Configure JDK
- name: "Configure JDK"
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Check plugins and publish them to MavenLocal
- name: "Check plugins and publish them to MavenLocal"
uses: gradle/gradle-build-action@v2
with:
gradle-executable: plugins/gradlew
build-root-directory: plugins
arguments: check publishToMavenLocal --stacktrace
- name: Check sample-kotlin
- name: "Run refreshVersions on sample-kotlin"
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.sample-kotlin == 'true' && github.event.inputs.run-refreshVersions-task == 'true' }}
uses: gradle/gradle-build-action@v2
with:
gradle-executable: sample-kotlin/gradlew
build-root-directory: sample-kotlin
arguments: refreshVersions --stacktrace
- name: "Check sample-kotlin"
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.sample-kotlin == 'true' }}
uses: gradle/gradle-build-action@v2
with:
gradle-executable: sample-kotlin/gradlew
build-root-directory: sample-kotlin
arguments: check --stacktrace
- name: Check sample-groovy
- name: "Run refreshVersions on sample-groovy"
if: ${{ github.event.inputs.sample-groovy == 'true' && github.event.inputs.run-refreshVersions-task == 'true' }}
uses: gradle/gradle-build-action@v2
with:
gradle-executable: sample-groovy/gradlew
build-root-directory: sample-groovy
arguments: refreshVersions --stacktrace
- name: "Check sample-groovy"
if: ${{ github.event.inputs.sample-groovy == 'true' }}
uses: gradle/gradle-build-action@v2
with:
gradle-executable: sample-groovy/gradlew
build-root-directory: sample-groovy
arguments: check --stacktrace
- name: Check buildSrc of sample-groovy (simulates IDE Gradle sync)
- name: "Check buildSrc of sample-groovy (simulates IDE Gradle sync)"
if: ${{ github.event.inputs.sample-groovy == 'true' }}
uses: gradle/gradle-build-action@v2
with:
gradle-executable: sample-groovy/gradlew
build-root-directory: sample-groovy/buildSrc
arguments: help --stacktrace
- name: Check sample-multi-modules
- name: "Run refreshVersions on sample-multi-modules"
if: ${{ github.event.inputs.sample-multi-modules == 'true' && github.event.inputs.run-refreshVersions-task == 'true' }}
uses: gradle/gradle-build-action@v2
with:
gradle-executable: sample-multi-modules/gradlew
build-root-directory: sample-multi-modules
arguments: refreshVersions --stacktrace
- name: "Check sample-multi-modules"
if: ${{ github.event.inputs.sample-multi-modules == 'true' }}
uses: gradle/gradle-build-action@v2
with:
gradle-executable: sample-multi-modules/gradlew
build-root-directory: sample-multi-modules
arguments: check --stacktrace
- name: Check sample-kotlin-js
- name: "Run refreshVersions on sample-kotlin-js"
if: ${{ github.event.inputs.sample-kotlin-js == 'true' && github.event.inputs.run-refreshVersions-task == 'true' }}
uses: gradle/gradle-build-action@v2
with:
gradle-executable: sample-kotlin-js/gradlew
build-root-directory: sample-kotlin-js
arguments: refreshVersions --stacktrace
- name: "Check sample-kotlin-js"
if: ${{ github.event.inputs.sample-kotlin-js == 'true' }}
uses: gradle/gradle-build-action@v2
with:
gradle-executable: sample-kotlin-js/gradlew
build-root-directory: sample-kotlin-js
arguments: check --stacktrace
- name: "Run refreshVersions on sample-android"
if: ${{ github.event.inputs.sample-android == 'true' && github.event.inputs.run-refreshVersions-task == 'true' }}
uses: gradle/gradle-build-action@v2
with:
gradle-executable: sample-android/gradlew
build-root-directory: sample-android
arguments: refreshVersions --stacktrace
- name: "Check sample-android"
if: ${{ github.event.inputs.sample-android == 'true' }}
uses: gradle/gradle-build-action@v2
with:
gradle-executable: sample-android/gradlew
build-root-directory: sample-android
arguments: check --stacktrace
2 changes: 1 addition & 1 deletion .github/workflows/release-plugins.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: Publish plugins
on:
workflow_dispatch:
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/sample-android.yml

This file was deleted.

78 changes: 78 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,83 @@
# Change log for refreshVersions

## Version 0.30.2 (2022-01-09)

### Bug fixes

- We are now shutting down the thread-pool from kotlinx.coroutines that we're using when the build finishes (`Dispatchers.shutdown()`). We believe it caused memory leaks in the Gradle Daemon, and this change, made possible since kotlinx.coroutines 1.6.0 should fix the last memory leak cause.
- The versions of dependencies from the `androidx.test` family started diverging, so we changed replaced the `version.androidx.test` version key with more specific ones. The migration will be done automatically on upgrade of refreshVersions, without upgrading the versions of `androidx.tests` dependencies themselves.

### New feature

- We now support fetching updates on plain-text http repositories. We evaluated the security risks, and for the case of refreshVersions itself, there is none that is significant (the worst possibility is crashing the build under attack), and if you're not using plain-text http repositories in the first place in your project, this doesn't apply at all anyway. We added support for this because some of our users need it for local maven repositories.

### New dependency notations:

- Android.billingClient
- Android.billingClient.ktx
- Android.installReferrer
- Android.tools:
- desugarJdkLibs
- r8
- build.gradlePlugin
- CashApp.licenseeGradlePlugin
- CashApp.sqlDelight:
- extensions:
- androidPaging3
- androidPaging
- rxJava3
- rxJava2
- drivers.sqlJs
- Google.android.fhir:
- dataCapture
- engine
- workflow
- Google.android.flexbox
- Google.android.playServices:
- cast:
- framework
- tv
- instantApps
- maps
- mlKit.vision.imageLabeling.custom
- mlKit.naturalLanguage.languageIdentification
- pay
- wallet
- Google.mlKit:
- playStoreDynamicFeatureSupport
- naturalLanguage.entityExtraction
- vision:
- selfieSegmentation
- textRecognition
- chinese
- devanagari
- japanese
- korean
- Google.modernStorage:
- fileSystem
- mediaStore
- Google.oboe
- Ktor.client.darwin
- Kotlin.scriptRuntime
- KotlinX.serialization.hocon
- Square.logcat
- Square.moshi.adapters
- Touchlab.kermit
- bugsnagTest
- bugsnag
- crashlyticsTest
- crashlytics
- gradlePlugin
- test

### Other changes

We also removed many obsolete dependency notations from refreshVersions. Just like for the 0.30.0 release, this should not break your build as we implemented a robust replacement mechanism that also inserts migration guidance comments. ✨

### Credits

Thanks to [Brady Aiello](https://github.com/brady-aiello), [Mike Gray](https://github.com/mgray88), and [Kamalesh](https://github.com/imashnake0) for their contributions in adding dependency notations!

## Version 0.30.1 (2021-12-21)

### Bug fixes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// settings.gradle(.kts)
plugins {
// See https://jmfayard.github.io/refreshVersions
id("de.fayard.refreshVersions") version "0.30.1"
id("de.fayard.refreshVersions") version "0.30.2"
}

refreshVersions { // Optional: configure the plugin
Expand Down
6 changes: 4 additions & 2 deletions Releasing.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,10 @@ fun CliUi.runReleaseStep(step: ReleaseStep): Unit = when (step) {
`Request GitHub release publication` -> {
printInfo("It's now time to publish the release on GitHub, so people get notified.")
printInfo("Copy the section of this release from the CHANGELOG file, and head over to the following url to proceed:")
printInfo("$gitHubRepoUrl/releases/new")
requestManualAction("Publish the release ${OngoingRelease.newVersion} on GitHub with the changelog.")
val newVersion = OngoingRelease.newVersion
// https://docs.github.com/en/repositories/releasing-projects-on-github/automation-for-release-forms-with-query-parameters
printInfo("$gitHubRepoUrl/releases/new?tag=${tagOfVersionBeingReleased()}&title=$newVersion")
requestManualAction("Publish the release $newVersion on GitHub with the changelog.")
}
`Change this library version back to a SNAPSHOT` -> {
val newVersion = Version(OngoingRelease.newVersion)
Expand Down
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ extra:
slack: https://app.slack.com/client/T09229ZC6/CP5659EL9
version:
gradle: 6.9
refreshVersions: '0.30.1'
snapshot: '0.30.2-SNAPSHOT'
refreshVersions: '0.30.2'
snapshot: '0.30.3-SNAPSHOT'
keyboard_shortcuts:
find_actions: <kbd>ctrl</kbd>/<kbd>cmd</kbd> + <kbd>shift</kbd> + <kbd>A</kbd>

Expand Down
Loading

0 comments on commit 4cc518c

Please sign in to comment.