-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
79 lines (67 loc) · 2.85 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
79 lines (67 loc) · 2.85 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
plugins {
id("org.jetbrains.kotlin.android") version "2.0.0" apply false
id("org.jetbrains.kotlin.plugin.serialization") version "2.0.0" apply false
id("com.google.devtools.ksp") version "2.0.0-1.0.21" apply false
}
buildscript {
extra.apply {
set("kotlin_version", "2.0.0")
set("common_obfuscator_version", "1.0.0")
set("shareconnect_version", "1.0.0")
set("shareconnect_version_code", 4)
set("shareconnect_application_name", "com.shareconnect")
set("toolkit_version", "2.0.3")
set("toolkit_context", ":Toolkit")
set("toolkit_project_name", "ShareConnect")
}
repositories {
mavenLocal()
mavenCentral()
google()
maven { url = uri("https://jitpack.io") }
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
}
dependencies {
classpath("com.android.tools.build:gradle:8.9.1")
}
}
allprojects {
// Repositories are configured in settings.gradle.kts
// Global dependency resolution strategy to avoid conflicts
configurations.all {
resolutionStrategy {
// Force consistent protobuf versions and exclude conflicting ones
force("com.google.protobuf:protobuf-java:3.25.1")
force("com.google.protobuf:protobuf-javalite:3.25.1")
// Force consistent BouncyCastle versions
force("org.bouncycastle:bcprov-jdk18on:1.81")
force("org.bouncycastle:bcpkix-jdk18on:1.81")
// Force Spring versions to avoid commons-logging conflicts
force("org.springframework:spring-core:5.3.21")
force("org.springframework:spring-jcl:5.3.21")
// Exclude conflicting protobuf and BouncyCastle versions
eachDependency {
if (requested.group == "com.google.protobuf" && requested.name == "protobuf-lite") {
useTarget("com.google.protobuf:protobuf-java:3.25.1")
}
if (requested.group == "org.bouncycastle" && requested.name == "bcprov-jdk15on") {
useTarget("org.bouncycastle:bcprov-jdk18on:1.81")
}
if (requested.group == "org.bouncycastle" && requested.name == "bcpkix-jdk15on") {
useTarget("org.bouncycastle:bcpkix-jdk18on:1.81")
}
// Exclude commons-logging conflicts
if (requested.group == "commons-logging" && requested.name == "commons-logging") {
useTarget("org.springframework:spring-jcl:5.3.21")
}
}
}
}
}
// Custom configuration for integration tests
apply(from = "build_config.gradle.kts")
// Add check task if it doesn't exist
tasks.register("check") {
group = "verification"
description = "Runs all checks"
}