title: Date.plus not working in 2.5.4 Groovy Runtime, what is the alternative?
body: <p>We want to add days to the current date and format it in a specific way. This was solved in Groovy 2.4.13 and the following date manipulation works fine:</p>
  
  <pre><code>​today = new Date()+90;today.format('yyyy-MM-dd HH:mm:ss.S');
  </code></pre>
  
  <p>Result: 2019-12-02 08:07:15.294</p>
  
  <p>In Groovy 2.5.4 the same expression throws this exception:</p>
  
  <blockquote>
    <p>groovy.lang.MissingMethodException: No signature of method:
    java.util.Date.plus() is applicable for argument types: (Integer)
    values: [90] Possible solutions: parse(java.lang.String),
    split(groovy.lang.Closure), use([Ljava.lang.Object;),
    is(java.lang.Object), wait(), clone()     at
    Script1.run(Script1.groovy:3)</p>
  </blockquote>
  
  <p>I was able to reproduce this behaviour in "Groovy sandboxes" online:</p>
  
  <p>Working fine here: <a href="https://groovy-playground.appspot.com/" rel="noreferrer">groovy-playground</a> (Version 2.4.1.5)
  Failing here: <a href="https://groovyconsole.appspot.com/" rel="noreferrer">groovyconsole</a> (Version 2.5.7)</p>
  
  <p>What is the working alternative in this case? I have read about a new Date API, but couldn't find the details about how to use it, with date manipulation (+ 90 days for example).</p>