-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (50 loc) · 1.5 KB
/
build.gradle
File metadata and controls
57 lines (50 loc) · 1.5 KB
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
//buildscript {
// repositories {
// google()
// mavenCentral()
// }
// dependencies {
// classpath 'com.google.gms:google-services:4.3.15'
// }
//}
plugins {
id 'com.android.application' version '8.9.1' apply false
id 'com.android.library' version '8.9.1' apply false
id 'org.jetbrains.kotlin.android' version '2.0.0' apply false
id 'io.github.gradle-nexus.publish-plugin' version "1.2.0"
id "org.jetbrains.dokka" version "1.8.10"
id 'com.diffplug.spotless' version '8.0.0' apply false
}
group = "org.xmtp"
version = System.getenv("RELEASE_VERSION")
// Configure Spotless for all subprojects
subprojects {
apply plugin: 'com.diffplug.spotless'
spotless {
kotlin {
target '**/*.kt'
targetExclude '**/build/**', '**/generated/**', '**/xmtpv3.kt'
ktlint('1.7.1')
}
kotlinGradle {
target '**/*.gradle.kts'
ktlint('1.7.1')
}
format 'misc', {
target '**/*.gradle', '**/*.md', '**/.gitignore'
trimTrailingWhitespace()
leadingTabsToSpaces()
endWithNewline()
}
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
stagingProfileId = System.getenv("MAVEN_PROFILE_ID")
}
}
}