From 2ef7a2805fb36389905d66ad53aceee9133ab608 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Wed, 9 Oct 2019 13:55:29 +0900 Subject: [PATCH] Add examples --- examples/groovy/build.gradle | 11 +++++++++++ examples/kotlin/build.gradle.kts | 9 +++++++++ 2 files changed, 20 insertions(+) diff --git a/examples/groovy/build.gradle b/examples/groovy/build.gradle index 4b30c933..8f580fd1 100644 --- a/examples/groovy/build.gradle +++ b/examples/groovy/build.gradle @@ -23,6 +23,7 @@ configurations { bom upToDate exceedLatest + platform upgradesFound upgradesFound2 unresolvable @@ -76,4 +77,14 @@ dependencies { 'com.github.ben-manes:unresolvable2:1.0' unresolvable2 'com.github.ben-manes:unresolvable:1.0', 'com.github.ben-manes:unresolvable2:1.0' + + platform 'com.linecorp.armeria:armeria', + 'io.zipkin.brave:brave' + // Common usage would be to separate this into a project that uses the `java-platform` plugin to + // share constraints among several projects. + constraints { + platform 'com.linecorp.armeria:armeria:0.90.0', + 'io.zipkin.brave:brave:5.7.0' + + } } diff --git a/examples/kotlin/build.gradle.kts b/examples/kotlin/build.gradle.kts index 636fcb20..cd2050b7 100644 --- a/examples/kotlin/build.gradle.kts +++ b/examples/kotlin/build.gradle.kts @@ -13,6 +13,7 @@ configurations { register("bom") register("upToDate") register("exceedLatest") + register("platform") register("upgradesFound") register("upgradesFound2") register("unresolvable") @@ -74,4 +75,12 @@ dependencies { "unresolvable"("com.github.ben-manes:unresolvable2:1.0") "unresolvable2"("com.github.ben-manes:unresolvable:1.0") "unresolvable2"("com.github.ben-manes:unresolvable2:1.0") + "platform"("com.linecorp.armeria:armeria") + "platform"("io.zipkin.brave:brave") + // Common usage would be to separate this into a project that uses the `java-platform` plugin to + // share constraints among several projects. + constraints { + "platform"("com.linecorp.armeria:armeria:0.90.0") + "platform"("io.zipkin.brave:brave:5.7.0") + } }