Project
has two mandatory attributes: name
and The dependencies for your tests
+
+ The source directories point to standard locations by default, so if you're using a standard layout
+ for your project (src/main/java
, src/main/kotlin
, src/test/java
,
+ etc...), you do not need to specify any of these directories.
+
Mixed language projects
A Kobalt project can mix Kotlin and Java in it, simply specify all the source
@@ -109,7 +114,7 @@ val p = project(wrapper) {
name = "kobalt"
// ...
sourceDirectories {
- path("src/main/java", "src/main/kotlin")
+ path("src/nonstandard/java", "src/nonstandard/kotlin")
}
}