-
Notifications
You must be signed in to change notification settings - Fork 4k
/
build.gradle
93 lines (80 loc) · 2.06 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
buildscript {
ext.isCi = "true" == System.getenv('CI')
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
classpath libs.plugin.android
classpath libs.plugin.kotlin
classpath libs.plugin.kotlin.compose
classpath libs.plugin.publish
classpath libs.plugin.spotless
classpath libs.plugin.binaryCompatibilityValidator
classpath libs.plugin.paparazzi
}
}
apply plugin: 'binary-compatibility-validator'
apiValidation {
ignoredProjects += ['picasso-sample', 'picasso-paparazzi-sample']
}
subprojects {
repositories {
mavenCentral()
google()
}
tasks.withType(Test).configureEach {
testLogging {
events "failed"
exceptionFormat "full"
showExceptions true
showStackTraces true
showCauses true
}
}
plugins.withId('com.vanniktech.maven.publish') {
publishing {
repositories {
/**
* Want to push to an internal repository for testing?
* Set the following properties in ~/.gradle/gradle.properties.
*
* internalUrl=YOUR_INTERNAL_URL
* internalUsername=YOUR_USERNAME
* internalPassword=YOUR_PASSWORD
*/
maven {
name = "internal"
url = providers.gradleProperty("internalUrl")
credentials(PasswordCredentials)
}
}
}
}
apply plugin: 'com.diffplug.spotless'
spotless {
kotlin {
target('**/*.kt')
licenseHeaderFile(rootProject.file('gradle/license-header.txt'))
ktlint(libs.versions.ktlint.get())
.setEditorConfigPath(rootProject.file(".editorconfig"))
}
}
group = GROUP
version = VERSION_NAME
}
tasks.named('wrapper').configure {
distributionType = Wrapper.DistributionType.ALL
}
configurations {
osstrich
}
dependencies {
osstrich 'com.squareup.osstrich:osstrich:1.4.0'
}
tasks.register('deployJavadoc', JavaExec) {
classpath = configurations.osstrich
main = 'com.squareup.osstrich.JavadocPublisher'
args "$buildDir/osstrich", '[email protected]:square/picasso.git', 'com.squareup.picasso'
}