Merge branch '2.1.x'
commit
3d0219c315
@ -1,11 +1,11 @@
|
||||
import java.io.*;
|
||||
import org.springframework.boot.maven.*;
|
||||
|
||||
File f = new File( basedir, "target/jar-exclude-artifact-0.0.1.BUILD-SNAPSHOT.jar");
|
||||
File f = new File(basedir, "target/jar-exclude-artifact-0.0.1.BUILD-SNAPSHOT.jar")
|
||||
new Verify.JarArchiveVerification(f, Verify.SAMPLE_APP) {
|
||||
@Override
|
||||
protected void verifyZipEntries(Verify.ArchiveVerifier verifier) throws Exception {
|
||||
super.verifyZipEntries(verifier)
|
||||
verifier.assertHasNoEntryNameStartingWith("lib/servlet-api-2.5.jar")
|
||||
}
|
||||
}.verify();
|
||||
}.verify()
|
||||
|
@ -1,7 +1,7 @@
|
||||
import static org.junit.Assert.assertTrue
|
||||
import static org.junit.Assert.assertFalse
|
||||
|
||||
File f = new File( basedir, "target/jar-skip-0.0.1.BUILD-SNAPSHOT.jar")
|
||||
File f = new File(basedir, "target/jar-skip-0.0.1.BUILD-SNAPSHOT.jar")
|
||||
assertTrue 'output file should have been generated', f.exists()
|
||||
File shouldNotExist = new File( basedir, "target/jar-skip-0.0.1.BUILD-SNAPSHOT.jar.original")
|
||||
File shouldNotExist = new File(basedir, "target/jar-skip-0.0.1.BUILD-SNAPSHOT.jar.original")
|
||||
assertFalse 'repackage goal should not have run. .original should not exist', shouldNotExist.exists()
|
||||
|
Loading…
Reference in New Issue