You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by GitBox <gi...@apache.org> on 2023/01/13 10:33:52 UTC
[GitHub] [incubator-hugegraph] imbajin commented on a diff in pull request #2089: chore: remove swagger-ui code and add download script
imbajin commented on code in PR #2089:
URL: https://github.com/apache/incubator-hugegraph/pull/2089#discussion_r1069219468
##########
hugegraph-dist/pom.xml:
##########
@@ -172,6 +172,29 @@
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
+ <execution>
+ <id>download-swagger-ui</id>
+ <phase>package</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <echo file="${project.basedir}/dist.sh">
+ wget https://github.com/swagger-api/swagger-ui/archive/refs/tags/v4.15.5.tar.gz
+ tar zxvf v4.15.5.tar.gz
+ echo "window.onload = function() { window.ui = SwaggerUIBundle({
+ url:'/openapi.json',dom_id:'#swagger-ui',deepLinking:true,layout:'StandaloneLayout',
+ presets:[SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset ],
+ plugins:[SwaggerUIBundle.plugins.DownloadUrl]});};" > swagger-ui-4.15.5/dist/swagger-initializer.js
+ cp -r swagger-ui-4.15.5/dist ../${final.name}/swagger-ui
+ </echo>
Review Comment:
this script will block the windows building? mark it as a known issue in #2088
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org