-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate MSRV in Kotlin file (#3869)
Currently, when generating Rust crates, the MSRV is read from `gradle.properties` by determining the project root using `git rev-parse`. However, some build environments smithy-rs needs to build on don't have `git` available. This commit uses Gradle's `rootDir` to determine the project root, and generates a Kotlin file exposing the MSRV as part of a Gradle build task that is then published as part of `codegen-core.jar`. This also has the benefit that consumers of smithy-rs can read the MSRV from there. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
- Loading branch information
1 parent
2470341
commit e6b154b
Showing
3 changed files
with
53 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters