12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- plugins {
- id 'java'
- id 'idea'
- id 'org.jetbrains.kotlin.jvm' version '1.2.71'
- id 'org.jetbrains.kotlin.kapt' version '1.2.71'
- 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 'io.javalin:javalin:2.4.0'
- implementation 'org.slf4j:slf4j-simple:1.7.25'
- implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.7'
- implementation 'com.github.ajalt:clikt:1.5.0'
- kapt 'com.google.dagger:dagger-compiler:2.19'
- testImplementation project(path: ':bramble-api', configuration: 'testOutput')
- testImplementation project(path: ':bramble-core', configuration: 'testOutput')
- def junitVersion = '5.3.1'
- 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.8.12"
- testImplementation "org.skyscreamer:jsonassert:1.5.0"
- }
- 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')
- generatedSourceDirs += file('build/generated/source/kapt/main')
- }
- }
- test {
- useJUnitPlatform()
- testLogging {
- events "passed", "skipped", "failed"
- }
- }
|