Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.19.1 #141

Merged
merged 5 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:
env:
ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ github.actor }}
ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}

samples:
name: Verify samples
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

- *No changes*

## [0.19.1] (2024-07-31)

### Fixes

- Fixed package of the extension `SigningConfig.fromProperties`. \
`dsl` → `com.redmadrobot.build.dsl`

## [0.19] (2024-07-26)

> [!NOTE]
Expand Down Expand Up @@ -721,6 +728,7 @@ Pull request: #35
- Added CHANGELOG.md :)

[unreleased]: https://github.com/RedMadRobot/gradle-infrastructure/compare/main..develop
[0.19.1]: https://github.com/RedMadRobot/gradle-infrastructure/compare/v0.19..v0.19.1
[0.19]: https://github.com/RedMadRobot/gradle-infrastructure/compare/v0.18.1..v0.19
[0.18.1]: https://github.com/RedMadRobot/gradle-infrastructure/compare/v0.18..v0.18.1
[0.18]: https://github.com/RedMadRobot/gradle-infrastructure/compare/v0.17..v0.18
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ pluginManagement {
}
```

Then you can apply any of plugins where you need:
Then you can apply any of the plugins where you need:

```kotlin
plugins {
id("com.redmadrobot.kotlin-library") version "0.19"
id("com.redmadrobot.publish") version "0.19"
id("com.redmadrobot.detekt") version "0.19"
id("com.redmadrobot.application") version "0.19"
id("com.redmadrobot.android-library") version "0.19"
id("com.redmadrobot.kotlin-library") version "0.19.1"
id("com.redmadrobot.publish") version "0.19.1"
id("com.redmadrobot.detekt") version "0.19.1"
id("com.redmadrobot.application") version "0.19.1"
id("com.redmadrobot.android-library") version "0.19.1"
}
```

Expand Down Expand Up @@ -496,7 +496,7 @@ redmadrobot {

> [!WARNING]
> This feature is deprecated and is disabled by default since v0.19
> Currently you can enable this behavior, though this option may be deleted at some point.
> Currently, you can enable this behavior, though this option may be deleted at some point.

Infrastructure plugins can automatically add required repositories:

Expand Down
44 changes: 44 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Releasing

**Release:**

1. Ensure the repository is up to date and checkout the `develop` branch.

2. [Update version](#version-update) and remove `-SNAPSHOT` suffix

3. Update the `CHANGELOG.md`:
1. Replace `Unreleased` section with the release version
2. Add a link to the diff between the previous and the new version to the bottom of the changelog
3. Add a new empty `Unreleased` section on the top of the file

4. Commit and push the changes.
```bash
git commit -am "version: [version here]"
git push
```

5. Merge the `develop` branch into `main` using fast-forward.

6. Create a release tag on the `main` branch:
```bash
# Push the release tag
git tag [version]
git push origin [version]
```
Release tag push triggers a release workflow on the CI which uploads release artifacts to Maven Central and creates a GitHub release.

**After release:**

1. Rename [milestone](https://github.com/RedMadRobot/gradle-infrastructure/milestones) "Next" to the released version and close it.
2. Create a new milestone with the name "Next."
3. In the `develop` branch [update version](#version-update) to the next potential version with suffix `-SNAPSHOT`.
4. Commit and push.
```bash
git commit -am "version: [version here]-SNAPSHOT"
git push
```

## Version Update

1. Update a version in `gradle.properties` and `README.md`
2. Update a version used in samples in `build.gradle.kts`
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=com.redmadrobot.build
version=0.19
version=0.19.1

# Project-wide Gradle settings.

Expand Down
2 changes: 1 addition & 1 deletion infrastructure-android/src/main/kotlin/dsl/Signing.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dsl
package com.redmadrobot.build.dsl

import com.android.build.api.dsl.SigningConfig
import org.gradle.api.Incubating
Expand Down
2 changes: 1 addition & 1 deletion samples/android-application-multi/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
// Versions of AGP and KGP are specified in buildSrc module
id("com.redmadrobot.android-config") version "0.19"
id("com.redmadrobot.android-config") version "0.19.1"
}

// Common configurations for all modules
Expand Down
2 changes: 1 addition & 1 deletion samples/android-application/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id("com.android.application") version "8.5.1" apply false
kotlin("android") version "2.0.0" apply false

id("com.redmadrobot.android-config") version "0.19"
id("com.redmadrobot.android-config") version "0.19.1"
}

// Common configurations for all modules
Expand Down
Loading