[MacPorts] #58501: Gradle-5.4.1 does not even start

MacPorts noreply at macports.org
Tue May 21 19:20:49 UTC 2019


#58501: Gradle-5.4.1 does not even start
-------------------------+--------------------
  Reporter:  mouse07410  |      Owner:  (none)
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:  duplicate   |   Keywords:
      Port:  gradle      |
-------------------------+--------------------

Comment (by mouse07410):

 No, it is not a duplicate. And it fails this way when invoked from *any*
 directory, including the project where I tried to use it.

 [[br]]
 > Don't invoke from {{{~}}}

 Sorry, irrelevant and does not help.

 What **did** help was
 - making sure there is **no** SLF4J jars on the classpath, and
 - making sure **there is** LOG4J on the classpath, including
 {{{log4j.properties}}}

 Here's the result of invoking {{{gradle}}} in {{{~}}} (for those who don't
 think it should work):
 {{{
 $ pwd
 /Users/ur20980
 $ gradle --version

 ------------------------------------------------------------
 Gradle 5.4.1
 ------------------------------------------------------------

 Build time:   2019-04-26 08:14:42 UTC
 Revision:     261d171646b36a6a28d5a19a69676cd098a4c19d

 Kotlin:       1.3.21
 Groovy:       2.5.4
 Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
 JVM:          1.8.0_211 (Oracle Corporation 25.211-b12)
 OS:           Mac OS X 10.14.4 x86_64

 $
 }}}

 Coincidentally, it now works with the project as well.

 This probably should be documented somewhere, because (at least to me) the
 need to make LOG4J available on the classpath **and** to remove SLF4J from
 the classpath was non-obvious.

-- 
Ticket URL: <https://trac.macports.org/ticket/58501#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list