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

Upgrade moshi #883

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jaredsburrows
Copy link
Collaborator

Closes #835

@jaredsburrows
Copy link
Collaborator Author

@ben-manes This is odd, I cannot reproduce the ktlint error locally.

@jaredsburrows jaredsburrows force-pushed the pr/jaredsburrows/upgrade-moshi branch from da74b85 to 28f5de5 Compare July 30, 2024 03:04
@ben-manes
Copy link
Owner

I think it reproduced locally (before your last commit)

gradle-versions-plugin git:(pr/jaredsburrows/upgrade-moshi) gradle build
executing gradlew instead of gradle
Downloading https://services.gradle.org/distributions/gradle-8.0.2-bin.zip
...........10%............20%............30%............40%............50%............60%...........70%............80%............90%............100%
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :gradle-versions-plugin:ktlintMainSourceSetCheck FAILED
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:2:16 Missing newline after "("
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:3:1 Unexpected indentation (4) (should be 2)
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:4:1 Unexpected indentation (4) (should be 2)
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:4:90 Missing newline before ")"
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:4:91 Missing trailing comma before ")"
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:25:61 A multiline expression should start on a new line
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:25:75 Missing newline after "("
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:25:75 Argument should be on a separate line (unless all arguments can fit a single line)
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:26:1 Unexpected indentation (6) (should be 4)
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:26:19 Argument should be on a separate line (unless all arguments can fit a single line)
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:26:27 Missing newline before ")"
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:26:28 Missing newline before ")"
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:26:28 Missing trailing comma before ")"
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:28:44 A multiline expression should start on a new line
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:28:44 Newline expected before expression body
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:29:1 Unexpected indentation (6) (should be 4)
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:30:1 Unexpected indentation (6) (should be 2)
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:51:14 A multiline expression should start on a new line
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:51:56 Unexpected spacing after "("
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:59:30 Parameter should start on a newline
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:59:30 Missing newline after "("
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:59:30 Newline expected after opening parenthesis
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:60:1 Unexpected indentation (6) (should be 4)
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:60:7 Parameter should start on a newline
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:60:56 Missing newline before ")"
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:60:57 Missing newline before ")"
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:60:57 Newline expected before closing parenthesis
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:60:57 Missing trailing comma before ")"
/Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/generated/ksp/main/kotlin/com/github/benmanes/gradle/versions/updates/gradle/GradleUpdateChecker_Companion_VersionSiteJsonAdapter.kt:60:60 Unnecessary "Unit" return type

> Task :gradle-versions-plugin:compileKotlin
w: file:///Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/updates/DependencyUpdatesTask.kt:127:66 Java type mismatch: inferred type is 'groovy.lang.Closure<*>', but 'groovy.lang.Closure<kotlin.Any!>' was expected.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':gradle-versions-plugin:ktlintMainSourceSetCheck'.
> A failure occurred while executing org.jlleitschuh.gradle.ktlint.worker.ConsoleReportWorkAction
   > KtLint found code style violations. Please see the following reports:
     - /Users/ben/projects/gradle-versions-plugin/gradle-versions-plugin/build/reports/ktlint/ktlintMainSourceSetCheck/ktlintMainSourceSetCheck.txt

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

* Get more help at https://help.gradle.org

BUILD FAILED in 40s
11 actionable tasks: 7 executed, 4 up-to-date

@jaredsburrows jaredsburrows force-pushed the pr/jaredsburrows/upgrade-moshi branch 3 times, most recently from 20f4ba0 to 2785736 Compare July 30, 2024 03:48
@jaredsburrows jaredsburrows force-pushed the pr/jaredsburrows/upgrade-moshi branch from 2785736 to d350a85 Compare July 30, 2024 04:06
@jaredsburrows jaredsburrows changed the title upgrade moshi Upgrade moshi Jul 30, 2024
@jaredsburrows
Copy link
Collaborator Author

@ben-manes Any reason why upgrading this causes the tests to fail?

@ben-manes
Copy link
Owner

no clue. I would guess KSP is doing something weird to the byte code, but I've only used Kotlin for build scripts.

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.

2 participants