Repository navigation
Remove "Use gradlew.bat if you're on Windows" - #1785
Conversation
It seems that the advice to use `gradlew.bat` is no longer in accordance with the advice given in https://exercism.io/tracks/java/installation on how to install Gradle via `choco install gradle` and then execute it via `gradle test`. Perhaps a previous version of this advice asked students to download `gradlew` or `gradlew.bat` from the track repo's root, where these are still present. Perhaps for this reason, `/gradlew` and `/gradlew.bat` should also be removed.
|
Summary of changes:
So while this PR touches on 115 files, this is a cascading, homogenic effect. |
|
Hi, What do you think @exercism/java ? |
|
@mirkoperillo: are you suggesting that the advice should instead be reverted? And can you be sure that that particular version of gradle will work with any version of Java they might have? Are newer versions of gradle not backwards compatible? I thought that the latest reports of gradle breaking reported on exercism/exercism were caused by Java being too new for the latest version of gradle, rather than gradle being too new for the build.gradle file. |
|
@sshine I thought again about this issue, I don't have a historical background as Java track maintainer so I miss a lot of things for sure. In my experience too much freedom about versions of the tools bring to a lot of problems. I think this should be a choral discussion |
+1 to this advice. Can you open an issue for discussion on what we should document as our recommended practice (re: gradle)? |
|
@jmrunkle: How about we have the discussion here? This appears to be the subject of the PR. So: I don't code Java daily. I have no idea about what's new and what's solid. Someone who writes Java daily should voice what they think is a good mix between "state of the art" and "doable by anybody new to Java, but not necessarily new to programming". As someone who writes Java occasionally, I just want to open IntelliJ and hit some button or key combo and see my tests run. If I can't do that, I want at least a command that will do it. And either has to work on Windows, Mac and Linux in mostly the same way. I imagine this is why there was a This is the reasoning I applied. It's okay that the track does not cater to all possible workflows. With Gradle, hopefully this leaves some room for the problem solver to choose if they want to use the command-line or their IDE regardless of what scripts we provide or not. |
|
Although I do code professionally in Java every day, we do not use gradle in my work environment (nor do we use Windows) so I do not really have much of an opinion about the use of gradle.bat. I do not know many programmers who use Windows for their professional software development, but maybe one of the other maintainers has this setup? Reading over the Java installation instructions for Windows, it looks like we have the students download/install Chocolatey, the JDK and then gradle. Assuming the current version of that gradle installation behaves as @sshine is saying (ie. adds gradle to the PATH), I think we can just go forward with this PR. That's my $0.02. |
jmrunkle
left a comment
There was a problem hiding this comment.
As mentioned - I think this change is safe. Giving other maintainers a chance to comment as well though.
We will give the rest of the maintainers a week to add thoughts / responses. If nobody raises any objections by April 20, we can merge this PR. |
|
After five months, another week will probably not hurt. But on this note, we should probably propose a better way to deal with stale tracks. |
Do you mean dealing with tracks that do not have a lot of active maintainers or... what exactly? |
|
I meant: When you observe a track and nothing is happening, and you want to change things, but you don't want to step on anybody's toes, make uninformed decisions, or take authority without giving credit. I think the "ping everyone" move was bold and probably the best way to get a definite feel that people have had a chance to speak. Even though they have had that for a long time, we rely on people's sense of ownership to make great things, just as we depend on people's humility to eventually pass it along. |
|
I work every day in Java for a long time, but I'm not a gradle user and I'm not a Windows user. I think we have the problem that the track doesn't have anymore senior maintainers knowing the history of the past choices. So to not stay in stale, we can try to apply this PR and look what it will happen |
|
Merging this, thanks for everyone that contributed to the conversation. |
It seems that the advice to use
gradlew.batis no longer in accordance with the advice given in https://exercism.io/tracks/java/installation on how to install Gradle viachoco install gradleand then execute it viagradle test.Perhaps a previous version of this advice asked students to download
gradleworgradlew.batfrom the track repo's root, where these are still present. Perhaps for this reason,/gradlewand/gradlew.batshould also be removed.Note: While this updates READMEs in the track repo, I think this PR will not propagate the updated README.md's to students before some change is made in the test file.
Reviewer Resources:
Track Policies