-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Gradle precompiled script plugin sample
See https://docs.gradle.org/current/userguide/custom_plugins.html#sec:precompiled_plugins Signed-off-by: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
- Loading branch information
Showing
5 changed files
with
29 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
gradlePluginPortal() | ||
} | ||
|
||
dependencies { | ||
// dev.sigstore.sign:dev.sigsore.sign.gradle.plugin is preferable, | ||
// however Gradle does not recognize .gradle.plugin within included build, | ||
// so we use the fallback | ||
implementation("dev.sigstore:sigstore-gradle-sign-plugin") | ||
} |
9 changes: 9 additions & 0 deletions
9
sandbox/gradle-precompiled-plugin/src/main/kotlin/sigstore-conventions.gradle.kts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
plugins { | ||
id("dev.sigstore.sign") | ||
} | ||
|
||
sigstoreSign { | ||
oidcClient { | ||
gitHub() | ||
} | ||
} |
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