2019-10-02 12:41:22 +00:00
|
|
|
/*
|
|
|
|
* Copyright © 2014-2019 The Android Password Store Authors. All Rights Reserved.
|
2019-10-02 14:40:07 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
2019-10-02 12:41:22 +00:00
|
|
|
*/
|
2019-03-02 18:08:57 +00:00
|
|
|
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
|
2014-07-24 00:15:11 +00:00
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
2018-10-11 15:39:45 +00:00
|
|
|
google()
|
2014-07-24 00:15:11 +00:00
|
|
|
jcenter()
|
2015-05-17 16:08:59 +00:00
|
|
|
mavenCentral()
|
2014-07-24 00:15:11 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2019-09-08 16:33:24 +00:00
|
|
|
classpath("com.android.tools.build:gradle:3.5.0")
|
|
|
|
classpath(kotlin("gradle-plugin", "1.3.50"))
|
2014-07-24 00:15:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-02 18:08:57 +00:00
|
|
|
plugins {
|
2019-09-08 16:33:24 +00:00
|
|
|
id("com.github.ben-manes.versions") version "0.24.0"
|
2019-03-02 18:08:57 +00:00
|
|
|
}
|
|
|
|
|
2014-07-24 00:15:11 +00:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
2018-10-11 15:39:45 +00:00
|
|
|
google()
|
2014-07-24 00:15:11 +00:00
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
}
|
2019-04-29 12:01:46 +00:00
|
|
|
tasks {
|
|
|
|
named<DependencyUpdatesTask>("dependencyUpdates") {
|
|
|
|
resolutionStrategy {
|
|
|
|
componentSelection {
|
|
|
|
all {
|
2019-07-04 06:40:24 +00:00
|
|
|
if (listOf("commons-io", "org.eclipse.jgit").contains(candidate.group)) {
|
|
|
|
reject("Blacklisted package")
|
2019-04-29 12:01:46 +00:00
|
|
|
}
|
2019-03-02 18:08:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-04-29 12:01:46 +00:00
|
|
|
checkForGradleUpdate = true
|
|
|
|
outputFormatter = "json"
|
|
|
|
outputDir = "build/dependencyUpdates"
|
|
|
|
reportfileName = "report"
|
|
|
|
}
|
|
|
|
|
|
|
|
named<Wrapper>("wrapper") {
|
2019-09-08 16:33:24 +00:00
|
|
|
gradleVersion = "5.6.2"
|
2019-04-29 12:01:46 +00:00
|
|
|
distributionType = Wrapper.DistributionType.ALL
|
2019-03-02 18:08:57 +00:00
|
|
|
}
|
|
|
|
}
|
2019-10-02 12:34:18 +00:00
|
|
|
|
|
|
|
configureSpotless()
|