Skip to content

Commit b0b7c45

Browse files
committed
chore: bump Gradle from 8.12 to 9.0.0
* Update `Property`/`Provider` usages to require `Any` as an upper-bound
1 parent e15b8f2 commit b0b7c45

6 files changed

Lines changed: 12 additions & 13 deletions

File tree

gradle/wrapper/gradle-wrapper.jar

1.83 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/generator/src/main/kotlin/io/github/edricchan03/koogle_api/plugin/generator/KoogleApiGeneratorPluginExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public abstract class KoogleApiGeneratorPluginExtension {
3333
public abstract val discoveryDocsOutputDir: DirectoryProperty
3434

3535
/** Mapping function used to generate the output file name based from the specified [DirectoryItem]. */
36-
public abstract val outputFileNameMapper: Property<SchemaFileNameMapper?>
36+
public abstract val outputFileNameMapper: Property<SchemaFileNameMapper>
3737

3838
/** Mapping function used to generate the output file name based from the specified [DirectoryItem]. */
3939
public fun outputFileNameMapper(mapper: SchemaFileNameMapper) {

plugins/generator/src/main/kotlin/io/github/edricchan03/koogle_api/plugin/generator/utils.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ import kotlin.reflect.KMutableProperty0
1111
/**
1212
* Sets the receiver property only if the [other] provider [has a value][Provider.isPresent].
1313
*/
14-
internal fun <T> Property<T>.setIfPresent(other: Provider<out T?>) {
14+
internal fun <T : Any> Property<T>.setIfPresent(other: Provider<out T>) {
1515
if (other.isPresent) set(other)
1616
}
1717

1818
/**
1919
* Sets the receiver mutable Kotlin property only if the [other] provider
2020
* [has a value][Provider.isPresent].
2121
*/
22-
internal fun <T> KMutableProperty0<T>.setIfPresent(other: Provider<out T?>) {
23-
if (other.isPresent) other.get()?.let { set(it) }
22+
internal fun <T : Any> KMutableProperty0<T>.setIfPresent(other: Provider<out T>) {
23+
if (other.isPresent) set(other.get())
2424
}
2525

2626
/**

0 commit comments

Comments
 (0)