-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathbuild.gradle
74 lines (61 loc) · 1.9 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'io.github.gradle-nexus.publish-plugin'
buildscript {
apply from: "${rootDir}/gradle/dependencies.gradle"
repositories {
google()
mavenCentral()
maven { url 'https://plugins.gradle.org/m2' }
}
dependencies {
classpath pluginDependencies.gradle
classpath pluginDependencies.coveralls
classpath pluginDependencies.errorprone
classpath pluginDependencies.dependencyUpdates
classpath pluginDependencies.kotlinGradle
classpath pluginDependencies.kotlinxSerialization
classpath pluginDependencies.kotlinMultiplatform
classpath pluginDependencies.kotlinCocoapods
classpath pluginDependencies.kotlinDokka
classpath pluginDependencies.nexus
}
}
task testReport(type: TestReport, group: 'Build') {
description = 'Generates an aggregate test report'
destinationDir = file("${buildDir}/reports/allTests")
}
allprojects {
repositories {
google()
maven { url 'https://plugins.gradle.org/m2' }
}
}
subprojects {
apply plugin: 'idea'
apply plugin: 'net.ltgt.errorprone'
apply from: "${rootDir}/gradle/dependencies.gradle"
dependencies {
errorprone dependenciesList.errorprone
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply from: file("${rootDir}/gradle/artifact-settings.gradle")
apply from: file("${rootDir}/gradle/publish-root.gradle")
nexusPublishing {
repositories {
sonatype {
useStaging = !project.ext.isSnapshot
stagingProfileId = sonatypeStagingProfileId
username = ossrhUsername
password = ossrhPassword
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
transitionCheckOptions {
maxRetries = 120
delayBetween = Duration.ofSeconds(10)
}
}