@@ -0,0 +1,1710 @@
+/*%0A * Copyright 2016 DiffPlug%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.diffplug.gradle.spotless;%0A%0Aimport java.io.IOException;%0A%0Aimport org.assertj.core.api.Assertions;%0Aimport org.gradle.testkit.runner.GradleRunner;%0Aimport org.junit.Test;%0A%0A/** Reproduces https://github.com/diffplug/spotless/issues/506 */%0Apublic class MultiProjectAfterEvaluate extends GradleIntegrationTest %7B%0A%09@Test%0A%09public void failureDoesntTriggerAll() throws IOException %7B%0A%09%09setFile(%22settings.gradle%22).toLines(%22include 'sub'%22);%0A%09%09setFile(%22build.gradle%22).toLines(%22buildscript %7B repositories %7B mavenCentral() %7D%7D%22);%0A%09%09setFile(%22sub/build.gradle%22)%0A%09%09%09%09.toLines(%0A%09%09%09%09%09%09%22plugins %7B%22,%0A%09%09%09%09%09%09%22  id 'com.diffplug.gradle.spotless'%22,%0A%09%09%09%09%09%09%22  id 'java'%22,%0A%09%09%09%09%09%09%22%7D%22,%0A%09%09%09%09%09%09%22spotless %7B java %7B googleJavaFormat() %7D %7D%22);%0A%09%09String output = gradleRunner6().withArguments(%22spotlessApply%22, %22--warning-mode%22, %22all%22).build().getOutput().replace(%22%5Cr%5Cn%22, %22%5Cn%22);%0A%09%09Assertions.assertThat(output).contains(%22Using method Project#afterEvaluate(Action) when the project is already evaluated has been deprecated.%22);%0A%09%7D%0A%0A%09private final GradleRunner gradleRunner6() throws IOException %7B%0A%09%09return gradleRunner().withGradleVersion(%226.0%22);%0A%09%7D%0A%7D%0A

Add test to reproduce #506.