This repository was archived by the owner on Jul 16, 2024. It is now read-only.
File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ buildscript {
26
26
allprojects {
27
27
apply {
28
28
from(" ${rootDir.path} /$extraScriptPath " )
29
+ plugin(Plugins .dependencyUpdate)
29
30
plugin(Plugins .kotlinter)
30
31
}
31
32
kotlinter {
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ plugins {
5
5
apply (" extra.gradle.kts" )
6
6
7
7
dependencies {
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())
10
10
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import com.android.build.gradle.BaseExtension
3
3
import com.android.build.gradle.LibraryExtension
4
4
import com.android.build.gradle.internal.api.BaseVariantOutputImpl
5
5
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
6
- import org.gradle.api.GradleException
6
+ import org.gradle.api.InvalidUserDataException
7
7
import org.gradle.api.JavaVersion
8
8
import org.gradle.api.Project
9
9
import org.gradle.api.artifacts.Dependency
@@ -106,8 +106,8 @@ fun PluginAware.applyPlugin(vararg names: String) {
106
106
}
107
107
108
108
fun 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" )
111
111
}
112
112
113
113
fun Project.setupBase (module : Module ? = null, block : BaseExtension .() -> Unit = {}): BaseExtension {
You can’t perform that action at this time.
0 commit comments