2023-09-15 00:27:34 +03:00
|
|
|
import java.io.FileInputStream
|
|
|
|
import java.util.Properties
|
|
|
|
|
2023-08-23 00:03:42 +03:00
|
|
|
pluginManagement {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
}
|
2023-09-15 00:27:34 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Loads local user-specific build properties that are not checked into source control.
|
|
|
|
*/
|
|
|
|
val userProperties = Properties().apply {
|
|
|
|
val buildPropertiesFile = File(rootDir, "user.properties")
|
|
|
|
if (buildPropertiesFile.exists()) {
|
|
|
|
FileInputStream(buildPropertiesFile).use { load(it) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-29 01:55:58 +03:00
|
|
|
@Suppress("UnstableApiUsage")
|
2023-08-23 00:03:42 +03:00
|
|
|
dependencyResolutionManagement {
|
|
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
2023-09-15 00:27:34 +03:00
|
|
|
maven {
|
|
|
|
name = "GitHubPackages (Bitwarden)"
|
|
|
|
url = uri("https://maven.pkg.github.com/bitwarden/sdk")
|
|
|
|
credentials {
|
|
|
|
username = ""
|
|
|
|
password = userProperties["gitHubToken"] as String? ?: System.getenv("GITHUB_TOKEN")
|
|
|
|
}
|
|
|
|
}
|
2023-08-23 00:03:42 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-15 21:37:34 +03:00
|
|
|
buildCache {
|
|
|
|
local {
|
|
|
|
isEnabled = true
|
|
|
|
directory = File(rootDir, "build-cache")
|
|
|
|
removeUnusedEntriesAfterDays = 15
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-23 00:03:42 +03:00
|
|
|
rootProject.name = "Bitwarden"
|
|
|
|
include(":app")
|
2024-09-05 20:22:49 +03:00
|
|
|
include(":bridge")
|