~captainepoch/husky

ref: 300e19a9c5b0fa139acafe4b9ddd1fd3f6175e82 husky/husky/build.gradle.kts -rw-r--r-- 816 bytes
300e19a9Adolfo Santiago Update flavors 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask

buildscript {
	addRepos(repositories)

	dependencies {
		// Base
		classpath(GradlePlugins.android)
		classpath(GradlePlugins.kotlin)

		// Plugins
		classpath(GradlePlugins.gradleVersions)
	}
}

allprojects {
	addRepos(repositories)

	tasks.withType<JavaCompile> {
		options.encoding = DefaultConfig.encoding
		options.compilerArgs.addAll(
			listOf(
				"-Xlint:all",
				"-Xlint:unchecked",
				"-Xlint:-deprecation"
			)
		)
	}

	tasks.withType<DependencyUpdatesTask> {
		gradleReleaseChannel = "current"

		rejectVersionIf {
			!isNonStable(candidate.version)
		}
	}
}

tasks.register<Delete>(BuildTasks.taskTypeClean) {
	delete(rootProject.buildDir)
	delete(project.buildDir)
	delete(buildDir)
	delete("${projectDir}/buildSrc/build")
}