Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #876 from gradle/bamboo/modularity
Browse files Browse the repository at this point in the history
Add script with dependency to `modularity` sample
  • Loading branch information
bamboo authored May 14, 2018
2 parents cdf457e + a03e5df commit 4bb934a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ModularitySampleTest : AbstractSampleTest("modularity") {
@Test
fun `modularity`() {
assertThat(
build("foo", "bar").output,
build("foo", "bar", "lorem").output,
allOf(
containsString("Foo!"),
containsString("Bar!")))
Expand Down
1 change: 1 addition & 0 deletions samples/modularity/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
apply(from = "foo.gradle.kts")
apply(from = "bar.gradle.kts")
apply(from = "lorem.gradle.kts")
18 changes: 18 additions & 0 deletions samples/modularity/lorem.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import com.thedeanda.lorem.*

buildscript {
dependencies {
classpath("com.thedeanda:lorem:2.1")
}

repositories {
jcenter()
}
}

task("lorem") {
group = "sample"
doLast {
println(LoremIpsum.getInstance().getParagraphs(1, 1))
}
}

0 comments on commit 4bb934a

Please sign in to comment.