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

Update all non-major dependencies (except core Kotlin) #1672

Merged
merged 3 commits into from
Jun 6, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 1, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.diffplug.gradle.spotless 6.18.0 -> 6.19.0 age adoption passing confidence
com.diffplug.spotless:spotless-plugin-gradle 6.18.0 -> 6.19.0 age adoption passing confidence
org.ajoberstar.reckon:reckon-gradle 0.16.1 -> 0.18.0 age adoption passing confidence
com.gradle.enterprise 3.12.6 -> 3.13.3 age adoption passing confidence
io.github.detekt.sarif4k:sarif4k-jvm (source) 0.3.0 -> 0.4.0 age adoption passing confidence
io.github.detekt.sarif4k:sarif4k (source) 0.3.0 -> 0.4.0 age adoption passing confidence
com.charleskorn.kaml:kaml 0.53.0 -> 0.54.0 age adoption passing confidence
org.gradle.test-retry 1.5.2 -> 1.5.3 age adoption passing confidence
de.benediktritter.maven-plugin-development 0.4.1 -> 0.4.2 age adoption passing confidence
pl.droidsonroids.jacoco.testkit 1.0.9 -> 1.0.12 age adoption passing confidence
org.apache.maven:maven-plugin-api 3.9.1 -> 3.9.2 age adoption passing confidence
org.apache.maven:maven-compat 3.9.1 -> 3.9.2 age adoption passing confidence
org.apache.maven:maven-embedder 3.9.1 -> 3.9.2 age adoption passing confidence
org.apache.maven:maven-core 3.9.1 -> 3.9.2 age adoption passing confidence
io.gitlab.arturbosch.detekt (source) 1.22.0 -> 1.23.0 age adoption passing confidence
io.gitlab.arturbosch.detekt:detekt-gradle-plugin (source) 1.22.0 -> 1.23.0 age adoption passing confidence
commons-io:commons-io (source) 2.11.0 -> 2.12.0 age adoption passing confidence
org.junit.platform:junit-platform-suite-engine (source) 1.9.2 -> 1.9.3 age adoption passing confidence
org.junit.vintage:junit-vintage-engine (source) 5.9.2 -> 5.9.3 age adoption passing confidence
org.junit.jupiter:junit-jupiter-api (source) 5.9.2 -> 5.9.3 age adoption passing confidence
org.junit.jupiter:junit-jupiter-engine (source) 5.9.2 -> 5.9.3 age adoption passing confidence
org.junit.jupiter:junit-jupiter (source) 5.9.2 -> 5.9.3 age adoption passing confidence
org.jetbrains.kotlinx:kotlinx-serialization-json-jvm 1.5.0 -> 1.5.1 age adoption passing confidence
org.jetbrains.kotlinx:kotlinx-serialization-json 1.5.0 -> 1.5.1 age adoption passing confidence
org.jetbrains.kotlinx:kotlinx-serialization-core 1.5.0 -> 1.5.1 age adoption passing confidence

Release Notes

ajoberstar/reckon

v0.18.0

Compare Source

This release decouples reckon from grgit, using direct JGit for version inference and CLI Git for tag creation and pushes. The motivation is selfishly just to simplify maintenance of reckon.

For most cases, this should be a transparent change, but it does have a few potentially user-facing effects:

  • You have to have git installed (which you almost certainly do)
  • If you use reckonTagPush, you must have your credentials set up already in some way that won't require a prompt (basic auth creds, SSH agent, whatever). The old org.ajoberstar.grgit.* properties or GRGIT_* environment variables are no longer used.

Generally, we will be using the current user's identity (user.email and user.name) to create the tag. In cases where that information is not present (for example, in GitHub Actions), we'll use the author identity from the most recent commit.

This release contains a couple other small changes as well, see below.

Breaking Changes

  • #​196 grgit is completely removed from reckon (affecting authentication and tagging)
  • #​195 defaultInferredScope no longer defaults to minor and must be set explicitly

Enhancements

  • #​175 The Scope enum is now accepted for defaultInferredScope and parallelBranchScope

Fixes

  • #​91 You can run your build with --info to see status details from JGit if reckon fails due to an unclean repo

Deprecations

None

Compatibility

Tested against the following versions.

Java Version Gradle Versions
11 7.0.2, 7.6.1, 8.0.2, 8.1.1
17 7.3.3, 7.6.1, 8.0.2, 8.1.1

v0.17.0

Compare Source

This release implements a new org.ajoberstar.reckon.settings plugin that can be used as an alternative to org.ajoberstar.reckon. This is applied in a settings.gradle instead of a build.gradle but is otherwise configured the same. By applying to Settings, it will run and be configured before any projects are evaluated, which should avoid the timing issues uncovered in #​147. The settings plugin does not have the same "soft-fail" workaround that the project plugin has, as it should not be needed.

Additionally we have improvements to version inference logic. Our prior parallel version logic allowed reckon to increment by the requested scope a second time in order to avoid a parallel version. However, if that version is also in the parallel branch, it would fail saying the version was already claimed.

In the new logic, you are able to set a parallelBranchScope to indicate how you use your parallel branches. For example, people use branches like maintenance/1.2.x should set it to MINOR. Users of branches like maintenance/2.x should set it to MAJOR.

When reckon identifies a conflict with a parallel branch, it will increment by the greater of the user-provided scope and parallelBranchScope.

 O abc123
 O abc124 (v1.2.0)
 | \
 |  O abc125 (v1.2.1)
 O abc126

In the old logic, commit abc126 would infer as 1.2.2-alpha.0.1+abc126 where in the new logic (with parallelBranchScope=MINOR) it would infer as 1.3.0-alpha.0.1+abc126.

Breaking Changes

  • #​183 Insignificant versions will never use the parallel version avoidance logic. This is mainly targeted to benefit feature branches that aren't up to date with your main branch, however it can also affect the main branch if it hasn't been tagged since a parallel branch was created and tagged.

Enhancements

  • New org.ajoberstar.reckon.settings plugin that can be applied in settings.gradle as an alternative to the normal plugin. This ensures reckon gets configured before project plugins.

Fixes

  • #​180 Parallel branch with two released versions will cause failure due to claimed version
  • #​194 Version inference exceptions are no longer buried by the "soft-fail" logic in the project plugin

Deprecations

None

Compatibility

Tested against the following versions.

Java Version Gradle Versions
11 7.0.2, 7.6.1, 8.0.2, 8.1.1
17 7.3.3, 7.6.1, 8.0.2, 8.1.1
detekt/sarif4k

v0.4.0

Compare Source

What's Changed

Full Changelog: detekt/sarif4k@0.0.1...0.4.0

charleskorn/kaml

v0.54.0

Compare Source

  • New: add support for naming strategies, similar to the feature in kotlinx.serialization's JSON support (#​400 - thanks to @​russellbanks for the PR)

    This makes it easy to use different field naming schemes such as snake_case, kebab-case, PascalCase, and camelCase without needing to modify the corresponding Kotlin property names or annotate properties with @SerialName.

  • Updated: build with Kotlin 1.8.21

  • Changed: remove unnecessary stdlib dependency (#​421 - thanks to @​russellbanks for the PR)

detekt/detekt

v1.23.0

We're so proud to announce the next upcoming stable release of detekt: 1.23.0 🚀
This release is coming with 25 new rules and much more.

We moved the detekt-compiler-plugin to the main repo, and you can now use it in your builds following the official documentation.

This release also marks the beginning of development of 2.x from the main branch! You can follow the progress here

We want to take the opportunity to thank our Sponsors and our Contributors for testing, bug reporting and helping us release this new version of Detekt. You're more than welcome to join our community on the #detekt channel on KotlinLang's Slack (you can get an invite here).

Notable Changes
  • This is the first version of Detekt that ships with the detekt-compiler-plugin. The Detekt Compiler plugin is still experimental, but we're moving it closer to Detekt to make it easier to integrate. From now on the compiler plugin will follow the same versioning schema as Detekt. We invite you to try it and provide feedback till we stabilize it. You can read more about it in the official documentation page - #​5492
  • We added 25 new Rules to detekt
  • Notable changes to existing rules:
    • UnnecessaryAbstractClass now only runs with type resolution - #​5829
    • UnusedPrivateMember has been refactored with some of its logic moved to UnusedParameter and UnusedPrivateProperty - #​5722
    • Removed the ignoreOverridden config from BooleanPropertyNaming, ConstructorParameterNaming, FunctionNaming, VariableNaming and FunctionParameterNaming as not useful for those rules - #​5718
    • Added ignoredSubjectTypes to rule ElseCaseInsteadOfExhaustiveWhen to specify types that should be ignored by the rule (#​5623) - #​5634
    • Added allowOperators to rule DataClassContainsFunctions - #​5658
    • MandatoryBracesIfStatements has been removed in favor of BracesOnIfStatements - #​5700
    • Added ignoreWhenContainingVariableDeclaration to UseIfInsteadOfWhen to ignore captured variables - #​5681
    • Several rules in the detekt-formatting ruleset now accepts an indentSize parameter (see the full list here).
    • We followed the KtLint decisions on turning on some rules by default, so several rules in the detekt-formatting ruleset are now turned on by default (see the full list here).
  • We added support for Gradle's Worker API inside Detekt Gradle Plugin, for faster execution on bigger projects. - #​4128
  • We fixed the includes/excludes logic on the config file as they were overriding each other - #​5782
  • We fully removed support for Spek from detekt-test-utils. The recommended testing framework is JUnit - #​5785
  • The minimum supported Gradle version is now v6.8.3 - #​5616
  • This version of detekt is built with Gradle v8.1, AGP 8.0.1, Kotlin 1.8.21 and KtLint 0.49.1 (see #​5893 #​5723 #​5877 #​6028 #​6043 #​5995 #​5996)
  • We now added a Code of Conduct to our repo. Please read it and follow it when interacting with our community on our channels.
Changelog
  • SerialVersionUIDInSerializableClass - Update the error location - #​6114
  • Reduce LoopWithTooManyJumpStatements finding scope - #​6110
  • Add alias for SuspendFunWithCoroutineScopeReceiver - #​6089
  • CastNullableToNonNullableType - Check the SimpleType instead of typeElement - #​6071
  • Update plugin com.gradle.enterprise to v3.13.1 - #​6069
  • CanBeNonNullable: Check parent condition for checking if nullability info is used or not - #​6064
  • Add configuration to add alternate trimming methods - #​6063
  • Check if property is documented at class header - #​6061
  • OutdatedDocumentation - Check if only public property is documented - #​6057
  • UnnecessaryLet: fix false positive in call chains - #​6052
  • Add comments with a list of regexes to ForbiddenComment - #​5981
  • Fix incomplete requireRootInDeclaration check in InvalidPackageDeclaration - #​6045
  • BracesOnWhenStatements: fix false positive for necessary braces - #​6042
  • Fix redundant ClassOrdering violations using maximum increasing section - #​6003
  • UseIsNullOrEmpty: fix false negative with chained call - #​6027
  • Create docs for Gradle Worker API - #​6016
  • Compile compiler plugin against kotlin-compiler-embeddable - #​6012
  • Update intro.mdx to use setFrom() on detekt config - #​6010
  • Use detekt-versions.properties instead of versions.properties - #​6006
  • Implement parentPath accessor in concrete config implementations - #​6002
  • Increase ALIASES_LIMIT to 100 for YamlConfig - #​5986
  • Fix elvis to +/- case in case UnnecessaryParentheses when precedence is unclear - #​5983
  • jdkHome as @​Internal - #​5978
  • Fix broken POM file for detetk-compiler-plugin - #​5971
  • Fix broken publishToMavenLocal - #​5970
  • Add allowOmitUnit to rule LibraryCodeMustSpecifyReturnType - #​5861
  • Remove dependency that creates a cycle. - #​5777
  • Update dependency org.jetbrains:annotations to v24 - #​5969
  • Update github/codeql-action digest to 8c8d71d - #​5966
  • Add functions to ExitOutsideMain rule - #​5963
  • Update README.md - #​5954
  • Prevent import statements from counting as references for UnusedPrivateProperty - #​5942
  • Fix ExpressionBodySyntax not checking property getters/setters - #​5938
  • Improve correctness of UnusedPrivateProperty - #​5935
  • Fix documentation for deprecated 'reports' object (Issue #​5908) - #​5924
  • Print file path report as link file - #​5921
  • "detekt" or "Detekt" - #​5898
  • Update JSON schema URL - #​5881
  • Add support for local suppression inside formatting - #​5876
  • Fix checkExhaustiveness for formatting and third party rules - #​5869
  • Allow newline style for MaxChainedCallsOnSameLine - #​5865
  • Declare inputs and outputs to support incremental build for testPluginKotlinc - #​5862
  • Use code syntax for Unit for ImplicitUnitReturnType rule - #​5857
  • MatchingDeclarationName. KtFilesSpec also remove .common.kt suffix from kotlin files - #​5851
  • Fix double mutability issues with Gradle plugin's use of ConfigurableFileCollection - #​5850
  • MagicNumber - Make ignoreNamedArgument catch more complex expression - #​5837
  • Exclude super call when generating guard clauses - #​5835
  • Enable test retry for all our modules - #​5825
  • Stop configuring report merge tasks while configuring Detekt tasks - #​5813
  • FunctionMatcher support for fully qualified function names - #​5812
  • Boy Scout - #​5808
  • Simplify TestConfig usages - #​5801
  • Reduce configuration of UnusedPrivateMember's split rules - #​5800
  • Force SerialVerionUID to be private - #​5798
  • Exclude the KMP test folders for android - #​5797
  • Add aliases for PackageNaming and InvalidPackageDeclaration - #​5795
  • Forbid using Jupiter Kotlin assertions - #​5794
  • ModifierOrder: fix false positive with block comments - #​5791
  • Fixed ProtectedMemberInFinalClass rule reporting valid JVM finalize - #​5788
  • Remove unnecessary usage of BeforeAll in tests - #​5781
  • Run Kotlin compiler plugin CLI test as part of standard build - #​5766
  • Refactor to remove java.util.Array* imports - #​5761
  • Replace java.util.Stack with Kotlin's ArrayDeque implementation - #​5760
  • Replace java.time.Duration with kotlin.time.Duration - #​5759
  • Add NixOS installation method to doc - #​5757
  • Remove & forbid usage of java.util.stream - #​5756
  • Use stdlib functions for file & path operations - #​5754
  • Enable UnnecessaryBackticks in detekt project - #​5753
  • Update docusaurus monorepo to v2.3.1 - #​5752
  • Resolve runtime classpaths consistently with compile classpaths - #​5730
  • Exclude new Kotlin Test directories in default config - #​5727
  • Fail when unexpected version of kotlin-compiler-embeddable is on runtime classpath - #​5726
  • Fix IgnoredReturnValue rule crash in parallel mode - #​5724
  • Use name that return name after backticks - #​5719
  • UnusedPrivateMember - Fix false positive in case of invoke operator - #​5717
  • Fix false positive for CanBeNonNullable rule - #​5714
  • IgnoredReturnValue: fix false negative when annotation is on the package - #​5706
  • Check Thread.sleep for block expression - #​5699
  • Fix false positive of in UnnecessaryParentheses - #​5684
  • Fix url and kotlin reference support in kdoc - #​5683
  • Add config for variable expression in when - #​5681
  • Enable NoSemicolons rule - #​5663
  • Use correct resolvable/consumable flags on detekt's configurations - #​5657
  • Prepare for Gradle 8 - #​5656
  • ExplicitCollectionElementAccessMethod rule update - #​5654
  • Cast nullable to non nullable type - #​5653
  • Enable verbose mode for Codecov GH Action - #​5652
  • Fail build when issues found with JVM target compatibility of related compile tasks - #​5651
  • Don't silently use Kotlin compiler fallback strategy - #​5650
  • Documentation tweaks - #​5639
  • Have consistent compile-test-snippets between project and system property - #​5630
  • Exclude operator functions in function min/max length - #​5618
  • Broken link at EmptyFunctionBlock - #​5604
  • Update rule description for errorprone rules - #​5603
  • FunctionMaxLength false positive for overridden methods #​5590 - #​5599
  • Report proper code position in MaxLineLength - #​5583
  • Allow access to nonpublic members of public types in java.base/java.lang package - #​5579
  • NonBooleanPropertyPrefixedWithIs: Allow AtomicBoolean - #​5577
  • Pass compilation output classes to detekt analysis classpath - #​5556
  • Fix KDocReferencesNonPublicProperty false positive - #​5534
Dependency Updates
  • Update dependency io.github.detekt.sarif4k:sarif4k to v0.4.0 - #​6113
  • Update dependency org.jetbrains.kotlinx:kotlinx-coroutines-core to v1.7.1 - #​6097
  • Update dependency org.jetbrains.kotlinx:kotlinx-coroutines-core to v1.7.0 - #​6074
  • Update com.android.tools.build - #​6065
  • Update JaCoCo to v0.8.10 - #​6044
  • Update plugin pluginPublishing to v1.2.0 - #​5975
  • Update ktlint to v0.48.1 - #​5661
  • Update dependency com.android.tools.build:gradle to v7.4.0 - #​5693
  • JaCoCo 0.8.9 - #​5959
  • Update dependency com.github.tschuchortdev:kotlin-compile-testing to v1.5.0 - #​5882
  • Update dependency org.jetbrains.dokka to v1.8.10 - #​5878
  • Compile detekt-compiler-plugin against standard Kotlin compiler artifact - #​5765
  • Migrate to SnakeYAML Engine - #​5751
  • Update kotlin monorepo to v1.8.10 - #​5745
  • Update ktlint to v0.48.0 - #​5625
  • Migrate to Gradle Nexus Publish Plugin - #​5554
  • Update dependency io.github.detekt.sarif4k:sarif4k to v0.2.0 - #​5496
Housekeeping & Refactorings
  • Inline Cases enum and inline other external test code into the test classes - #​6107
  • Update codecov/codecov-action digest to eaaf4be - #​6102
  • Remove unnecessary baselines - #​6092
  • Remove unused dependenciesAsNames - #​6059
  • Reduce eager POM task creation - #​6041
  • Improve our configuration of ClassNaming and FunctionNaming - #​6019
  • Comment text in the Issue/PR Template - #​5992
  • Fix typo: Github -> GitHub - #​5956
  • Review all Detekt and Detekt Gradle Plugin usages. - #​5955
  • Review all Detekt and Detekt Gradle Plugin usages. - #​5953
  • Add a test for catching undocumented public interfaces - #​5951
  • Execute tests in parallel - #​5944
  • Make GeneratorSpec use resources - #​5932
  • Cleanup detekt-formatting to use detekt's own assertThat function - #​5911
  • Stale any issue with support tag in one month - #​5904
  • Remove instances of double mutability - #​5899
  • Handle todo in LinesOfCode logic - #​5897
  • Boy scout - detekt-generator - #​5854
  • Tweak GHA configs a bit - [#​585

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/all-minor-patch branch from ef799b7 to 049e5d4 Compare May 2, 2023 08:07
@nulls nulls enabled auto-merge (squash) May 2, 2023 08:17
@nulls
Copy link
Member

nulls commented May 2, 2023

will wait migration to Gradle 8.x because of https://github.com/koral--/jacoco-gradle-testkit-plugin/issues/31

@nulls nulls self-assigned this May 2, 2023
@nulls
Copy link
Member

nulls commented May 2, 2023

depends on #1611

@nulls
Copy link
Member

nulls commented Jun 6, 2023

wait till https://github.com/saveourtool/diktat/pull/1682/files and then need to rerun this PR

@renovate renovate bot force-pushed the renovate/all-minor-patch branch from fecf017 to 69edf3d Compare June 6, 2023 08:34
@codecov
Copy link

codecov bot commented Jun 6, 2023

Codecov Report

Merging #1672 (de19361) into master (6b38fcd) will increase coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #1672   +/-   ##
=========================================
  Coverage     78.86%   78.86%           
+ Complexity     2317     2316    -1     
=========================================
  Files           125      125           
  Lines          8139     8135    -4     
  Branches       2060     2060           
=========================================
- Hits           6419     6416    -3     
+ Misses          812      811    -1     
  Partials        908      908           
Impacted Files Coverage Δ
...lin/org/cqfn/diktat/plugin/maven/DiktatBaseMojo.kt 0.00% <ø> (ø)
...g/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt 82.97% <ø> (-0.14%) ⬇️
...les/chapter4/VariableGenericTypeDeclarationRule.kt 73.52% <ø> (ø)

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2023

JUnit Tests (macOS, EnricoMi/publish-unit-test-result-action@v2)

   162 files  ±0     162 suites  ±0   5m 5s ⏱️ +33s
1 371 tests ±0  1 335 ✔️ ±0  36 💤 ±0  0 ±0 
2 750 runs  ±0  2 714 ✔️ ±0  36 💤 ±0  0 ±0 

Results for commit c84cc83. ± Comparison against base commit 6b38fcd.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2023

JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v2)

   162 files  ±0     162 suites  ±0   7m 5s ⏱️ ±0s
1 371 tests ±0  1 354 ✔️ ±0  17 💤 ±0  0 ±0 
2 750 runs  ±0  2 733 ✔️ ±0  17 💤 ±0  0 ±0 

Results for commit c84cc83. ± Comparison against base commit 6b38fcd.

♻️ This comment has been updated with latest results.

@nulls nulls merged commit e7595b7 into master Jun 6, 2023
@nulls nulls deleted the renovate/all-minor-patch branch June 6, 2023 09:27
@nulls nulls added this to the 2.0.0 milestone Jun 6, 2023
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