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

common-gradle-dependencies v0.9.0-20241203 release #22

Merged
merged 55 commits into from
Dec 4, 2024

Conversation

ShreckYe
Copy link
Member

@ShreckYe ShreckYe commented Dec 3, 2024

No description provided.

…hot in the `sonatype-ossrh-publish` plugin

Somehow with the original approach of configuring `onlyIf` in the `Sign` tasks, when the signing key is configured in `~/.gradle/gradle.properties`, `publishToMavenLocal` becomes significantly slower. This solves the problem.

Bump the aligned project version BTW.
…adapted from "kotlin-common"

A source commit: huanshankeji/kotlin-common@157159b

The `dokkaGenerate` tasks fails with the following error:

```text
Execution failed for task ':dokkaGeneratePublicationHtml'.
> Could not resolve all files for configuration ':dokkaHtmlPluginIntransitiveResolver~internal'.
   > Cannot resolve external dependency org.jetbrains.dokka:templating-plugin:2.0.0-Beta because no repositories are defined.
     Required by:
         root project :
   > Cannot resolve external dependency org.jetbrains.dokka:dokka-base:2.0.0-Beta because no repositories are defined.
     Required by:
         root project :
```

This may be a bug from Dokka. See Kotlin/dokka#2260.
Deploy the API documentation to GitHub Pages with Dokka
Changes:

1. use the project relative path in the source remote URL to improve its versatility
1. fix the bug that incorrect release tags `v...`` are used, while correct ones should be `plugins-v...`
1. put the `dokka` configuration code in `afterEvaluate` so the project version can be retrieved
…ctories while "blob" is for files

You get redirected if using the wrong one though.
…adle.api.internal.provider.MissingValueException` in projects in the Dokka convention plugins
…lve an additional error

While running `dokkaGenerate` in dependent projects:

```text
A problem was found with the configuration of task ':exposed-adt-mapping:dokkaGenerateModuleHtml' (type 'DokkaGenerateModuleTask').
  - In plugin 'org.jetbrains.dokka.gradle.DokkaBasePlugin_Decorated' type 'org.jetbrains.dokka.gradle.tasks.DokkaGenerateModuleTask' property 'generator.dokkaSourceSets.main$0.sourceLinks.$0.remoteUrl' doesn't have a configured value.

    Reason: This property isn't marked as optional and no value has been configured.

    Possible solutions:
      1. Assign a value to 'generator.dokkaSourceSets.main$0.sourceLinks.$0.remoteUrl'.
      2. Mark property 'generator.dokkaSourceSets.main$0.sourceLinks.$0.remoteUrl' as optional.
```

Simply moving `map`s outside doesn't resolve this issue, probably because `Provider.map` is lazy not eager. So calling `Provider.set` inside them is not a good idea.
…iJ IDEA without success, by removing the module-wide opt-in and bumping the Gradle wrapper

The Gradle error message when syncing in IntelliJ IDEA:

```text
Execution failed for task ':kotlin-common-gradle-plugins:configurePrecompiledScriptDependenciesResolver'.
> The value for property 'freeCompilerArgs' is final and cannot be changed any further.
```

This error doesn't occur when I run `publishToMavenLocal` or `check` from the command line. The commands work in the command line.

See gradle/gradle#22091 which could be related.
…-error-free-compiler-args-final-and-bump-gradle-wrapper-to-v8.11.2' into kotlin-2.1.0-and-above

Try resolving an error loading the Gradle project in IntelliJ IDEA 2024.3 and bump the Gradle Wrapper to v8.11.1

The bumped Gradle wrapper version is actually v8.11.1. "v8.11.2" in the branch name is incorrect.
…unnecessary as it turns out, and the `implementation(platform(kotlin("bom")))` line without a Kotlin version has introduced a "Could not parse POM" build error in projects dependent on a project with one of these plugins applied via Maven since Kotlin 2.0.20

See commit 1648b7e and commit dc9d1c8 for more details.
Bump Kotlin to 2.1.0, Gradle to v8.11.1, and remove all the `app-conventions` plugins
@ShreckYe ShreckYe self-assigned this Dec 3, 2024
@ShreckYe ShreckYe changed the title common-gradle-dependencies v0.8.0-20241203/v0.8.0-20241204 release common-gradle-dependencies v0.9.0-20241203 release Dec 4, 2024
@ShreckYe ShreckYe marked this pull request as ready for review December 4, 2024 16:33
@ShreckYe ShreckYe merged commit 73ee6b8 into common-gradle-dependencies-release Dec 4, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant