-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
50 lines (48 loc) · 1.5 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
plugins {
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.publish)
alias(libs.plugins.spotless)
alias(libs.plugins.wire) apply false
}
spotless {
kotlin {
target "**/*.kt"
targetExclude "gradle-plugin/src/test/fixtures/**/*.*", "**/com/android/build/gradle/internal/**/*.*"
ktlint(libs.versions.ktlint.get()).editorConfigOverride([
"indent_size" : "2",
"disabled_rules" : "package-name",
"ij_kotlin_allow_trailing_comma" : "true",
"ij_kotlin_allow_trailing_comma_on_call_site": "true",
])
trimTrailingWhitespace()
endWithNewline()
licenseHeaderFile(rootProject.file('gradle/license-header.txt'))
}
}
subprojects {
plugins.withId("com.vanniktech.maven.publish") {
publishing {
repositories {
maven {
name = "installLocally"
url = "${rootProject.buildDir}/localMaven"
}
/**
* 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)
}
}
}
}
}