File tree Expand file tree Collapse file tree 9 files changed +32
-27
lines changed
protoc-gen-connect-kotlin
src/main/kotlin/com/connectrpc/protocgen/connect/internal Expand file tree Collapse file tree 9 files changed +32
-27
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,23 @@ allprojects {
51
51
spotless {
52
52
isEnforceCheck = false // Disables lint on gradle builds.
53
53
kotlin {
54
- ktlint().editorConfigOverride(mapOf (" ktlint_experimental" to " enabled" ))
54
+ ktlint().editorConfigOverride(
55
+ mapOf (
56
+ " ktlint_experimental" to " enabled" ,
57
+ // Disabled until https://github.com/pinterest/ktlint/pull/2273 is released
58
+ " ktlint_standard_function-expression-body" to " disabled" ,
59
+ ),
60
+ )
55
61
target(" **/*.kt" )
56
62
}
57
63
kotlinGradle {
58
- ktlint().editorConfigOverride(mapOf (" ktlint_experimental" to " enabled" ))
64
+ ktlint().editorConfigOverride(
65
+ mapOf (
66
+ " ktlint_experimental" to " enabled" ,
67
+ // Disabled until https://github.com/pinterest/ktlint/pull/2273 is released
68
+ " ktlint_standard_function-expression-body" to " disabled" ,
69
+ ),
70
+ )
59
71
target(" **/*.kts" )
60
72
}
61
73
}
@@ -76,16 +88,8 @@ allprojects {
76
88
}
77
89
tasks.withType<DokkaTask >().configureEach {
78
90
dokkaSourceSets.configureEach {
79
- reportUndocumented.set(false )
80
91
skipDeprecated.set(true )
81
92
jdkVersion.set(8 )
82
- perPackageOption {
83
- matchingRegex.set(" build\\ .buf.*" )
84
- suppress.set(true )
85
- }
86
- }
87
- if (name == " dokkaGfm" ) {
88
- outputDirectory.set(project.file(" ${project.rootDir} /docs/3.x" ))
89
93
}
90
94
}
91
95
plugins.withId(" com.vanniktech.maven.publish.base" ) {
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ plugins {
4
4
}
5
5
6
6
android {
7
- compileSdk = 33
7
+ compileSdk = 34
8
8
9
9
defaultConfig {
10
10
applicationId = " com.connectrpc.examples.android"
11
11
minSdk = 28
12
- targetSdk = 33
12
+ targetSdk = 34
13
13
versionCode = 1
14
14
versionName = " 1.0"
15
15
multiDexEnabled = true
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ dependencies {
29
29
implementation(libs.kotlin.reflect)
30
30
}
31
31
32
- configure< MavenPublishBaseExtension > {
32
+ mavenPublishing {
33
33
configure(
34
- KotlinJvm (javadocJar = Dokka (" dokkaGfm " )),
34
+ KotlinJvm (javadocJar = Dokka (" dokkaHtml " )),
35
35
)
36
36
}
37
37
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ sourceSets {
28
28
}
29
29
}
30
30
31
- configure< MavenPublishBaseExtension > {
31
+ mavenPublishing {
32
32
configure(
33
- KotlinJvm (javadocJar = Dokka (" dokkaGfm " )),
33
+ KotlinJvm (javadocJar = Dokka (" dokkaHtml " )),
34
34
)
35
35
}
36
36
Original file line number Diff line number Diff line change @@ -6,17 +6,17 @@ dokka = "1.9.0"
6
6
junit = " 4.13.2"
7
7
kotlin = " 1.9.10"
8
8
kotlinpoet = " 1.14.2"
9
- mavenplugin = " 0.24.0 "
9
+ mavenplugin = " 0.25.3 "
10
10
moshi = " 1.15.0"
11
11
okhttp = " 4.11.0"
12
12
okio = " 3.6.0"
13
13
protobuf = " 3.24.4"
14
14
slf4j = " 2.0.9"
15
- spotless = " 6.21 .0"
15
+ spotless = " 6.22 .0"
16
16
17
17
[libraries ]
18
18
android = { module = " com.google.android:android" , version.ref = " android" }
19
- android-material = { module = " com.google.android.material:material" , version = " 1.9 .0" }
19
+ android-material = { module = " com.google.android.material:material" , version = " 1.10 .0" }
20
20
android-multidex = { module = " com.android.support:multidex" , version = " 1.0.3" }
21
21
android-plugin = { module = " com.android.tools.build:gradle" , version = " 8.1.2" }
22
22
androidx-annotations = { module = " androidx.annotation:annotation" , version = " 1.7.0" }
Original file line number Diff line number Diff line change 1
1
import com.vanniktech.maven.publish.JavadocJar.Dokka
2
2
import com.vanniktech.maven.publish.KotlinJvm
3
- import com.vanniktech.maven.publish.MavenPublishBaseExtension
4
3
5
4
plugins {
6
5
kotlin(" jvm" )
@@ -23,11 +22,12 @@ dependencies {
23
22
ksp(libs.moshiKotlinCodegen)
24
23
}
25
24
26
- configure< MavenPublishBaseExtension > {
25
+ mavenPublishing {
27
26
configure(
28
- KotlinJvm (javadocJar = Dokka (" dokkaGfm " )),
27
+ KotlinJvm (javadocJar = Dokka (" dokkaHtml " )),
29
28
)
30
29
}
30
+
31
31
// Workaround for overriding the published library name to "connect-kotlin".
32
32
// Otherwise, the plugin will take the library name.
33
33
extensions.getByType<PublishingExtension >().apply {
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ dependencies {
15
15
api(project(" :library" ))
16
16
}
17
17
18
- configure< MavenPublishBaseExtension > {
18
+ mavenPublishing {
19
19
configure(
20
- KotlinJvm (javadocJar = Dokka (" dokkaGfm " )),
20
+ KotlinJvm (javadocJar = Dokka (" dokkaHtml " )),
21
21
)
22
22
}
23
23
Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ sourceSets {
45
45
}
46
46
}
47
47
48
- configure< MavenPublishBaseExtension > {
48
+ mavenPublishing {
49
49
configure(
50
- KotlinJvm (javadocJar = Dokka (" dokkaGfm " )),
50
+ KotlinJvm (javadocJar = Dokka (" dokkaHtml " )),
51
51
)
52
52
}
53
53
Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ internal fun parse(input: String): Configuration {
42
42
val parameters = parseGeneratorParameter(input)
43
43
return Configuration (
44
44
generateCallbackMethods = parameters[CALLBACK_SIGNATURE ]?.toBoolean() ? : false ,
45
- generateCoroutineMethods = parameters[COROUTINE_SIGNATURE ]?.toBoolean() ? : true , // Defaulted to true.
45
+ // Defaulted to true.
46
+ generateCoroutineMethods = parameters[COROUTINE_SIGNATURE ]?.toBoolean() ? : true ,
46
47
generateBlockingUnaryMethods = parameters[BLOCKING_UNARY_SIGNATURE ]?.toBoolean() ? : false ,
47
48
)
48
49
}
You can’t perform that action at this time.
0 commit comments