kobalt
kobalt copied to clipboard
Timeout importing kobalt project into IntelliJ
Here's what I do:
cd ~/kobalt-test
~/kobalt-0.786/bin/kobaltw --init kotlin,idea
cat <<EOF > kobalt/src/Build.kt
import com.beust.kobalt.plugin.application.application
import com.beust.kobalt.plugin.packaging.assemble
import com.beust.kobalt.project
object Versions {
val kotlin = "1.0.2"
val dropWizard = "0.9.2"
val kwery = "0.10"
}
val commonCompileDependencies = arrayOf(
"org.slf4j:slf4j-api:1.7.12",
"com.google.guava:guava:18.0",
"org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlin}",
"com.google.inject:guice:4.0"
)
val commonRuntimeDependencies = arrayOf(
"org.jetbrains.kotlin:kotlin-runtime:${Versions.kotlin}"
)
val app = project() {
name = "api"
group = "com.acme"
artifactId = name
version = "1.1"
directory = "web"
dependencies {
compile(
*commonCompileDependencies,
"com.fasterxml.jackson.module:jackson-module-kotlin:2.7.4",
"com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.4.0",
"org.postgresql:postgresql:9.4.1208",
"io.dropwizard:dropwizard-core:${Versions.dropWizard}",
"io.dropwizard:dropwizard-assets:${Versions.dropWizard}",
"io.dropwizard:dropwizard-client:${Versions.dropWizard}",
"io.dropwizard:dropwizard-auth:${Versions.dropWizard}",
"io.dropwizard:dropwizard-testing:${Versions.dropWizard}",
"io.dropwizard:dropwizard-db:${Versions.dropWizard}",
"com.github.andrewoma.kwery:mapper:${Versions.kwery}",
"com.github.andrewoma.kwery:fetcher:${Versions.kwery}",
"com.github.andrewoma.kwery:transactional-jersey:${Versions.kwery}"
)
runtime(*commonRuntimeDependencies,
"org.jetbrains.kotlin:kotlin-reflect:${Versions.kotlin}")
}
assemble {
jar {
}
}
}
I then open up the project in IntelliJ and "import a detached project". The sync times out and I'm not able to get project information in IntelliJ. A server with --log 3 --dev --server --force
shows this, then there's no more output:
L/22:27:11.395 [qtp1154900046-21] ParsedBuildFile - Saved /tmp/kobalt6745903448356834846.kt
L/22:27:11.395 [qtp1154900046-21] Companion - Script jar file: /mnt/data/git/kobalt-test/.kobalt/build/preBuildScript.jar
L/22:27:11.396 [qtp1154900046-21] Companion - Script jar file: /mnt/data/git/kobalt-test/.kobalt/build/buildScript.jar
L/22:27:11.396 [qtp1154900046-21] Companion - Created /tmp/kobalt8105641545719491715.kt
L/22:27:11.396 [qtp1154900046-21] BuildFileCompiler - Running build file Modified Build.kt jar: /mnt/data/git/kobalt-test/.kobalt/build/buildScript.jar
L/22:27:11.396 [qtp1154900046-21] BuildFileCompiler - Build file is up to date
L/22:27:11.399 [qtp1154900046-21] BuildScriptUtil - Found project api in class class Kobalt8716195536585207100Kt
However, I can build on the CLI just fine.