You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@taverna.apache.org by Stian Soiland-Reyes <st...@apache.org> on 2018/01/04 18:45:02 UTC

Removed jquery-ui from taverna-server

Instead of bundling jquery-ui and jquery's (compatible) 
and having to declare their MIT license in our LICENSE/NOTICE
I switched to using the packaging by http://webjars.org/

which means it's just another <dependency>
that then magically appars as say 
http://localhost:8080/taverna/webjars/jquery/1.8.2/jquery.min.js

(sadly that means the version numbers are there also in our
admin.html - I guess some clever use of Maven <properties> can avoid
that)

See
https://github.com/apache/incubator-taverna-server/commit/29227ad8031f2d0efdc3f8c2d3788a5cc4ffce11

Re: Removed jquery-ui from taverna-server

Posted by Stian Soiland-Reyes <st...@apache.org>.
On Thu, 4 Jan 2018 21:03:04 +0000, Robert Haines <ro...@manchester.ac.uk> wrote:
> There is a webjars-locator jar that detects which version of things 
> you're using and means you don't need to hardcode version numbers in 
> your web pages.

Tracked in https://issues.apache.org/jira/browse/TAVERNA-1038

It seems if we had used spring boot it would be a bit easier, we were in
away ahead of the curve doing spring "manually" - so the same approach
might still work if we modify the spring config accordingly.


-- 
Stian Soiland-Reyes
http://orcid.org/0000-0001-9842-9718


Re: Removed jquery-ui from taverna-server

Posted by Robert Haines <ro...@manchester.ac.uk>.

On 04/01/2018 18:45, Stian Soiland-Reyes wrote:
> Instead of bundling jquery-ui and jquery's (compatible)
> and having to declare their MIT license in our LICENSE/NOTICE
> I switched to using the packaging by http://webjars.org/
> 
> which means it's just another <dependency>
> that then magically appars as say
> http://localhost:8080/taverna/webjars/jquery/1.8.2/jquery.min.js
> 
> (sadly that means the version numbers are there also in our
> admin.html - I guess some clever use of Maven <properties> can avoid
> that)

There is a webjars-locator jar that detects which version of things 
you're using and means you don't need to hardcode version numbers in 
your web pages.

Rob

> See
> https://github.com/apache/incubator-taverna-server/commit/29227ad8031f2d0efdc3f8c2d3788a5cc4ffce11
> 

-- 
Robert Haines
Head of Research Software Engineering, Research IT
Honorary Lecturer, School of Computer Science
University of Manchester, UK
+44 (0) 161 275 7821 | @UoM_eResearch