This repository was archived by the owner on Jul 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ buildscript {
2626allprojects {
2727 apply {
2828 from(" ${rootDir.path} /$extraScriptPath " )
29+ plugin(Plugins .dependencyUpdate)
2930 plugin(Plugins .kotlinter)
3031 }
3132 kotlinter {
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ plugins {
55apply (" extra.gradle.kts" )
66
77dependencies {
8- implementation(rootProject.extra.get( " androidGradlePlugin" ) .toString())
9- implementation(rootProject.extra.get( " kotlinPlugin" ) .toString())
8+ implementation(rootProject.extra[ " androidGradlePlugin" ] .toString())
9+ implementation(rootProject.extra[ " kotlinPlugin" ] .toString())
1010}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import com.android.build.gradle.BaseExtension
33import com.android.build.gradle.LibraryExtension
44import com.android.build.gradle.internal.api.BaseVariantOutputImpl
55import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
6- import org.gradle.api.GradleException
6+ import org.gradle.api.InvalidUserDataException
77import org.gradle.api.JavaVersion
88import org.gradle.api.Project
99import org.gradle.api.artifacts.Dependency
@@ -106,8 +106,8 @@ fun PluginAware.applyPlugin(vararg names: String) {
106106}
107107
108108fun ExtensionAware.getExtra (name : String ): Any {
109- return extensions.extraProperties.get( name)
110- ? : throw GradleException (" ExtraProperty $name is null" )
109+ return extensions.extraProperties[ name]
110+ ? : throw InvalidUserDataException (" ExtraProperty $name is null" )
111111}
112112
113113fun Project.setupBase (module : Module ? = null, block : BaseExtension .() -> Unit = {}): BaseExtension {
You can’t perform that action at this time.
0 commit comments