Skip to content

Commit

Permalink
Add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga committed Oct 9, 2019
1 parent bc38df4 commit 2ef7a28
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/groovy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ configurations {
bom
upToDate
exceedLatest
platform
upgradesFound
upgradesFound2
unresolvable
Expand Down Expand Up @@ -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'

}
}
9 changes: 9 additions & 0 deletions examples/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ configurations {
register("bom")
register("upToDate")
register("exceedLatest")
register("platform")
register("upgradesFound")
register("upgradesFound2")
register("unresolvable")
Expand Down Expand Up @@ -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")
}
}

0 comments on commit 2ef7a28

Please sign in to comment.