Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

extend to gradle plugins #10

Open
eighthave opened this issue Aug 28, 2015 · 5 comments
Open

extend to gradle plugins #10

eighthave opened this issue Aug 28, 2015 · 5 comments

Comments

@eighthave
Copy link

Since the whole gradle build process for Android relies on downloading plugins from jcenter, we really need a way to do what gradle-witness does, but for those plugins. @dschuermann already made it possible to have the gradle wrapper verify the sha256 of gradle binaries it downloads: gradle/gradle#448 The missing piece remains gradle plugins.

This is probably the most essential bit to verify:

        classpath 'com.android.tools.build:gradle:1.2.3'
@dschuermann
Copy link

Full ACK

@msgilligan
Copy link

+1. It would also be nice to have a tool or "best practice" for validating the wrapper scripts and jars that bootstrap most builds.

@msgilligan
Copy link

I created a topic on the Gradle forum that includes this issue:
https://discuss.gradle.org/t/jar-validation-via-hashes-or-signatures/12238

@eighthave
Copy link
Author

eighthave commented Oct 15, 2015 via email

@vlsi
Copy link

vlsi commented Aug 1, 2019

Just in case: Gradle's DependencyResolutionListener is able to verify plugins as well.

Plugin: https://github.com/vlsi/vlsi-release-plugins#checksum-dependency-plugin
https://plugins.gradle.org/plugin/com.github.vlsi.checksum-dependency

Sample use: vlsi/vlsi-release-plugins@208734b

The key idea is to add the plugin right into settings.gradle file, so it is executed way before all other plugins are loaded.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants