Adjust extension creation

This commit is contained in:
Jason Penilla committed 2023-02-02 13:53:27 -07:00
1 parent 07bdbe4bd0
commit 2d8f8311db
4 files changed
+11 -9

No files matched your search

@@ -1,8 +1,9 @@
import org.gradle.api.Project
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.Property
import org.gradle.kotlin.dsl.property
import javax.inject.Inject
open class CarbonShadowPlatformExtension(project: Project) {
val relocateGuice: Property<Boolean> = project.objects.property<Boolean>().convention(false)
val relocateCloud: Property<Boolean> = project.objects.property<Boolean>().convention(true)
abstract class CarbonShadowPlatformExtension @Inject constructor(objects: ObjectFactory) {
val relocateGuice: Property<Boolean> = objects.property<Boolean>().convention(false)
val relocateCloud: Property<Boolean> = objects.property<Boolean>().convention(true)
}