forked from MarginaliaSearch/MarginaliaSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
srcsets.gradle
51 lines (46 loc) · 1.24 KB
/
srcsets.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
/** Configures the source sets for the code/ subprojects.
*
* Ideally this would have been done in the root build.gradle file, but due to disagreements
* between Gradle and IntelliJ's gradle plugin about how to interpret the sourceSets block
* when applied to subprojects from the root project, this has to be done in each subproject.
* */
apply plugin: 'java'
apply plugin: 'io.freefair.lombok'
dependencies {
implementation libs.lombok
testImplementation libs.lombok
annotationProcessor libs.lombok
lombok libs.lombok // prevent plugin from downgrading the version to something incompatible with '19
}
test {
maxHeapSize = "8G"
useJUnitPlatform()
}
tasks.register('fastTests', Test) {
maxHeapSize = "8G"
useJUnitPlatform {
excludeTags "slow"
}
}
sourceSets {
main {
java {
srcDirs = [
'java',
'build/generated/source/proto/main/grpc',
'build/generated/source/proto/main/java'
]
}
resources {
srcDirs = [ 'resources' ]
}
}
test {
java {
srcDirs = [ 'test' ]
}
resources {
srcDirs = [ 'test-resources' ]
}
}
}