@@ -6,7 +6,6 @@ import spock.lang.Specification
66import spock.lang.Unroll
77
88import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
9- import static org.gradle.testkit.runner.TaskOutcome.FAILED
109import static test.TestUtils.gradleWithCommand
1110import static test.TestUtils.gradleWithCommandWithFail
1211
@@ -49,7 +48,7 @@ final class LicensePluginSpec extends Specification {
4948 }
5049 }
5150
52- apply plugin: 'java'
51+ apply plugin: 'java-library '
5352 apply plugin: 'com.jaredsburrows.license'
5453 """
5554
@@ -82,15 +81,15 @@ final class LicensePluginSpec extends Specification {
8281 def result = gradleWithCommandWithFail(testProjectDir. root, ' licenseReport' , ' -s' )
8382
8483 then :
85- result. output. contains(" 'com.jaredsburrows.license' requires Java, Kotlin or Android Gradle Plugins ." )
84+ result. output. contains(" 'com.jaredsburrows.license' requires Java, Kotlin or Android Gradle based plugins ." )
8685 }
8786
8887 def ' apply plugin with plugins dsl' () {
8988 given :
9089 buildFile <<
9190 """
9291 plugins {
93- id 'java'
92+ id 'java-library '
9493 id 'com.jaredsburrows.license'
9594 }
9695 """
@@ -115,7 +114,7 @@ final class LicensePluginSpec extends Specification {
115114 def result = gradleWithCommandWithFail(testProjectDir. root, ' licenseReport' , ' -s' )
116115
117116 then :
118- result. output. contains(" 'com.jaredsburrows.license' requires Java, Kotlin or Android Gradle Plugins ." )
117+ result. output. contains(" 'com.jaredsburrows.license' requires Java, Kotlin or Android Gradle based plugins ." )
119118 }
120119
121120 @Unroll
@@ -133,7 +132,7 @@ final class LicensePluginSpec extends Specification {
133132 def result = gradleWithCommandWithFail(testProjectDir. root, ' licenseReport' , ' -s' )
134133
135134 then :
136- result. output. contains(" 'com.jaredsburrows.license' requires Java, Kotlin or Android Gradle Plugins ." )
135+ result. output. contains(" 'com.jaredsburrows.license' requires Java, Kotlin or Android Gradle based plugins ." )
137136
138137 where :
139138 // https://github.com/gradle/gradle/find/master, search for "gradle-plugins"
0 commit comments