Package Details: mindustry 1:7.0_146-1

Git Clone URL: (read-only, click to copy)
Package Base: mindustry
Description: A sandbox tower defense game written in Java
Upstream URL:
Licenses: GPL3
Submitter: dmitmel
Maintainer: dmitmel
Last Packager: dmitmel
Votes: 31
Popularity: 0.24
First Submitted: 2019-10-10 21:43 (UTC)
Last Updated: 2023-09-05 17:17 (UTC)

Dependencies (6)

Required by (0)

Sources (5)

Latest Comments

1 2 3 4 5 Next › Last »

hrehfeld commented on 2023-06-23 11:20 (UTC)

FAILURE: Build failed with an exception.

* Where:
Settings file '/home/hrehfeld/.cache/pikaur/build/mindustry/src/Mindustry-145.1/settings.gradle' line: 2

* What went wrong:
A problem occurred evaluating settings 'Mindustry-145.1'.
> !!! YOU MUST USE JAVA 16 OR ABOVE TO COMPILE AND RUN MINDUSTRY !!! Read the README. Your version: 11.0.19

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at


Not sure how broken the java landscape is, but shouldn't deps take care of version conflicts like this?

xiota commented on 2023-05-17 01:40 (UTC)

To build in clean chroot when cannot run archlinux-java:

  • set java-environment=17 in makedepends
  • remove java-runtime from depends
  • put java-runtime in depends+=(...) inside package() function.

airgap97 commented on 2023-04-15 11:23 (UTC) (edited on 2023-04-15 11:24 (UTC) by airgap97)

If you'd rather compile on your own, follow these instructions. First, make sure you have JDK 16-17 installed. Other JDK versions will not work. Open a terminal in the Mindustry directory and run the following commands:

sudo archlinux-java set java-17-openjdk

yohann commented on 2023-03-09 17:13 (UTC)

it may not be the right place, but it took me a lot of time to figure out i needed to do this: hopefully it we be usefull for some lurker

sudo archlinux-java set java-19-openjdk

ahmubashshir commented on 2022-12-09 15:10 (UTC) (edited on 2022-12-09 15:12 (UTC) by ahmubashshir)

It also builds with 'java-environment=17' or this patch

diff --git a/PKGBUILD b/PKGBUILD
index 4fb5089..a15ec83 100644
@@ -61,6 +61,7 @@ build() {
   # Android app here.
   # <>
+  sed -i '/distributionUrl/s/7\.5\.1/7.6-milestone-1/' gradle/wrapper/

   ./gradlew --no-daemon dist -Pbuildversion="${_build}" desktop:dist server:dist

nokdus commented on 2022-11-14 01:44 (UTC)

@Newk-B I added to PKGBUILD after build()

build() {
  cd "${_repo_name}-${_build}"

cat << EOF > gradle/wrapper/

Newk-B commented on 2022-11-14 00:20 (UTC) (edited on 2022-11-14 00:38 (UTC) by Newk-B)

@nokdus: Thank you for that solution! I could build this package now two times with that, on version 140.3 and 140.4.

As i am on Manjaro and using Pamac to build, install and maintain these AUR packages i had to: modify the downloaded *.tar.gz the way you describe it. And then point out it's location in the PKGBUILD file that is in Pamac's build directory instead of the download URL, like so:


(the top sha256sum regenerated after i modified the .tar.gz)

I can imagine it is not an easy task to make a PKGBUILD script in such a way that it reproduces all these steps automaticly.

nokdus commented on 2022-11-06 08:43 (UTC) (edited on 2022-11-06 14:47 (UTC) by nokdus)

Current gradle version does not support java 19, I was able to build only by changing the gradle version to

in file gradle/wrapper/


Henry-ZHR commented on 2022-11-01 23:50 (UTC)

openjdk version "19.0.1" 2022-10-18
OpenJDK Runtime Environment (build 19.0.1+10)
OpenJDK 64-Bit Server VM (build 19.0.1+10, mixed mode)

dmitmel commented on 2022-11-01 12:43 (UTC)

Henry-ZHR: What version of Java are you using?