Skip to content

Commit

Permalink
gradle: fix dependency config error
Browse files Browse the repository at this point in the history
  • Loading branch information
uchuhimo committed Nov 25, 2019
1 parent 4a145f0 commit c8a9398
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ subprojects {
}

dependencies {
implementation(kotlin("stdlib-jdk8"))
api(kotlin("stdlib-jdk8"))
api("org.jetbrains.kotlinx:kotlinx-coroutines-core")
implementation(kotlin("reflect"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core")
implementation("org.reflections:reflections")
implementation("org.apache.commons:commons-text")
arrayOf("core", "annotations", "databind").forEach { name ->
implementation(jacksonCore(name))
api(jacksonCore(name))
}
implementation(jackson("module", "kotlin"))
implementation(jackson("datatype", "jsr310"))
Expand Down
2 changes: 1 addition & 1 deletion konf-all/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies {
":konf-xml",
":konf-yaml"
)) {
implementation(project(name))
api(project(name))
testImplementation(project(name).dependencyProject.sourceSets["test"].output)
}

Expand Down
4 changes: 2 additions & 2 deletions konf-git/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ dependencyManagement {
}

dependencies {
implementation(project(":konf-core"))
implementation("org.eclipse.jgit:org.eclipse.jgit")
api(project(":konf-core"))
api("org.eclipse.jgit:org.eclipse.jgit")

val test by project(":konf-core").dependencyProject.sourceSets
testImplementation(test.output)
Expand Down
2 changes: 1 addition & 1 deletion konf-hocon/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencyManagement {
}

dependencies {
implementation(project(":konf-core"))
api(project(":konf-core"))
implementation("com.typesafe:config")

val test by project(":konf-core").dependencyProject.sourceSets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import com.uchuhimo.konf.source.Source
import com.uchuhimo.konf.source.SourceInfo
import com.uchuhimo.konf.source.ValueSourceNode

fun ConfigValue.toTree(): TreeNode {
private fun ConfigValue.toTree(): TreeNode {
return when (valueType()!!) {
ConfigValueType.NULL -> NullSourceNode
ConfigValueType.BOOLEAN, ConfigValueType.NUMBER, ConfigValueType.STRING -> ValueSourceNode(unwrapped())
Expand All @@ -48,7 +48,7 @@ fun ConfigValue.toTree(): TreeNode {
/**
* Source from a HOCON value.
*/
class HoconSource(
internal class HoconSource(
val value: ConfigValue
) : Source {
override val info: SourceInfo = SourceInfo("type" to "HOCON")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import org.jetbrains.spek.api.dsl.it
import org.jetbrains.spek.api.dsl.on
import org.jetbrains.spek.subject.SubjectSpek

object HoconSourceSpec : SubjectSpek<HoconSource>({
internal object HoconSourceSpec : SubjectSpek<HoconSource>({
subject { HoconProvider.string("key = 1") as HoconSource }

given("a HOCON source") {
Expand Down
2 changes: 1 addition & 1 deletion konf-js/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencyManagement {
}

dependencies {
implementation(project(":konf-core"))
api(project(":konf-core"))
implementation("org.graalvm.sdk:graal-sdk")
implementation("org.graalvm.js:js")

Expand Down
2 changes: 1 addition & 1 deletion konf-toml/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencyManagement {
}

dependencies {
implementation(project(":konf-core"))
api(project(":konf-core"))
implementation("com.moandjiezana.toml:toml4j")

val test by project(":konf-core").dependencyProject.sourceSets
Expand Down
2 changes: 1 addition & 1 deletion konf-xml/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencyManagement {
}

dependencies {
implementation(project(":konf-core"))
api(project(":konf-core"))
implementation("org.dom4j:dom4j")
implementation("jaxen:jaxen")

Expand Down
2 changes: 1 addition & 1 deletion konf-yaml/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencyManagement {
}

dependencies {
implementation(project(":konf-core"))
api(project(":konf-core"))
implementation("org.yaml:snakeyaml")

val test by project(":konf-core").dependencyProject.sourceSets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ object YamlProvider : Provider {
fun get() = this
}

class YamlConstructor : SafeConstructor() {
private class YamlConstructor : SafeConstructor() {
init {
yamlConstructors[Tag.NULL] = object : AbstractConstruct() {
override fun construct(node: Node): Any? {
Expand Down

0 comments on commit c8a9398

Please sign in to comment.