SEC-2963: Disable appengineRun if contains functional tests
This commit is contained in:
parent
485fbdc1ee
commit
7317c090cc
|
@ -49,14 +49,4 @@ dependencies {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
appengine.httpPort = reservePorts(1)[0]
|
appengineRun.onlyIf { !gradle.taskGraph.hasTask(appengineFunctionalTest) }
|
||||||
|
|
||||||
def reservePorts(int count) {
|
|
||||||
def sockets = []
|
|
||||||
for(int i in 1..count) {
|
|
||||||
sockets << new ServerSocket(0)
|
|
||||||
}
|
|
||||||
def result = sockets*.localPort
|
|
||||||
sockets*.close()
|
|
||||||
result
|
|
||||||
}
|
|
|
@ -3,7 +3,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-samples-gae-xml</artifactId>
|
<artifactId>spring-security-samples-gae-xml</artifactId>
|
||||||
<version>4.0.2.CI-SNAPSHOT</version>
|
<version>4.0.3.CI-SNAPSHOT</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<name>spring-security-samples-gae-xml</name>
|
<name>spring-security-samples-gae-xml</name>
|
||||||
<description>spring-security-samples-gae-xml</description>
|
<description>spring-security-samples-gae-xml</description>
|
||||||
|
@ -65,13 +65,13 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-core</artifactId>
|
<artifactId>spring-security-core</artifactId>
|
||||||
<version>4.0.2.CI-SNAPSHOT</version>
|
<version>4.0.3.CI-SNAPSHOT</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-web</artifactId>
|
<artifactId>spring-security-web</artifactId>
|
||||||
<version>4.0.2.CI-SNAPSHOT</version>
|
<version>4.0.3.CI-SNAPSHOT</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -139,13 +139,13 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-config</artifactId>
|
<artifactId>spring-security-config</artifactId>
|
||||||
<version>4.0.2.CI-SNAPSHOT</version>
|
<version>4.0.3.CI-SNAPSHOT</version>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-taglibs</artifactId>
|
<artifactId>spring-security-taglibs</artifactId>
|
||||||
<version>4.0.2.CI-SNAPSHOT</version>
|
<version>4.0.3.CI-SNAPSHOT</version>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
Loading…
Reference in New Issue