Merge branch '1.1.x'

pull/2479/merge
Phillip Webb 10 years ago
commit 10257d96f2

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2013 the original author or authors. * Copyright 2012-2015 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2013 the original author or authors. * Copyright 2012-2015 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

@ -21,7 +21,6 @@ import java.util.Map;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
@ -31,18 +30,19 @@ import org.springframework.security.config.annotation.authentication.configurati
import org.springframework.security.config.annotation.authentication.configurers.GlobalAuthenticationConfigurerAdapter; import org.springframework.security.config.annotation.authentication.configurers.GlobalAuthenticationConfigurerAdapter;
/** /**
* This works with the {@link AuthenticationConfiguration} to ensure that users are able * {@link GlobalAuthenticationConfigurerAdapter} to trigger early initialization of
* to use: * {@code @EnableAutoConfiguration} beans. This configuration is imported from
* {@link AuthenticationConfiguration} to ensure that users are able to configure the
* {@link AuthenticationManagerBuilder} from their {@code @EnableAutoConfiguration} or
* {@code @SpringBootApplication} configuration class:
* *
* <pre> * <pre class="code">
* &#064;Autowired
* public void configureGlobal(AuthenticationManagerBuilder auth) { * public void configureGlobal(AuthenticationManagerBuilder auth) {
* ... * ...
* } * }
* </pre> * </pre>
* *
* within their classes annotated with {@link EnableAutoConfiguration} or
* {@link SpringBootApplication}.
*
* @author Rob Winch * @author Rob Winch
* @since 1.1.11 * @since 1.1.11
*/ */
@ -76,5 +76,7 @@ public class BootGlobalAuthenticationConfiguration {
logger.debug("Eagerly initializing " + beansWithAnnotation); logger.debug("Eagerly initializing " + beansWithAnnotation);
} }
} }
} }
} }

@ -57,7 +57,6 @@
<module>../spring-boot-samples</module> <module>../spring-boot-samples</module>
<module>../spring-boot-deployment-tests</module> <module>../spring-boot-deployment-tests</module>
<module>../spring-boot-integration-tests</module> <module>../spring-boot-integration-tests</module>
<module>../spring-boot-security-tests</module>
<module>../spring-boot-docs</module> <module>../spring-boot-docs</module>
</modules> </modules>
<profiles> <profiles>

@ -8,7 +8,7 @@
<relativePath>../spring-boot-parent</relativePath> <relativePath>../spring-boot-parent</relativePath>
</parent> </parent>
<artifactId>spring-boot-integration-tests</artifactId> <artifactId>spring-boot-integration-tests</artifactId>
<packaging>jar</packaging> <packaging>pom</packaging>
<name>Spring Boot Integration Tests</name> <name>Spring Boot Integration Tests</name>
<description>Spring Boot Integration Tests</description> <description>Spring Boot Integration Tests</description>
<url>http://projects.spring.io/spring-boot/</url> <url>http://projects.spring.io/spring-boot/</url>
@ -19,24 +19,10 @@
<properties> <properties>
<main.basedir>${basedir}/..</main.basedir> <main.basedir>${basedir}/..</main.basedir>
</properties> </properties>
<dependencies> <modules>
<dependency> <module>spring-boot-gradle-tests</module>
<groupId>org.gradle</groupId> <module>spring-boot-security-tests</module>
<artifactId>gradle-tooling-api</artifactId> </modules>
<version>${gradle.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependency-tools</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<profiles> <profiles>
<profile> <profile>
<id>default</id> <id>default</id>
@ -50,6 +36,7 @@
is available --> is available -->
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId> <artifactId>maven-invoker-plugin</artifactId>
<inherited>false</inherited>
<configuration> <configuration>
<settingsFile>src/it/settings.xml</settingsFile> <settingsFile>src/it/settings.xml</settingsFile>
<projectsDirectory>${main.basedir}/spring-boot-samples/</projectsDirectory> <projectsDirectory>${main.basedir}/spring-boot-samples/</projectsDirectory>
@ -60,6 +47,9 @@
<profile>integration-test</profile> <profile>integration-test</profile>
</profiles> </profiles>
<localRepositoryPath> </localRepositoryPath> <localRepositoryPath> </localRepositoryPath>
<pomIncludes>
<pomInclude>*/pom.xml</pomInclude>
</pomIncludes>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
@ -75,6 +65,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId> <artifactId>maven-antrun-plugin</artifactId>
<inherited>false</inherited>
<executions> <executions>
<execution> <execution>
<id>clean-samples</id> <id>clean-samples</id>
@ -95,6 +86,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId> <artifactId>maven-clean-plugin</artifactId>
<inherited>false</inherited>
<executions> <executions>
<execution> <execution>
<id>clean-samples</id> <id>clean-samples</id>
@ -112,16 +104,4 @@
<id>full</id> <id>full</id>
</profile> </profile>
</profiles> </profiles>
<repositories>
<repository>
<id>gradle</id>
<url>http://repo.gradle.org/gradle/libs-releases-local</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</project> </project>

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-integration-tests</artifactId>
<version>1.2.2.BUILD-SNAPSHOT</version>
</parent>
<artifactId>spring-boot-gradle-tests</artifactId>
<packaging>jar</packaging>
<name>Spring Boot Gradle Integration Tests</name>
<description>Spring Boot Gradle Integration Tests</description>
<url>http://projects.spring.io/spring-boot/</url>
<organization>
<name>Pivotal Software, Inc.</name>
<url>http://www.spring.io</url>
</organization>
<properties>
<main.basedir>${basedir}/../..</main.basedir>
</properties>
<dependencies>
<dependency>
<groupId>org.gradle</groupId>
<artifactId>gradle-tooling-api</artifactId>
<version>${gradle.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependency-tools</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>gradle</id>
<url>http://repo.gradle.org/gradle/libs-releases-local</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</project>

@ -60,7 +60,7 @@ public class StarterDependenciesIntegrationTests {
@Parameters @Parameters
public static List<String[]> getStarters() { public static List<String[]> getStarters() {
List<String[]> starters = new ArrayList<String[]>(); List<String[]> starters = new ArrayList<String[]>();
for (File file : new File("../spring-boot-starters").listFiles()) { for (File file : new File("../../spring-boot-starters").listFiles()) {
if (file.isDirectory() && new File(file, "pom.xml").exists()) { if (file.isDirectory() && new File(file, "pom.xml").exists()) {
String name = file.getName(); String name = file.getName();
if (name.startsWith(STARTER_NAME_PREFIX) if (name.startsWith(STARTER_NAME_PREFIX)

@ -3,9 +3,8 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-parent</artifactId> <artifactId>spring-boot-integration-tests</artifactId>
<version>1.2.2.BUILD-SNAPSHOT</version> <version>1.2.2.BUILD-SNAPSHOT</version>
<relativePath>../spring-boot-parent</relativePath>
</parent> </parent>
<artifactId>spring-boot-security-tests</artifactId> <artifactId>spring-boot-security-tests</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
@ -16,6 +15,9 @@
<name>Pivotal Software, Inc.</name> <name>Pivotal Software, Inc.</name>
<url>http://www.spring.io</url> <url>http://www.spring.io</url>
</organization> </organization>
<properties>
<main.basedir>${basedir}/..</main.basedir>
</properties>
<modules> <modules>
<module>spring-boot-security-tests-web-helloworld</module> <module>spring-boot-security-tests-web-helloworld</module>
</modules> </modules>

@ -16,7 +16,7 @@
<url>http://www.spring.io</url> <url>http://www.spring.io</url>
</organization> </organization>
<properties> <properties>
<main.basedir>${basedir}/../..</main.basedir> <main.basedir>${basedir}/../../..</main.basedir>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>

@ -32,4 +32,5 @@ public class HelloWebSecurityApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(HelloWebSecurityApplication.class, args); SpringApplication.run(HelloWebSecurityApplication.class, args);
} }
} }

@ -72,4 +72,5 @@ public class HelloWebSecurityApplicationTests {
assertThat(this.response.getStatus(), equalTo(HttpServletResponse.SC_OK)); assertThat(this.response.getStatus(), equalTo(HttpServletResponse.SC_OK));
} }
} }

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2014 the original author or authors. * Copyright 2012-2015 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

Loading…
Cancel
Save