-
Notifications
You must be signed in to change notification settings - Fork 392
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
56 lines (48 loc) · 1.93 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
56 lines (48 loc) · 1.93 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
apply(plugin = "io.github.gradle-nexus.publish-plugin")
apply(from = "${rootDir}/publish/publish-root.gradle")
buildscript {
repositories {
maven("https://plugins.gradle.org/m2/")
google()
mavenCentral()
}
dependencies {
// TODO: AGP 9.2.0 causes libs:MobileSync:lintAnalyzeDebug to hang. Review with future versions. ECJ20260423
classpath("com.android.tools.build:gradle:9.1.1")
classpath("io.github.gradle-nexus:publish-plugin:2.0.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.3.20")
classpath("org.jetbrains.kotlin:compose-compiler-gradle-plugin:2.3.21")
classpath("org.jacoco:org.jacoco.core:0.8.14")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:2.0.0")
}
}
allprojects {
group = "com.salesforce.mobilesdk"
version = "14.0.0"
// Ensure that we do not use newer language features that would make the SDK incompatible with
// apps that do not target the latest version of Kotlin.
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
compilerOptions {
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)
languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)
}
}
}
apply(plugin = "org.jetbrains.dokka")
extensions.configure<org.jetbrains.dokka.gradle.DokkaExtension> {
dokkaPublications.named("html") {
outputDirectory.set(rootDir.resolve("doc"))
}
}
dependencies {
add("dokka", project(":libs:SalesforceAnalytics"))
add("dokka", project(":libs:SalesforceSDK"))
add("dokka", project(":libs:SmartStore"))
add("dokka", project(":libs:MobileSync"))
add("dokka", project(":libs:SalesforceHybrid"))
}
tasks.register<Jar>("javadocJar") {
from(tasks.named("dokkaGeneratePublicationHtml"))
archiveClassifier.set("javadoc")
}