[MacPorts] #56768: Gradle init fails
MacPorts
noreply at macports.org
Wed Jul 4 12:17:13 UTC 2018
#56768: Gradle init fails
---------------------+----------------------
Reporter: l-g | Owner: amake
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: gradle |
---------------------+----------------------
Comment (by amake):
I am unable to reproduce.
The message about `GRADLE_HOME` in the portfile predates my involvement,
and [https://discuss.gradle.org/t/do-we-really-need-gradle-home-docs-site-
inconsistency/21671/4 appears to be obsolete or incorrect]—you don't need
it (I don't have it set and gradle works fine for me).
Second, you don't need to add `/opt/local/share/java/gradle/bin/` to your
path, as the gradle binary there is symlinked to `/opt/local/bin`, which
should already be on your path.
As for the error message you are getting, I once got a similar message
when trying to run gradle a) in a directory that had a space in the path
and b) on an external volume that was formatted with a case-sensitive
filesystem. Does that at all describe your situation?
I ended up reformatting my disk to be case-insensitive, and I also removed
the space from the path, so I can't remember which fixed it.
Another thing to note: You definitely should *not* be running gradle with
`sudo`.
--
Ticket URL: <https://trac.macports.org/ticket/56768#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list