Aegis/build.gradle
Alexander Bakker 004cfbed4e Update dependencies and enable dependency verification in Gradle
Here's another attempt to enable Gradle dependency verification. I've
tried to do this a couple of times before, but always ran into issues.
With a helper script borrowed from a different project, hopefully this
will finally work reliably.

Every time we update Gradle or a dependency, the script I mentioned
needs to be run to update the list of checksums. The script runs the
build, the tests and the instrumented tests. This is necessary
because apparently Gradle is not able to discover all dependencies
without actually running the build tasks.

It's a little bit annoying that this Gradle feature is so half-baked
that we need a helper script to make things work, but I think it's worth
it.
2024-04-07 13:14:46 +02:00

39 lines
1.1 KiB
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.3.1'
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.51.1'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'com.mikepenz.aboutlibraries.plugin' version '11.1.0'
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven {
url 'https://jcenter.bintray.com'
content {
includeModule('com.amulyakhare', 'com.amulyakhare.textdrawable')
includeModule('info.guardianproject.trustedintents', 'trustedintents')
}
}
}
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}