Skip to content

Commit

Permalink
Add additional test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
drice-buf committed Jul 30, 2024
1 parent 8b48c6f commit bd5f6ab
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/kotlin/build/buf/gradle/ConfigurationTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ class ConfigurationTest : AbstractBufIntegrationTest() {
assertFailure()
}

@Test
fun `project cannot use buf yaml workspaces and the protobuf gradle plugin first`() {
assertFailure()
}

@Test
fun `project cannot use buf yaml workspaces and the protobuf gradle plugin second`() {
assertFailure()
}

@Test
fun `project can use both buf-yaml and the protobuf-gradle-plugin, protobuf applied first`() {
gradleRunner().withArguments(":tasks").build()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version: v1
directories:
- workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version: v2
modules:
- path: workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
plugins {
id 'java'
id 'build.buf'
id 'com.google.protobuf' version "$protobufGradleVersion"
}

repositories {
mavenCentral()
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version: v1
directories:
- workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version: v2
modules:
- path: workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
plugins {
id 'java'
id 'com.google.protobuf' version "$protobufGradleVersion"
id 'build.buf'
}

repositories {
mavenCentral()
}

0 comments on commit bd5f6ab

Please sign in to comment.