Skip to content

Commit 68e0da3

Browse files
committed
[BEAM-4629] Output the names of the failing licenses as part of the build process.
An example build output with a failing license: ``` > Task :rat FAILED Unapproved/unknown license: /usr/local/google/home/lcwik/git/beam/build.gradle FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':rat'. > Found 1 files with unapproved/unknown licenses. See file:/usr/local/google/home/lcwik/git/beam/build/reports/rat/rat-report.xml ```
1 parent 75e3986 commit 68e0da3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build.gradle

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
1918
// See build_rules.gradle for documentation on default build tasks
2019
// and properties that are enabled in addition to natures
2120
// that can be applied to configure a project for certain common
@@ -147,8 +146,11 @@ rat {
147146
exclusions.addAll(gitIgnoreExcludes)
148147
}
149148

150-
plainOutput = true
151-
xmlOutput = false
149+
// Combining verbose with only XML output has each failing license logged.
150+
// See https://github.com/eskatos/creadur-rat-gradle/issues/8 for further details.
151+
verbose = true
152+
plainOutput = false
153+
xmlOutput = true
152154
htmlOutput = false
153155
failOnError = true
154156
excludes = exclusions

0 commit comments

Comments
 (0)