Skip to content
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

refactor: fix gradle warnings #5140

Closed

Conversation

PurityLake
Copy link
Contributor

Contains

Addresses #5127

This should be added into #5109

How to test

./gradlew wrapper --warning-mode all

Outstanding before merging

I made some changes to the versions of some plugins due to the version being older, so they were using deprecated functions.

* `protobuf` -> `0.9.4`

* `spotbug` -> `5.1.3`

Here is the PR again, sorry for taking so long

@PurityLake PurityLake changed the title Fix warnings again refactor: fix gradle warnings Sep 24, 2023
Copy link
Contributor

@BenjaminAmos BenjaminAmos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a few concerns but these changes generally make sense.

Comment on lines -93 to -95
val artifactView = resolvable.artifactView {
lenient(true)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these lines might have been here for their side-effect? It might be worth keeping them there if possible.

@@ -43,7 +43,7 @@ plugins {
// For the "Build and run using: Intellij IDEA | Gradle" switch
id "org.jetbrains.gradle.plugin.idea-ext" version "1.0"

id("com.google.protobuf") version "0.8.16" apply false
id("com.google.protobuf") version "0.9.4" apply false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this break network compatibility between game clients? I believe that protobuf is used for serialising entity data over the network.

@@ -50,7 +50,7 @@ dependencies {
implementation("org.terasology.gestalt:gestalt-module:7.1.0")

// plugins we configure
implementation("com.github.spotbugs.snom:spotbugs-gradle-plugin:5.1.3")
implementation("com.github.spotbugs.snom:spotbugs-gradle-plugin:5.1.3") // TODO: upgrade with gradle 7.x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're on Gradle 8.3 now. I think this new comment is rather outdated already,

@@ -4,7 +4,7 @@
import java.net.URI

plugins {
id("org.gradle.kotlin.kotlin-dsl") version "4.1.0"
id("org.gradle.kotlin.kotlin-dsl") version "4.0.14"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We stopped using an explicit version of the Kotlin DSL plugin after upgrading to Gradle 8.3. This might be a source of merge conflicts.

soloturn added a commit to soloturn/terasology that referenced this pull request Oct 26, 2023
cherry picked PurityLakes pr MovingBlocks#5140
onto newest develop. kotlin plugin and spotbugs conflict comments are resolved
by this.

protobuf upgrade should be compabitle, at least according to documentation, so
left it there.

the lenient in module_deps.kt is again there:
```
val artifactView = resolvable.artifactView {
  lenient(true)
}
```
@soloturn soloturn mentioned this pull request Oct 26, 2023
soloturn added a commit to soloturn/terasology that referenced this pull request Oct 26, 2023
cherry picked PurityLakes pr MovingBlocks#5140
onto newest develop. kotlin plugin and spotbugs conflict comments are resolved
by this.

protobuf upgrade should be compabitle, at least according to documentation, so
left it there.  the lenient in module_deps.kt is again there.
@soloturn
Copy link
Contributor

this pr could be closed now, as the commits got merged with #5153 .

@BenjaminAmos
Copy link
Contributor

Good point. I'll close this. Thank you @PurityLake for starting this off. The changes were merged in (07176f7).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants