-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle
68 lines (51 loc) · 2.19 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
rootProject.name = 'misq-modules-poc'
include 'third-party:libannotation'
include 'third-party:libgson'
include 'third-party:libguava'
include 'third-party:libguice'
include 'third-party:libproto'
include 'third-party:liblogging'
include 'threadmodel'
include 'monetary'
include 'p2p'
include 'api'
include 'grpc'
include 'grpc:grpc-platform'
include 'web'
include 'web:web-platform'
include 'cli'
include 'walletrpc'
include 'walletrpc-btc'
include 'application'
import org.gradle.util.GradleVersion
def minGradleVersion = GradleVersion.version("7.0.2")
def minJavaVersion = JavaVersion.VERSION_15
if (GradleVersion.current().compareTo(minGradleVersion) >= 0 && JavaVersion.current().isCompatibleWith(minJavaVersion)) {
println "Building ${rootProject.name} module with ${GradleVersion.current()} and Java ${JavaVersion.current()}."
} else {
throw new GradleException("${GradleVersion.current()} and Java ${minJavaVersion} are required to build module.")
}
/*
// Migrate to VERSION_CATALOGS feature after it leave incubation.
// https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import
enableFeaturePreview('VERSION_CATALOGS')
dependencyResolutionManagement {
versionCatalogs {
libs {
alias('commons-lang3').to('org.apache.commons', 'commons-lang3').version {
strictly '[3.8, 4.0['
prefer '3.9'
}
// alias('checkerframework').to('org.checkerframework', 'checker-qual').version { require '3.8.0' }
// alias('errorprone-annotations').to('com.google.errorprone', 'error_prone_annotations').version { require '2.5.1' }
alias('checkerframework').to('org.checkerframework:checker-qual:3.8.0')
alias('errorprone-annotations').to('com.google.errorprone:error_prone_annotations:2.5.1')
alias('javax-annotation-api').to('javax.annotation:javax.annotation-api:1.3.2')
alias('gson').to('com.google.code.gson:gson:2.8.6')
alias('lombok').to('org.projectlombok:lombok:1.18.20')
alias('jupiter-api').to('org.junit.jupiter:junit-jupiter-api:5.7.1')
alias('jupiter-engine').to('org.junit.jupiter:junit-jupiter-engine:5.7.1')
}
}
}
*/