mirror of
https://github.com/mollyim/monero-wallet-sdk.git
synced 2025-04-05 12:56:12 -04:00
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
pluginManagement {
|
|
includeBuild("build-logic")
|
|
repositories {
|
|
gradlePluginPortal()
|
|
google()
|
|
}
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
|
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
|
|
repositories {
|
|
google {
|
|
content {
|
|
includeGroupByRegex("com\\.android(\\..*)?")
|
|
includeGroupByRegex("com\\.google(\\..*)?")
|
|
includeGroupByRegex("androidx?(\\..*)?")
|
|
}
|
|
}
|
|
mavenCentral()
|
|
}
|
|
versionCatalogs {
|
|
// "libs" is predefined by Gradle
|
|
create("testLibs") {
|
|
from(files("gradle/test-libs.versions.toml"))
|
|
}
|
|
}
|
|
}
|
|
|
|
check(JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_21)) {
|
|
"""
|
|
This project requires JDK 21+ but it is currently using JDK ${JavaVersion.current()}.
|
|
Java Home: [${System.getProperty("java.home")}]
|
|
https://developer.android.com/build/jdks#jdk-config-in-studio
|
|
""".trimIndent()
|
|
}
|
|
|
|
includeProject("lib", "lib/android")
|
|
includeProject("demo", "demo/android")
|
|
|
|
fun includeProject(projectName: String, projectRoot: String) {
|
|
val projectId = ":$projectName"
|
|
include(projectId)
|
|
project(projectId).projectDir = file(projectRoot)
|
|
}
|