aboutsummaryrefslogtreecommitdiff
path: root/spark-common/build.gradle
diff options
context:
space:
mode:
authorlucko <git@lucko.me>2023-01-28 11:07:45 +0000
committerGitHub <noreply@github.com>2023-01-28 11:07:45 +0000
commit06b794dcea806150770fb88d43e366a3496a9d0f (patch)
tree15ed2a6b7de22d90844b67291250dab4ec14eeda /spark-common/build.gradle
parentd83e49128ad59308f4b3ff19cf4b22b53236be8d (diff)
downloadspark-06b794dcea806150770fb88d43e366a3496a9d0f.tar.gz
spark-06b794dcea806150770fb88d43e366a3496a9d0f.tar.bz2
spark-06b794dcea806150770fb88d43e366a3496a9d0f.zip
Stream live data to the viewer using WebSockets (#294)
Diffstat (limited to 'spark-common/build.gradle')
-rw-r--r--spark-common/build.gradle25
1 files changed, 24 insertions, 1 deletions
diff --git a/spark-common/build.gradle b/spark-common/build.gradle
index c3d960d..742d943 100644
--- a/spark-common/build.gradle
+++ b/spark-common/build.gradle
@@ -4,6 +4,24 @@ plugins {
id 'com.google.protobuf' version '0.9.1'
}
+sourceSets {
+ java11 {
+ java {
+ srcDirs = ['src/main/java11']
+ }
+ }
+}
+
+compileJava11Java {
+ options.release = 11
+}
+
+jar {
+ into('META-INF/versions/11') {
+ from sourceSets.java11.output
+ }
+}
+
license {
exclude '**/sampler/async/jfr/**'
}
@@ -18,8 +36,11 @@ dependencies {
api project(':spark-api')
implementation 'com.github.jvm-profiling-tools:async-profiler:v2.8.3'
implementation 'org.ow2.asm:asm:9.1'
- implementation 'com.google.protobuf:protobuf-javalite:3.21.11'
implementation 'net.bytebuddy:byte-buddy-agent:1.11.0'
+
+ implementation 'com.google.protobuf:protobuf-javalite:3.21.11'
+ java11Implementation 'com.google.protobuf:protobuf-javalite:3.21.11'
+
api('net.kyori:adventure-api:4.12.0') {
exclude(module: 'adventure-bom')
exclude(module: 'checker-qual')
@@ -40,6 +61,8 @@ dependencies {
compileOnly 'com.google.code.gson:gson:2.7'
compileOnly 'com.google.guava:guava:19.0'
compileOnly 'org.checkerframework:checker-qual:3.8.0'
+
+ java11Implementation files(sourceSets.main.output.classesDirs) { builtBy compileJava }
}
protobuf {