-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.gradle
41 lines (39 loc) · 1.48 KB
/
settings.gradle
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
include 'web', 'ios', 'desktop', 'android', 'core'
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath 'org.kordamp.gradle:enforcer-gradle-plugin:0.13.0'
}
}
apply plugin: 'org.kordamp.gradle.enforcer'
/*
Fails when the same dependency exists more than once, with different versions or if it's a SNAPSHOT.
If that is the case specify/add that dependency in <dependenciesManagement> (transitive dependency) above,
with a version that is compatible with all other dependencies, or try to find an alternative dependency with similar functionality.
Note that having this check is crucial to avoid runtime "method not found" errors that will lead to crashes
and/or unexpected behaviour.
*/
enforce {
rule(enforcer.rules.DependencyConvergence) { r ->
r.enabled
r.enforcerLevel
r.phases
r.failOnDynamicVersions
r.failOnChangingVersions
r.failOnNonReproducibleResolution
r.activateDependencyLocking
r.deactivateDependencyLocking
}
rule(enforcer.rules.ForceDependencies) { r ->
r.dependencies.add('org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10')
r.dependencies.add('org.jetbrains:annotations:23.0.0')
r.dependencies.add('org.slf4j:slf4j-api:2.0.13')
r.dependencies.add('org.apache.commons:commons-lang3:3.12.0')
r.dependencies.add('org.apache.commons:commons-collections4:4.4')
r.dependencies.add('commons-io:commons-io:2.16.1')
r.dependencies.add('com.google.code.gson:gson:2.11.0')
}
}