-
Notifications
You must be signed in to change notification settings - Fork 404
/
Copy pathbuild.gradle
49 lines (40 loc) · 1.36 KB
/
build.gradle
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
45
46
47
48
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: rootProject.file("dependencies.gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { url "https://oss.sonatype.org/service/local/repositories/snapshots/content/" }
}
dependencies {
classpath deps.androidPlugin
classpath deps.kotlinGradlePlugin
classpath deps.gradleMavenPublishPlugin
classpath deps.benchmarkGradlePlugin
// Dokka is needed on classpath for vanniktech publish plugin
classpath deps.dokkaPlugin
classpath deps.kspGradlePlugin
classpath deps.ktlintGradlePlugin
}
}
allprojects {
apply from: rootProject.file("dependencies.gradle")
repositories {
google()
mavenCentral()
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
allWarningsAsErrors = true
}
}
def getReleaseRepositoryUrl() {
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}
def getSnapshotRepositoryUrl() {
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
: "https://oss.sonatype.org/content/repositories/snapshots/"
}