forked from wildmountainfarms/solarthing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (82 loc) · 2.42 KB
/
build.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version "0.0.1-SNAPSHOT"
description = """SolarThing"""
buildscript {
ext {
junit5Version = '5.7.0'
junit5PlatformVersion = '1.7.0'
slf4jVersion = '1.7.30'
log4jVersion = '2.13.3'
jacksonVersion = '2.11.3'
// retrofit is why we need allow-opens. context: https://stackoverflow.com/questions/60915381/retrofit2-maven-project-illegal-reflective-access-warning // https://github.com/square/retrofit/issues/3341
retrofitVersion = "2.9.0"
shadowVersion = '6.1.0'
ioLibVersion = '2.1.0'
}
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
google()
}
}
subprojects {
apply plugin: 'java-library'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven { url "https://jitpack.io" }
maven { url "https://repo.maven.apache.org/maven2" }
}
dependencies {
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junit5Version
testImplementation "org.junit.jupiter:junit-jupiter-params:$junit5Version"
testImplementation "org.junit.platform:junit-platform-commons:$junit5PlatformVersion"
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: junit5Version
// https://mvnrepository.com/artifact/com.google.code.findbugs/jsr305
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
implementation 'org.jetbrains:annotations:15.0'
}
test {
useJUnitPlatform()
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile){
options.compilerArgs << "-Xlint:deprecation"
}
}
}
project(":common"){
apply plugin: 'java'
dependencies {
api project(":core")
}
}
project(":client"){
apply plugin: 'java'
dependencies {
api project(":core")
api project(":common")
api project(":serviceapi")
}
}
project(":serviceapi"){
apply plugin: 'java'
dependencies {
api project(":core")
}
}
project(":graphql"){
apply plugin: 'java'
dependencies {
api project(":core")
api project(":common")
}
}
wrapper {
gradleVersion = '6.6.1'
distributionType = Wrapper.DistributionType.ALL
}