Skip to content

Conversation

y9san9
Copy link
Contributor

@y9san9 y9san9 commented Sep 27, 2025

We already have this in stdlib, let's use that :)

Hope nothing've broken, as far as I see the logic should be the same.

Just doing some choirs.

@y9san9 y9san9 requested review from a team, qwwdfsad, ilya-g and fzhinkin as code owners September 27, 2025 20:15
@y9san9 y9san9 requested a review from KvanTTT September 27, 2025 20:15
@y9san9 y9san9 requested a review from a team as a code owner September 27, 2025 20:21
@y9san9 y9san9 requested a review from adam-enko September 27, 2025 20:21
}
}
}
}
Copy link
Contributor Author

@y9san9 y9san9 Sep 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for that.
I have this setting to add newlines to the end of files enabled. Can remove that change if that's something critical.

return File(cacheDirectory, computeDependenciesHash(dependency, resolvedConfiguration, partialLinkageMode))
}

internal fun ByteArray.toHexString() = joinToString("") { (0xFF and it.toInt()).toString(16).padStart(2, '0') }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kotlin Gradle plugin has to use a Kotlin language level of 1.4, because KGP has to be compatible with its lowest supported Gradle version, which is 7.6.

https://docs.gradle.org/current/userguide/compatibility.html

This means code in libraries/tools/kotlin-gradle-plugin/ can't use the new ByteArray.toHexString util, which was added as experimental in Kotlin 1.9.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair, thank you. Added this one back

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.

2 participants