-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Various updates and refactors to build platform in general #13790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
The docker failures seem real |
It is failing in my local gradle 9.0.0 also. Replacing For now, I will simply revert |
Minor things: Isn't Enum.values() deprecated by now? And wouldn't the jre/jdk file name be more elegant as enum property than via when? |
Check d85257d tests. I used |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. |
By the way, when did you guys revert Kotlin version. |
As far as I can see, it's still 2.1.20, unchanged since #13602 |
I am confused, then what did I change in 6e9a874 |
Not the main language level, but specific plugins I'd guess |
Kotlin
to latest patch, actions Java
version to 21
, remove hardcoded kotlinVersion
in build.gradle.kts
& redundant dependencies caused by it
Ok so I was able to figure out why did it happen. Basically, gradle scripts run on their own kotlin version separate from the projects kotlin version. So, even if the IDE was showing a deprecation warning, it was not correct. I guess the IDE only loads one Kotlin version at a time and that is the projects version. So, in short the way to make |
It can be downgraded to latest AGP minimum version |
I touched it because some previous builds were only failing in Docker but not anywhere else. Then I realized that nothing there was fixing the issue of hardcoded kotlin version not working in docker. So, I just did some refractors that I saw possible and left it there. A list of such changes would be:
And yes, I did not test if it actually runs. I will try when I go back home and give an update. |
ok @yairm210, I tried the latest stable version of Unciv and it simply does not work on windows. It simply runs for eternity without displaying anything. And I cannot build PR so do not know if it works. Maybe only Linux users can verify it to begin with. |
Did you connect via vnc? |
Ok it worked. But very weird way to play Unciv for sure. I was expecting a window to pop up. |
But anyways, building the image locally in Windows is still an impossibility. Thus I am unable to test if it works. |
I have no clue if this is a factor and it probably shouldn't be, but I should ask... What version of Android Studio do you have? |
Ok, double checking stuff on my end. I'm mostly just lazily doing stuff through Studio, I have no clue the implications for docker, nor am I looking at the fixes or whatever for docker or detekt. Just seeing if I can build it. Side note: I only ask about the Android Studio version because I noticed recently that older versions of Studio could no longer build Unciv (I didn't keep track of the error message, but it failed on Gradle sync itself, saying something was an incorrect version) Kotlinx-coroutines 1.8.1 -> 1.10.2 Builds fine, no issues (after disabling purity). Maybe there's a separate problem on your end? It's either that or the Gradle version (which I doubt is the culprit, but you could never be too sure) Edit: Gradle version 9.0.0 is working fine as well, though it's now suggesting to use Kotlin 2.2.0 |
I did not increment these versions though.
And gradle sync will fail in desktop and server |
Also, any AGP version |
Weird. From patch notes I am pretty sure Gradle 9 itself use Kotlin 2.1.x. So I wonder why are they suggesting 2.2. It did not suggest this to me. Edit: Ok my bad.
|
Latest feature drop. I updated it a few days ago. Also, this is likely because of how Docker Desktop works and on Windows Home and not for Android Studio. It runs inside WSL. My guess is it cannot access Android Sdk binaries from WSL. |
Can you kindky verify if the docker image build and runs fine with exactly this PR's content? You do not need to disable purity. |
LibGDX we're not upgrading, as per the maintainers' advice, since it have Android problems |
Tbh, I have zero clue how to do anything with docker at all
I know and that's not my point. My point is that, at least through Studio, things builds fine on my end, so it must be something more docker specific and not just related to upgrading versions. I don't expect us to touch everything I did, I was just seeing what's possible |
Me before opening this PR: Everyone use Docker. I am the only guy who doesn’t. I am so useless. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. |
So, after 1919b50 I guess what remains for discussion is if thr Docker image actually runs and what Gradle version can we upgrade to and should we. |
What this PR contains:
Gradle
version8.11.1
->9.0.0
(latest stable)dockerPublish.yml
Dockerfile
improvements2.1.20
->2.1.21