-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update dependencies and fix javadoc artifacts #127
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,11 +51,23 @@ allprojects { | |
spotless { | ||
isEnforceCheck = false // Disables lint on gradle builds. | ||
kotlin { | ||
ktlint().editorConfigOverride(mapOf("ktlint_experimental" to "enabled")) | ||
ktlint().editorConfigOverride( | ||
mapOf( | ||
"ktlint_experimental" to "enabled", | ||
// Disabled until https://github.com/pinterest/ktlint/pull/2273 is released | ||
"ktlint_standard_function-expression-body" to "disabled", | ||
), | ||
pkwarren marked this conversation as resolved.
Show resolved
Hide resolved
|
||
) | ||
target("**/*.kt") | ||
} | ||
kotlinGradle { | ||
ktlint().editorConfigOverride(mapOf("ktlint_experimental" to "enabled")) | ||
ktlint().editorConfigOverride( | ||
mapOf( | ||
"ktlint_experimental" to "enabled", | ||
// Disabled until https://github.com/pinterest/ktlint/pull/2273 is released | ||
"ktlint_standard_function-expression-body" to "disabled", | ||
), | ||
) | ||
target("**/*.kts") | ||
} | ||
} | ||
|
@@ -76,16 +88,8 @@ allprojects { | |
} | ||
tasks.withType<DokkaTask>().configureEach { | ||
dokkaSourceSets.configureEach { | ||
reportUndocumented.set(false) | ||
skipDeprecated.set(true) | ||
jdkVersion.set(8) | ||
perPackageOption { | ||
matchingRegex.set("build\\.buf.*") | ||
suppress.set(true) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was causing docs not to be included. |
||
} | ||
} | ||
if (name == "dokkaGfm") { | ||
outputDirectory.set(project.file("${project.rootDir}/docs/3.x")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure where this is coming from - we don't publish GFM anywhere so I've switched to the standard |
||
} | ||
} | ||
plugins.withId("com.vanniktech.maven.publish.base") { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,17 @@ dokka = "1.9.0" | |
junit = "4.13.2" | ||
kotlin = "1.9.10" | ||
kotlinpoet = "1.14.2" | ||
mavenplugin = "0.24.0" | ||
mavenplugin = "0.25.3" | ||
moshi = "1.15.0" | ||
okhttp = "4.11.0" | ||
okio = "3.6.0" | ||
protobuf = "3.24.4" | ||
slf4j = "2.0.9" | ||
spotless = "6.21.0" | ||
spotless = "6.22.0" | ||
|
||
[libraries] | ||
android = { module = "com.google.android:android", version.ref = "android" } | ||
android-material = { module = "com.google.android.material:material", version = "1.9.0" } | ||
android-material = { module = "com.google.android.material:material", version = "1.10.0" } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This requires a new Android SDK. |
||
android-multidex = { module = "com.android.support:multidex", version = "1.0.3" } | ||
android-plugin = { module = "com.android.tools.build:gradle", version = "8.1.2" } | ||
androidx-annotations = { module = "androidx.annotation:annotation", version = "1.7.0" } | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,8 @@ internal fun parse(input: String): Configuration { | |
val parameters = parseGeneratorParameter(input) | ||
return Configuration( | ||
generateCallbackMethods = parameters[CALLBACK_SIGNATURE]?.toBoolean() ?: false, | ||
generateCoroutineMethods = parameters[COROUTINE_SIGNATURE]?.toBoolean() ?: true, // Defaulted to true. | ||
// Defaulted to true. | ||
generateCoroutineMethods = parameters[COROUTINE_SIGNATURE]?.toBoolean() ?: true, | ||
Comment on lines
+45
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO it was clearer before, but if this violates a lint rule it's not a big deal There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah this failed a new lint rule that required comments to be on their own lines. |
||
generateBlockingUnaryMethods = parameters[BLOCKING_UNARY_SIGNATURE]?.toBoolean() ?: false, | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental rule. In some cases it does the right thing but without the fix above it leads to compile errors. It also is rewriting a large number of files - I might just leave this disabled and manually update the simpler methods to follow the recommended style.