File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
buildSrc/src/main/groovy/io/spring/gradle/convention Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,33 @@ public class SchemaDeployPlugin implements Plugin<Project> {
62
62
execute " rm -f $tempPath *.zip"
63
63
execute " rm -rf $extractPath *"
64
64
execute " mv $tempPath /* $extractPath "
65
+
66
+ /*
67
+ * Copy spring-security-oauth schemas so that legacy projects using the "http" scheme can
68
+ * resolve the following schema locations:
69
+ *
70
+ * - http://www.springframework.org/schema/security/spring-security-oauth-1.0.xsd
71
+ * - http://www.springframework.org/schema/security/spring-security-oauth2-1.0.xsd
72
+ * - http://www.springframework.org/schema/security/spring-security-oauth2-2.0.xsd
73
+ *
74
+ * Note: The directory:
75
+ * https://www.springframework.org/schema/security/
76
+ *
77
+ * is a symbolic link pointing to:
78
+ * https://docs.spring.io/autorepo/schema/spring-security/current/security/
79
+ *
80
+ * which in turn points to the latest:
81
+ * https://docs.spring.io/autorepo/schema/spring-security/$version/security/
82
+ *
83
+ * with the help of the autoln command which is run regularly via a cron job.
84
+ *
85
+ * See https://github.com/spring-io/autoln for more info.
86
+ */
87
+ if (name == " spring-security" ) {
88
+ def springSecurityOauthPath = " /var/www/domains/spring.io/docs/htdocs/autorepo/schema/spring-security-oauth/current/security"
89
+ execute " cp $springSecurityOauthPath /* $extractPath "
90
+ }
91
+
65
92
execute " chmod -R g+w $extractPath "
66
93
}
67
94
}
You can’t perform that action at this time.
0 commit comments