Skip to content

Commit 110a87e

Browse files
committed
Move funcTest sources back
1 parent 432412d commit 110a87e

29 files changed

+9
-32
lines changed

build.gradle.kts

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
22
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
33

44
plugins {
5-
alias(libs.plugins.kotlin)
5+
alias(libs.plugins.kotlin.jvm)
66
alias(libs.plugins.android.lint)
77
alias(libs.plugins.jetbrains.bcv)
88
alias(libs.plugins.spotless)
9-
groovy // Required for Spock tests.
109
id("shadow.convention.publish")
1110
id("shadow.convention.deploy")
1211
}
@@ -54,15 +53,12 @@ val intiTestRuntimeOnly: Configuration by configurations.getting {
5453
val funcTest: SourceSet by sourceSets.creating
5554
val funcTestImplementation: Configuration by configurations.getting {
5655
extendsFrom(configurations.testImplementation.get())
57-
// TODO: this will be removed after we migrated all functional tests to Kotlin.
58-
extendsFrom(intiTestImplementation)
5956
}
6057
val funcTestRuntimeOnly: Configuration by configurations.getting {
6158
extendsFrom(configurations.testRuntimeOnly.get())
6259
}
6360

6461
gradlePlugin {
65-
testSourceSets.add(intiTest)
6662
testSourceSets.add(funcTest)
6763
}
6864

@@ -80,23 +76,12 @@ dependencies {
8076
testImplementation(libs.junit.jupiter)
8177
testImplementation(libs.assertk)
8278
testImplementation(libs.xmlunit)
83-
testImplementation(libs.apache.commonsLang)
8479
testRuntimeOnly(libs.junit.platformLauncher)
8580

86-
funcTestImplementation(libs.spock) {
87-
exclude(group = "org.codehaus.groovy")
88-
exclude(group = "org.hamcrest")
89-
}
9081
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)
10085

10186
lintChecks(libs.androidx.gradlePluginLints)
10287
lintChecks(libs.assertk.lint)
@@ -108,10 +93,6 @@ val integrationTest by tasks.registering(Test::class) {
10893
testClassesDirs = intiTest.output.classesDirs
10994
classpath = intiTest.runtimeClasspath
11095

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-
11596
val docsDir = file("src/docs")
11697
// Add src/docs as an input directory to trigger ManualCodeSnippetTests re-run on changes.
11798
inputs.dir(docsDir)
@@ -123,6 +104,9 @@ val functionalTest by tasks.registering(Test::class) {
123104
group = LifecycleBasePlugin.VERIFICATION_GROUP
124105
testClassesDirs = funcTest.output.classesDirs
125106
classpath = funcTest.runtimeClasspath
107+
108+
// Required to enable `IssueExtension` for all tests.
109+
systemProperty("junit.jupiter.extensions.autodetection.enabled", true)
126110
}
127111

128112
tasks.check {

gradle/libs.versions.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
[versions]
2-
maven = "3.9.9"
32
moshi = "1.15.2"
43

54
[libraries]
65
apache-ant = "org.apache.ant:ant:1.10.15"
76
apache-commonsIo = "commons-io:commons-io:2.18.0"
8-
apache-commonsLang = "org.apache.commons:commons-lang3:3.17.0"
97
apache-log4j = "org.apache.logging.log4j:log4j-core:2.24.3"
10-
apache-maven-modelBuilder = { module = "org.apache.maven:maven-model-builder", version.ref = "maven" }
11-
apache-maven-repositoryMetadata = { module = "org.apache.maven:maven-repository-metadata", version.ref = "maven" }
8+
apache-maven-modelBuilder = "org.apache.maven:maven-model-builder:3.9.9"
129
asm = "org.ow2.asm:asm-commons:9.7.1"
1310
jdependency = "org.vafer:jdependency:2.11"
1411
jdom2 = "org.jdom:jdom2:2.0.6.1"
1512
plexus-utils = "org.codehaus.plexus:plexus-utils:4.0.2"
1613
plexus-xml = "org.codehaus.plexus:plexus-xml:4.0.4"
1714
xmlunit = "org.xmlunit:xmlunit-legacy:2.10.0"
18-
okio = "com.squareup.okio:okio:3.10.2"
1915
moshi = { module = "com.squareup.moshi:moshi", version.ref = "moshi" }
2016
moshi-kotlin = { module = "com.squareup.moshi:moshi-kotlin", version.ref = "moshi" }
2117

@@ -30,14 +26,13 @@ assertk-lint = "com.jzbrooks:assertk-lint:1.4.0"
3026
# Dummy to get renovate updates, the version is used in rootProject build.gradle with spotless.
3127
ktlint = "com.pinterest.ktlint:ktlint-cli:1.5.0"
3228

33-
spock = "org.spockframework:spock-core:2.3-groovy-3.0"
3429
junit-bom = "org.junit:junit-bom:5.11.4"
3530
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter" }
3631
junit-platformLauncher = { module = "org.junit.platform:junit-platform-launcher" }
3732
assertk = "com.willowtreeapps.assertk:assertk:0.28.1"
3833

3934
[plugins]
40-
kotlin = "org.jetbrains.kotlin.jvm:2.1.0"
35+
kotlin-jvm = "org.jetbrains.kotlin.jvm:2.1.0"
4136
android-lint = "com.android.lint:8.7.3"
4237
jetbrains-bcv = "org.jetbrains.kotlinx.binary-compatibility-validator:0.17.0"
4338
spotless = "com.diffplug.spotless:7.0.1"

src/funcTest/.editorconfig

Lines changed: 0 additions & 2 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)