aboutsummaryrefslogtreecommitdiff
path: root/spark-common/build.gradle
blob: ea4019d858ba6e4f6905a4311bac7c455e23b4ee (plain)
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
plugins {
    id 'com.google.protobuf' version '0.8.14'
}

dependencies {
    compile 'com.github.jvm-profiling-tools:async-profiler:v2.0'
    compile 'org.ow2.asm:asm:7.1'
    compile 'com.google.protobuf:protobuf-javalite:3.15.6'
    compile 'com.squareup.okhttp3:okhttp:3.14.1'
    compile 'com.squareup.okio:okio:1.17.3'
    compile 'org.tukaani:xz:1.8'
    compile('net.kyori:adventure-api:4.7.0') {
        exclude(module: 'checker-qual')
        exclude(module: 'annotations')
    }
    compile('net.kyori:adventure-text-serializer-gson:4.7.0') {
        exclude(module: 'adventure-api')
        exclude(module: 'gson')
    }
    compile('net.kyori:adventure-text-serializer-legacy:4.7.0') {
        exclude(module: 'adventure-api')
    }
    compile('net.kyori:adventure-text-feature-pagination:4.0.0-SNAPSHOT') {
        exclude(module: 'adventure-api')
    }
    compileOnly 'com.google.code.gson:gson:2.7'
    compileOnly 'com.google.guava:guava:19.0'
}

processResources {
    from(sourceSets.main.resources.srcDirs) {
        include 'libasyncProfiler.so'
    }
}

protobuf {
    protoc {
        artifact = 'com.google.protobuf:protoc:3.15.6'
        //path = '/opt/homebrew/bin/protoc' // required to support building on osx-aarch64
    }
    generateProtoTasks {
        all().each { task ->
            task.builtins {
                java {
                    option 'lite'
                }
            }
        }
    }
}