Skip to content

Commit

Permalink
[#31] Rename source directories
Browse files Browse the repository at this point in the history
  • Loading branch information
ccjernigan committed Apr 21, 2022
1 parent 93afba2 commit 3f24445
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ plugins {
group = project.property("GROUP").toString()
version = project.property("VERSION_NAME").toString()

sourceSets {
main {
java {
setSrcDirs(listOf("src/jvmMain/kotlin"))
}
}

test {
java {
setSrcDirs(listOf("src/jvmTest/kotlin", "src/jvmTest/resources"))
}
}
}

kotlin {
jvmToolchain {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ fun String.swap(srcWord: Int, destWord: Int = srcWord + 1): String {
}

fun loadTestData(): TestDataSet? =
Okio.buffer(Okio.source(File("src/test/resources/data/BIP-0039-test-values.json")))
Okio.buffer(Okio.source(File("src/jvmTest/resources/data/BIP-0039-test-values.json")))
.use { dataFile ->
Moshi.Builder().add(KotlinJsonAdapterFactory()).build()
.adapter(TestDataSet::class.java).fromJson(dataFile)
Expand Down

0 comments on commit 3f24445

Please sign in to comment.