Android-Password-Store/build.gradle.kts

54 lines
1.2 KiB
Text
Raw Normal View History

/*
* Copyright © 2014-2019 The Android Password Store Authors. All Rights Reserved.
* SPDX-License-Identifier: GPL-3.0-only
*/
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
2014-07-24 00:15:11 +00:00
buildscript {
repositories {
google()
2014-07-24 00:15:11 +00:00
jcenter()
mavenCentral()
2014-07-24 00:15:11 +00:00
}
dependencies {
classpath("com.android.tools.build:gradle:3.5.0")
classpath(kotlin("gradle-plugin", "1.3.50"))
2014-07-24 00:15:11 +00:00
}
}
plugins {
id("com.github.ben-manes.versions") version "0.27.0"
}
2014-07-24 00:15:11 +00:00
allprojects {
repositories {
google()
2014-07-24 00:15:11 +00:00
jcenter()
mavenCentral()
}
}
tasks {
named<DependencyUpdatesTask>("dependencyUpdates") {
resolutionStrategy {
componentSelection {
all {
if (listOf("commons-io", "org.eclipse.jgit").contains(candidate.group)) {
reject("Blacklisted package")
}
}
}
}
checkForGradleUpdate = true
outputFormatter = "json"
outputDir = "build/dependencyUpdates"
reportfileName = "report"
}
named<Wrapper>("wrapper") {
gradleVersion = "5.6.3"
distributionType = Wrapper.DistributionType.ALL
}
}
configureSpotless()