-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
31 lines (29 loc) · 1.05 KB
/
settings.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
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url = run {
val dependencyText = providers.exec {
workingDir = rootDir
commandLine("cargo", "metadata", "--format-version", "1")
}.standardOutput.asText.get()
val dependencyJson = groovy.json.JsonSlurper().parseText(dependencyText) as Map<String, Object>
val pkgMeta = (dependencyJson["packages"] as List<Object>).find { (it as Map<String, String>)["name"] == "rustls-platform-verifier-android" }
val manifestPath = file((pkgMeta as Map<String, String>)["manifest_path"] as Any)
File(manifestPath.parentFile, "maven").toURI()
}
metadataSources.artifact()
}
}
}
rootProject.name = "jnidemo"
include(":app")