@@ -2,11 +2,10 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2
2
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
3
3
4
4
plugins {
5
- alias(libs.plugins.kotlin)
5
+ alias(libs.plugins.kotlin.jvm )
6
6
alias(libs.plugins.android.lint)
7
7
alias(libs.plugins.jetbrains.bcv)
8
8
alias(libs.plugins.spotless)
9
- groovy // Required for Spock tests.
10
9
id(" shadow.convention.publish" )
11
10
id(" shadow.convention.deploy" )
12
11
}
@@ -54,15 +53,12 @@ val intiTestRuntimeOnly: Configuration by configurations.getting {
54
53
val funcTest: SourceSet by sourceSets.creating
55
54
val funcTestImplementation: Configuration by configurations.getting {
56
55
extendsFrom(configurations.testImplementation.get())
57
- // TODO: this will be removed after we migrated all functional tests to Kotlin.
58
- extendsFrom(intiTestImplementation)
59
56
}
60
57
val funcTestRuntimeOnly: Configuration by configurations.getting {
61
58
extendsFrom(configurations.testRuntimeOnly.get())
62
59
}
63
60
64
61
gradlePlugin {
65
- testSourceSets.add(intiTest)
66
62
testSourceSets.add(funcTest)
67
63
}
68
64
@@ -80,23 +76,12 @@ dependencies {
80
76
testImplementation(libs.junit.jupiter)
81
77
testImplementation(libs.assertk)
82
78
testImplementation(libs.xmlunit)
83
- testImplementation(libs.apache.commonsLang)
84
79
testRuntimeOnly(libs.junit.platformLauncher)
85
80
86
- funcTestImplementation(libs.spock) {
87
- exclude(group = " org.codehaus.groovy" )
88
- exclude(group = " org.hamcrest" )
89
- }
90
81
funcTestImplementation(sourceSets.main.get().output)
91
- funcTestImplementation(intiTest.output)
92
-
93
- intiTestImplementation(libs.okio)
94
- intiTestImplementation(libs.apache.maven.modelBuilder)
95
- intiTestImplementation(libs.apache.maven.repositoryMetadata)
96
- // TODO: this will be removed after we migrated all functional tests to Kotlin.
97
- intiTestImplementation(sourceSets.main.get().output)
98
- intiTestImplementation(libs.moshi)
99
- intiTestImplementation(libs.moshi.kotlin)
82
+ funcTestImplementation(libs.apache.maven.modelBuilder)
83
+ funcTestImplementation(libs.moshi)
84
+ funcTestImplementation(libs.moshi.kotlin)
100
85
101
86
lintChecks(libs.androidx.gradlePluginLints)
102
87
lintChecks(libs.assertk.lint)
@@ -108,10 +93,6 @@ val integrationTest by tasks.registering(Test::class) {
108
93
testClassesDirs = intiTest.output.classesDirs
109
94
classpath = intiTest.runtimeClasspath
110
95
111
- // TODO: this should be moved into functionalTest after we migrated all functional tests to Kotlin.
112
- // Required to enable `IssueExtension` for all tests.
113
- systemProperty(" junit.jupiter.extensions.autodetection.enabled" , true )
114
-
115
96
val docsDir = file(" src/docs" )
116
97
// Add src/docs as an input directory to trigger ManualCodeSnippetTests re-run on changes.
117
98
inputs.dir(docsDir)
@@ -123,6 +104,9 @@ val functionalTest by tasks.registering(Test::class) {
123
104
group = LifecycleBasePlugin .VERIFICATION_GROUP
124
105
testClassesDirs = funcTest.output.classesDirs
125
106
classpath = funcTest.runtimeClasspath
107
+
108
+ // Required to enable `IssueExtension` for all tests.
109
+ systemProperty(" junit.jupiter.extensions.autodetection.enabled" , true )
126
110
}
127
111
128
112
tasks.check {
0 commit comments