@@ -10,7 +10,7 @@ buildscript {
10
10
dependencies {
11
11
constraints {
12
12
// Dependency of 'com.github.breadmoirai.github-release:2.5.2'
13
- classpath(" com.squareup. okio:okio:3.10.2 " ) // CVE-2023-3635
13
+ classpath(libs. okio) // CVE-2023-3635
14
14
}
15
15
}
16
16
}
@@ -21,9 +21,9 @@ plugins {
21
21
id(" maven-publish" )
22
22
id(" signing" )
23
23
id(" codenarc" )
24
- id( " com. gradle.plugin-publish " ) version " 1.3.0 "
25
- id( " com.github.breadmoirai. github- release" ) version " 2.5.2 "
26
- id( " org. gradle.wrapper-upgrade " ) version " 0.12 "
24
+ alias(libs.plugins. gradle.pluginPublish)
25
+ alias(libs.plugins. github. release)
26
+ alias(libs.plugins. gradle.wrapperUpgrade)
27
27
}
28
28
29
29
val releaseVersion = releaseVersion()
@@ -40,25 +40,18 @@ repositories {
40
40
}
41
41
42
42
dependencies {
43
- val versions = mapOf (
44
- " agp" to " 8.1.4" ,
45
- " sdkBuildTools" to " 31.1.1" ,
46
- " spock" to " 2.3-groovy-3.0" ,
47
- )
48
-
49
43
compileOnly(gradleApi())
50
- compileOnly(" com.android.tools.build:gradle:${versions[" agp" ]} " )
51
- compileOnly(" com.android.tools:common:${versions[" sdkBuildTools" ]} " )
52
- compileOnly(" com.android.tools:sdk-common:${versions[" sdkBuildTools" ]} " )
53
- implementation(" com.google.guava:guava:33.4.0-jre" )
54
-
44
+ compileOnly(libs.android.gradlePlugin)
45
+ compileOnly(libs.android.common)
46
+ compileOnly(libs.android.sdkCommon)
47
+ implementation(libs.guava)
55
48
56
49
testImplementation(gradleTestKit())
57
- testImplementation(" com .android.tools.build:gradle: ${versions[ " agp " ]} " )
58
- testImplementation(platform(" org.spockframework: spock- bom: ${versions[ " spock " ]} " ))
59
- testImplementation(" org.spockframework: spock- core" ) { exclude(group = " org.codehaus.groovy" ) }
60
- testImplementation(" org.spockframework: spock- junit4" ) { exclude(group = " org.codehaus.groovy" ) }
61
- testImplementation(" org .junit.jupiter:junit-jupiter- api" )
50
+ testImplementation(libs .android.gradlePlugin )
51
+ testImplementation(platform(libs. spock. bom))
52
+ testImplementation(libs. spock. core) { exclude(group = " org.codehaus.groovy" ) }
53
+ testImplementation(libs. spock. junit4) { exclude(group = " org.codehaus.groovy" ) }
54
+ testImplementation(libs .junit.jupiter. api)
62
55
}
63
56
64
57
wrapperUpgrade {
0 commit comments