-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
59 lines (49 loc) · 1.32 KB
/
build.gradle.kts
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
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(BuildPlugins.androidGradlePlugin)
}
}
plugins {
kotlin("jvm") version kotlinVersion
id(BuildPlugins.dokka) version BuildPlugins.Versions.dokka
id(BuildPlugins.orchid) version orchidVersion
`maven-publish`
}
allprojects {
repositories {
mavenLocal()
google()
mavenCentral()
jcenter() // for orchid
maven {
name = "ProtonKotlinSdk"
url = uri("https://maven.pkg.github.com/ProtonProtocol/ProtonKotlin")
credentials {
username = gradleLocalProperties(rootDir).getProperty("github.username")
password = gradleLocalProperties(rootDir).getProperty("github.token")
}
}
}
}
dependencies {
orchidRuntimeOnly(Libraries.orchidDocs)
orchidRuntimeOnly(Libraries.orchidKotlindoc)
orchidRuntimeOnly(Libraries.orchidPluginDocs)
orchidRuntimeOnly(Libraries.orchidGithub)
}
orchid {
theme = "Editorial"
version = ProtonSdk.versionName
srcDir = "protonsdk/src/orchid/resources"
destDir = "protonsdk/build/docs/orchid"
baseUrl = "https://protonprotocol.github.io/ProtonKotlin"
githubToken = gradleLocalProperties(rootDir).getProperty("github.token")
}
tasks.register("cleanAll").configure {
delete("build", "buildSrc/build", "protonsdk/build")
}