Browse Source

Sync up versions used in Maven integration tests

Fixes gh-1797
pull/2035/head
Phillip Webb 12 years ago
parent
commit
3a9d6242ea
  1. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-artifact/pom.xml
  2. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-entry/pom.xml
  3. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-group/pom.xml
  4. 2
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/acme-lib/pom.xml
  5. 2
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/test-project/pom.xml
  6. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-pom/pom.xml
  7. 6
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-test-scope/pom.xml
  8. 6
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/pom.xml
  9. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/verify.groovy
  10. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar/pom.xml
  11. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/prop/pom.xml
  12. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/run-exclude/pom.xml
  13. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/war/pom.xml
  14. 18
      spring-boot-tools/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/Verify.java

4
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-artifact/pom.xml

@ -43,12 +43,12 @@ @@ -43,12 +43,12 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version>
<version>@spring.version@</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<version>@servlet-api.version@</version>
<scope>provided</scope>
</dependency>
<dependency>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-entry/pom.xml

@ -48,12 +48,12 @@ @@ -48,12 +48,12 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version>
<version>@spring.version@</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<version>@servlet-api.version@</version>
<scope>provided</scope>
</dependency>
<dependency>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-group/pom.xml

@ -43,12 +43,12 @@ @@ -43,12 +43,12 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version>
<version>@spring.version@</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<version>@servlet-api.version@</version>
<scope>provided</scope>
</dependency>
<dependency>

2
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/acme-lib/pom.xml

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version>
<version>@spring.version@</version>
</dependency>
</dependencies>
</project>

2
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/test-project/pom.xml

@ -51,7 +51,7 @@ @@ -51,7 +51,7 @@
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<version>@servlet-api.version@</version>
<scope>provided</scope>
</dependency>
</dependencies>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-pom/pom.xml

@ -29,12 +29,12 @@ @@ -29,12 +29,12 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version>
<version>@spring.version@</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<version>@servlet-api.version@</version>
<scope>provided</scope>
</dependency>
</dependencies>

6
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-test-scope/pom.xml

@ -43,18 +43,18 @@ @@ -43,18 +43,18 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version>
<version>@spring.version@</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<version>@servlet-api.version@</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
<version>@log4j.version@</version>
<scope>test</scope>
</dependency>
</dependencies>

6
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/pom.xml

@ -48,18 +48,18 @@ @@ -48,18 +48,18 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version>
<version>@spring.version@</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<version>@servlet-api.version@</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
<version>@log4j.version@</version>
</dependency>
</dependencies>
</project>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/verify.groovy

@ -22,7 +22,7 @@ new Verify.JarArchiveVerification(f, Verify.SAMPLE_APP) { @@ -22,7 +22,7 @@ new Verify.JarArchiveVerification(f, Verify.SAMPLE_APP) {
@Override
protected void verifyZipEntries(Verify.ArchiveVerifier verifier) throws Exception {
super.verifyZipEntries(verifier)
verifier.hasUnpackEntry("lib/spring-core-4.0.5.RELEASE.jar")
verifier.hasNonUnpackEntry("lib/spring-context-4.0.5.RELEASE.jar")
verifier.hasUnpackEntry("lib/spring-core-")
verifier.hasNonUnpackEntry("lib/spring-context-")
}
}.verify();

4
spring-boot-tools/spring-boot-maven-plugin/src/it/jar/pom.xml

@ -43,12 +43,12 @@ @@ -43,12 +43,12 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version>
<version>@spring.version@</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<version>@servlet-api.version@</version>
<scope>provided</scope>
</dependency>
</dependencies>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/prop/pom.xml

@ -43,12 +43,12 @@ @@ -43,12 +43,12 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version>
<version>@spring.version@</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<version>@servlet-api.version@</version>
<scope>provided</scope>
</dependency>
</dependencies>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/run-exclude/pom.xml

@ -38,12 +38,12 @@ @@ -38,12 +38,12 @@
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
<version>@log4j.version@</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<version>@servlet-api.version@</version>
<scope>provided</scope>
</dependency>
<dependency>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/war/pom.xml

@ -42,12 +42,12 @@ @@ -42,12 +42,12 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version>
<version>@spring.version@</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<version>@servlet-api.version@</version>
<scope>provided</scope>
</dependency>
</dependencies>

18
spring-boot-tools/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/Verify.java

@ -87,15 +87,25 @@ public class Verify { @@ -87,15 +87,25 @@ public class Verify {
}
}
public boolean hasNonUnpackEntry(String entry) {
return !hasUnpackEntry(entry);
public boolean hasNonUnpackEntry(String entryName) {
return !hasUnpackEntry(entryName);
}
public boolean hasUnpackEntry(String entry) {
String comment = this.content.get(entry).getComment();
public boolean hasUnpackEntry(String entryName) {
String comment = getEntryStartingWith(entryName).getComment();
return comment != null && comment.startsWith("UNPACK:");
}
private ZipEntry getEntryStartingWith(String entryName) {
for (Map.Entry<String, ZipEntry> entry : this.content.entrySet()) {
if (entry.getKey().startsWith(entryName)) {
return entry.getValue();
}
}
throw new IllegalStateException("Unable to find entry starting with "
+ entryName);
}
public boolean hasEntry(String entry) {
return this.content.containsKey(entry);
}

Loading…
Cancel
Save