From 615314b610b4c97e0512e3386e0864be7d5e1f5f Mon Sep 17 00:00:00 2001 From: Osip Fatkullin Date: Wed, 31 Jul 2024 18:45:38 +0200 Subject: [PATCH] style: Minor style fixes --- .github/workflows/main.yml | 2 +- README.md | 1 + buildSrc/settings.gradle.kts | 5 +++-- buildSrc/src/main/kotlin/convention.publishing.gradle.kts | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a66378a..8590efa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: push: branches: [main] # Release tag format is v[version] - # For example: v1.3.5 + # Example: v1.3.5 tags: ["v*"] pull_request: branches: [main] diff --git a/README.md b/README.md index b1d3e2b..43bb659 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ - Remove `Cleanup` step from [main.yml](.github/workflows/main.yml) - Update library description in README and in `build.gradle.kts` - Update [Usage](#usage) guide +- Revise the logic in convention-plugins in `buildSrc` and remove everything you don't need --- [![License](https://img.shields.io/github/license/RedMadRobot/%Stub%?style=flat-square)][license] diff --git a/buildSrc/settings.gradle.kts b/buildSrc/settings.gradle.kts index ec83ce2..093e8b4 100644 --- a/buildSrc/settings.gradle.kts +++ b/buildSrc/settings.gradle.kts @@ -1,3 +1,5 @@ +@file:Suppress("UnstableApiUsage") + pluginManagement { repositories { gradlePluginPortal() @@ -12,9 +14,8 @@ pluginManagement { } } -@Suppress("UnstableApiUsage") dependencyResolutionManagement { - repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS repositories { google { diff --git a/buildSrc/src/main/kotlin/convention.publishing.gradle.kts b/buildSrc/src/main/kotlin/convention.publishing.gradle.kts index 3dfa848..ae1e441 100644 --- a/buildSrc/src/main/kotlin/convention.publishing.gradle.kts +++ b/buildSrc/src/main/kotlin/convention.publishing.gradle.kts @@ -18,7 +18,8 @@ mavenPublishing { } developers { -// developer(id = "coolest id", name = "the best name", email = "awesome email") + // TODO: Specify real developer information + // developer(id = "github_nickname", name = "Name Surname", email = "n.surname@redmadrobot.com") } setGitHubProject("RedMadRobot/%Stub%")