mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
This is because JavaScript in browsers apparently can not add Authentication headers to websocket requests, so we use a dedicated authentication message there. In Javalin 3, the AccessManager also handles websocket requests. We need to let those pass to support JavaScript.
68 lines
2.0 KiB
Groovy
68 lines
2.0 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'idea'
|
|
id 'org.jetbrains.kotlin.jvm' version '1.3.40'
|
|
id 'org.jetbrains.kotlin.kapt' version '1.3.40'
|
|
id 'witness'
|
|
}
|
|
apply from: 'witness.gradle'
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
dependencies {
|
|
implementation project(path: ':briar-core', configuration: 'default')
|
|
implementation project(path: ':bramble-java', configuration: 'default')
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.40'
|
|
implementation 'io.javalin:javalin:3.5.0'
|
|
implementation 'org.slf4j:slf4j-simple:1.7.26'
|
|
implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.0'
|
|
implementation 'com.github.ajalt:clikt:2.2.0'
|
|
|
|
def daggerVersion = '2.24'
|
|
kapt "com.google.dagger:dagger-compiler:$daggerVersion"
|
|
|
|
testImplementation project(path: ':bramble-api', configuration: 'testOutput')
|
|
testImplementation project(path: ':bramble-core', configuration: 'testOutput')
|
|
testImplementation project(path: ':briar-core', configuration: 'testOutput')
|
|
|
|
def junitVersion = '5.5.2'
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
|
|
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
|
|
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
|
|
testImplementation 'io.mockk:mockk:1.9.3'
|
|
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
|
|
testImplementation 'khttp:khttp:0.1.0'
|
|
|
|
kaptTest "com.google.dagger:dagger-compiler:$daggerVersion"
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes(
|
|
'Main-Class': 'org.briarproject.briar.headless.MainKt'
|
|
)
|
|
}
|
|
from {
|
|
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
}
|
|
|
|
// At the moment for non-Android projects we need to explicitly mark the code generated by kapt
|
|
// as 'generated source code' for correct highlighting and resolve in IDE.
|
|
idea {
|
|
module {
|
|
sourceDirs += file('build/generated/source/kapt/main')
|
|
testSourceDirs += file('build/generated/source/kapt/test')
|
|
generatedSourceDirs += file('build/generated/source/kapt/main')
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events "passed", "skipped", "failed"
|
|
}
|
|
}
|