-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
47 lines (39 loc) · 1.09 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
plugins {
`java-gradle-plugin`
`kotlin-dsl`
id("com.gradle.plugin-publish") version "1.3.0"
}
val pluginId = "io.github.MatrixDev.android-rust"
group = pluginId
version = "0.4.0"
@Suppress("UnstableApiUsage")
gradlePlugin {
website = "https://github.com/MatrixDev/GradleAndroidRustPlugin"
vcsUrl = "https://github.com/MatrixDev/GradleAndroidRustPlugin.git"
plugins {
create("AndroidRust") {
id = pluginId
implementationClass = "dev.matrix.agp.rust.AndroidRustPlugin"
displayName = "Plugin for building Rust with Cargo in Android projects"
description = "This plugin helps with building Rust JNI libraries with Cargo for use in Android projects."
tags.set(listOf("android", "rust", "jni"))
}
}
}
publishing {
repositories {
maven {
url = uri(layout.buildDirectory.dir("repo"))
}
}
}
repositories {
mavenCentral()
google()
maven("https://plugins.gradle.org/m2/")
}
dependencies {
gradleApi()
implementation(libs.agp)
implementation(libs.agp.api)
}