-
Notifications
You must be signed in to change notification settings - Fork 31
/
build.gradle
58 lines (49 loc) · 1.57 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: "io.github.gradle-nexus.publish-plugin"
apply plugin: "com.palantir.git-version"
def details = versionDetails()
ext {
PUBLISH_GROUP_ID = "app.rive"
PUBLISH_VERSION = details.lastTag
PUBLISH_ARTIFACT_ID = "rive-android"
}
buildscript {
ext {
gradle_version = "8.7.2"
kotlin_version = "2.0.21"
dokkaVersion = "1.4.30"
compose_version = "1.7.5"
}
repositories {
google()
mavenCentral()
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath("com.android.tools.build:gradle:$gradle_version")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${dokkaVersion}")
classpath("io.github.gradle-nexus:publish-plugin:1.3.0")
classpath("com.palantir.gradle.gitversion:gradle-git-version:3.1.0")
classpath("org.jetbrains.kotlin:compose-compiler-gradle-plugin:2.0.21")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
tasks.register("cleanDeps", Exec) {
workingDir("./kotlin/src/main/cpp")
commandLine("./clean_all.sh")
}
tasks.register("clean", Delete) {
dependsOn(cleanDeps)
delete(rootProject.buildDir)
}
apply from: "${rootDir}/scripts/publish-root.gradle"