briar-headless: Add command line arguments

This commit is contained in:
Torsten Grote
2018-08-28 17:04:43 -03:00
parent 5783c1dfd8
commit 138e520e6c
11 changed files with 289 additions and 355 deletions

View File

@@ -1,8 +1,8 @@
plugins {
id 'java'
id 'net.ltgt.apt'
id 'idea'
id "org.jetbrains.kotlin.jvm" version "1.2.61"
id 'org.jetbrains.kotlin.jvm' version '1.2.61'
id "org.jetbrains.kotlin.kapt" version "1.2.61"
id 'witness'
}
apply from: 'witness.gradle'
@@ -17,8 +17,8 @@ dependencies {
implementation 'io.javalin:javalin:2.1.0'
implementation 'org.slf4j:slf4j-simple:1.7.25'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.6'
implementation 'com.github.ajalt:clikt:1.5.0'
apt 'com.google.dagger:dagger-compiler:2.0.2'
kapt 'com.google.dagger:dagger-compiler:2.0.2'
testImplementation project(path: ':bramble-api', configuration: 'testOutput')
@@ -34,7 +34,7 @@ dependencies {
jar {
manifest {
attributes(
'Main-Class': 'org.briarproject.briar.headless.Main'
'Main-Class': 'org.briarproject.briar.headless.MainKt'
)
}
from {
@@ -42,6 +42,15 @@ jar {
}
}
// 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 {