Package Details: mindustry-server 1:7.0_146-2

Git Clone URL: https://aur.archlinux.org/mindustry.git (read-only, click to copy)
Package Base: mindustry
Description: Server of a sandbox tower defense game written in Java
Upstream URL: https://github.com/Anuken/Mindustry
Licenses: GPL3
Submitter: dmitmel
Maintainer: dmitmel
Last Packager: dmitmel
Votes: 30
Popularity: 0.003162
First Submitted: 2019-10-10 21:43 (UTC)
Last Updated: 2024-01-03 19:04 (UTC)

Dependencies (7)

Required by (0)

Sources (5)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

grandchild commented on 2020-09-16 10:44 (UTC) (edited on 2020-09-16 10:46 (UTC) by grandchild)

Hey there, I'm getting an error during build, about some Android SDK license not being accepted. I do have Android Studio installed, maybe it's detecting something?

$ archlinux-java get
java-11-openjdk

I'm curious why it would try and build the android app anyway...

Here's the error (with some usual generic Gradle error stuff removed):

==> Starting build()...
[...]
> Configure project :
Compiling with build: '105'

> Configure project :android
No keystore info property found!
File /home/[me]/.android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 29.0.3 in /opt/android-sdk/licenses
Warning: License for package Android SDK Build-Tools 29.0.3 not accepted.
Checking the license for package Android SDK Platform 29 in /opt/android-sdk/licenses
Warning: License for package Android SDK Platform 29 not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':android'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;29.0.3 Android SDK Build-Tools 29.0.3
     platforms;android-29 Android SDK Platform 29
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

  Using Android SDK: /opt/android-sdk

[...]

BUILD FAILED in 7s
==> ERROR: A failure occurred in build().
    Aborting...

dmitmel commented on 2020-03-10 14:08 (UTC)

@Daniel071 If you find a way to programmatically download releases from itch.io - please tell me, I don't know how to do this. The link is updated and has an expiration date and a unique token. Also, releases from itch.io don't contain the source code, so you submitted an out-of-date request to a wrong package (more appropriate would be mindustry-bin or mindustry-server-bin). GitHub repository doesn't contain tags for v104.5, so I can't build it from source either in this package. If you want the latest version - try mindustry-git.

dmitmel commented on 2020-01-03 16:03 (UTC)

@vasya @Corubba I can't replicate the error you get, although I added some code to find and select a compatible JDK nevertheless. Sorry for a late response, it's holidays after all.

vasya commented on 2020-01-01 17:55 (UTC)

Generally it's a mess I think, no really good solution. Something that would "mostly" work is:

export PATH="/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH"
export PATH="/usr/lib/jvm/java-9-openjdk/jre/bin/:$PATH"
export PATH="/usr/lib/jvm/java-10-openjdk/jre/bin/:$PATH"
export PATH="/usr/lib/jvm/java-11-openjdk/jre/bin/:$PATH"
export PATH="/usr/lib/jvm/java-12-openjdk/jre/bin/:$PATH"
./gradlew ...args...

the app itself is runnable on jre-13, just checked.

Unfortunately I do not know any way to even pin specific version, like 8, without also specifying that it should be openjdk specifically.

dmitmel commented on 2020-01-01 01:10 (UTC)

vasya, could you please provide an example script which selects JRE on Arch based on its version?

vasya commented on 2019-12-31 15:35 (UTC)

... and mindustry dev said that gradle 6 won't be supported for now, so we need to fix it in AUR.

One way of doing that is to specify the dependencies like that: depends=("java-runtime>=8" "java-runtime<13")

This will ensure that the right jre is installed, but it won't check on what's actually used. To make the *.sh script work properly, the PATH tricks (mentioned in prev comments) need to be used....

vasya commented on 2019-12-31 12:24 (UTC)

I've raised an issue upstream, hopefully they'll fix it soon. https://github.com/Anuken/Mindustry/issues/1291

Corubba commented on 2019-12-30 22:31 (UTC) (edited on 2019-12-30 22:32 (UTC) by Corubba)

In case someone else hits a Unsupported class file major version 57 during the gradle build: Gradle supports Java13 only from version 6 onwards. You need to change the url in gradle/wrapper/gradle-wrapper.properties to the latest v6 release (6.0.1 at time of writing).

vasya commented on 2019-10-28 10:14 (UTC)

Builds fine. Thanks for changing! Run-time was already using system-s default, 11 in my case, so there's no explicit reason to check. (And I'm at work now.)

dmitmel commented on 2019-10-28 09:23 (UTC)

vasya: try updating now