Explorar o código

SEC-2194: Update samples to have jsp-api

Rob Winch %!s(int64=12) %!d(string=hai) anos
pai
achega
2feded5fc5

+ 2 - 1
samples/concurrency-jc/build.gradle

@@ -2,7 +2,8 @@ apply from: WAR_SAMPLE_GRADLE
 
 dependencies {
 
-    providedCompile "javax.servlet:javax.servlet-api:3.0.1"
+    providedCompile "javax.servlet:javax.servlet-api:3.0.1",
+                    'javax.servlet.jsp:jsp-api:2.1'
 
     compile project(":spring-security-config"),
             project(":spring-security-samples-messages-jc"),

+ 6 - 0
samples/concurrency-jc/pom.xml

@@ -147,6 +147,12 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.1</version>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>javax.servlet-api</artifactId>

+ 2 - 1
samples/hellomvc-jc/build.gradle

@@ -2,7 +2,8 @@ apply from: WAR_SAMPLE_GRADLE
 
 dependencies {
 
-    providedCompile "javax.servlet:javax.servlet-api:3.0.1"
+    providedCompile "javax.servlet:javax.servlet-api:3.0.1",
+                    'javax.servlet.jsp:jsp-api:2.1'
 
     compile project(":spring-security-config"),
             project(":spring-security-samples-messages-jc"),

+ 6 - 0
samples/hellomvc-jc/pom.xml

@@ -147,6 +147,12 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.1</version>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>javax.servlet-api</artifactId>

+ 2 - 1
samples/helloworld-jc/build.gradle

@@ -2,7 +2,8 @@ apply from: WAR_SAMPLE_GRADLE
 
 dependencies {
 
-    providedCompile "javax.servlet:javax.servlet-api:3.0.1"
+    providedCompile "javax.servlet:javax.servlet-api:3.0.1",
+                    'javax.servlet.jsp:jsp-api:2.1'
 
     compile project(":spring-security-config"),
             project(":spring-security-web"),

+ 6 - 0
samples/helloworld-jc/pom.xml

@@ -93,6 +93,12 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.1</version>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>javax.servlet-api</artifactId>

+ 2 - 1
samples/inmemory-jc/build.gradle

@@ -2,7 +2,8 @@ apply from: WAR_SAMPLE_GRADLE
 
 dependencies {
 
-    providedCompile "javax.servlet:javax.servlet-api:3.0.1"
+    providedCompile "javax.servlet:javax.servlet-api:3.0.1",
+                    'javax.servlet.jsp:jsp-api:2.1'
 
     compile project(":spring-security-config"),
             project(":spring-security-samples-messages-jc"),

+ 6 - 0
samples/inmemory-jc/pom.xml

@@ -147,6 +147,12 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.1</version>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>javax.servlet-api</artifactId>

+ 2 - 1
samples/insecuremvc/build.gradle

@@ -2,7 +2,8 @@ apply from: WAR_SAMPLE_GRADLE
 
 dependencies {
 
-    providedCompile "javax.servlet:javax.servlet-api:3.0.1"
+    providedCompile "javax.servlet:javax.servlet-api:3.0.1",
+                    'javax.servlet.jsp:jsp-api:2.1'
 
     compile project(":spring-security-samples-messages-jc"),
             "org.springframework:spring-webmvc:$springVersion",

+ 6 - 0
samples/insecuremvc/pom.xml

@@ -129,6 +129,12 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.1</version>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>javax.servlet-api</artifactId>

+ 2 - 1
samples/jdbc-jc/build.gradle

@@ -2,7 +2,8 @@ apply from: WAR_SAMPLE_GRADLE
 
 dependencies {
 
-    providedCompile "javax.servlet:javax.servlet-api:3.0.1"
+    providedCompile "javax.servlet:javax.servlet-api:3.0.1",
+                    'javax.servlet.jsp:jsp-api:2.1'
 
     compile project(":spring-security-config"),
             project(":spring-security-samples-messages-jc"),

+ 6 - 0
samples/jdbc-jc/pom.xml

@@ -147,6 +147,12 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.1</version>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>javax.servlet-api</artifactId>

+ 2 - 1
samples/ldap-jc/build.gradle

@@ -2,7 +2,8 @@ apply from: WAR_SAMPLE_GRADLE
 
 dependencies {
 
-    providedCompile "javax.servlet:javax.servlet-api:3.0.1"
+    providedCompile "javax.servlet:javax.servlet-api:3.0.1",
+                    'javax.servlet.jsp:jsp-api:2.1'
 
     compile project(":spring-security-ldap"),
             apacheds_libs,

+ 6 - 0
samples/ldap-jc/pom.xml

@@ -189,6 +189,12 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.1</version>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>javax.servlet-api</artifactId>

+ 2 - 1
samples/openid-jc/build.gradle

@@ -2,7 +2,8 @@ apply from: WAR_SAMPLE_GRADLE
 
 dependencies {
 
-    providedCompile "javax.servlet:javax.servlet-api:3.0.1"
+    providedCompile "javax.servlet:javax.servlet-api:3.0.1",
+                    'javax.servlet.jsp:jsp-api:2.1'
 
     compile project(":spring-security-config"),
             project(":spring-security-openid"),

+ 6 - 0
samples/openid-jc/pom.xml

@@ -153,6 +153,12 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.1</version>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>javax.servlet-api</artifactId>

+ 2 - 1
samples/preauth-jc/build.gradle

@@ -2,7 +2,8 @@ apply from: WAR_SAMPLE_GRADLE
 
 dependencies {
 
-    providedCompile "javax.servlet:javax.servlet-api:3.0.1"
+    providedCompile "javax.servlet:javax.servlet-api:3.0.1",
+                    'javax.servlet.jsp:jsp-api:2.1'
 
     compile project(":spring-security-config"),
             project(":spring-security-samples-messages-jc"),

+ 6 - 0
samples/preauth-jc/pom.xml

@@ -147,6 +147,12 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.1</version>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>javax.servlet-api</artifactId>

+ 2 - 1
samples/rememberme-jc/build.gradle

@@ -2,7 +2,8 @@ apply from: WAR_SAMPLE_GRADLE
 
 dependencies {
 
-    providedCompile "javax.servlet:javax.servlet-api:3.0.1"
+    providedCompile "javax.servlet:javax.servlet-api:3.0.1",
+                    'javax.servlet.jsp:jsp-api:2.1'
 
     compile project(":spring-security-config"),
             project(":spring-security-samples-messages-jc"),

+ 6 - 0
samples/rememberme-jc/pom.xml

@@ -147,6 +147,12 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.1</version>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>javax.servlet-api</artifactId>

+ 2 - 1
samples/x509-jc/build.gradle

@@ -3,7 +3,8 @@ apply from: WAR_SAMPLE_GRADLE
 
 dependencies {
 
-    providedCompile "javax.servlet:javax.servlet-api:3.0.1"
+    providedCompile "javax.servlet:javax.servlet-api:3.0.1",
+                    'javax.servlet.jsp:jsp-api:2.1'
 
     compile project(":spring-security-config"),
             project(":spring-security-samples-messages-jc"),

+ 6 - 0
samples/x509-jc/pom.xml

@@ -147,6 +147,12 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.1</version>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>javax.servlet-api</artifactId>