From e50fd4fcea30a6b7db6e8f61083d1206a52e9fd0 Mon Sep 17 00:00:00 2001 From: Goooler Date: Tue, 3 Dec 2024 16:43:53 +0800 Subject: [PATCH] Convert MavenMetaData --- .../shadow/util/repo/maven/DefaultMavenMetaData.groovy | 1 + .../plugins/shadow/util/repo/maven/MavenMetaData.groovy | 6 ------ .../plugins/shadow/util/repo/maven/MavenModule.groovy | 2 ++ .../gradle/plugins/shadow/testkit/maven/MavenMetaData.kt | 5 +++++ 4 files changed, 8 insertions(+), 6 deletions(-) delete mode 100644 src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/util/repo/maven/MavenMetaData.groovy create mode 100644 src/testKit/kotlin/com/github/jengelman/gradle/plugins/shadow/testkit/maven/MavenMetaData.kt diff --git a/src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/util/repo/maven/DefaultMavenMetaData.groovy b/src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/util/repo/maven/DefaultMavenMetaData.groovy index bccdb40f1..bc995a04a 100644 --- a/src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/util/repo/maven/DefaultMavenMetaData.groovy +++ b/src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/util/repo/maven/DefaultMavenMetaData.groovy @@ -1,5 +1,6 @@ package com.github.jengelman.gradle.plugins.shadow.util.repo.maven +import com.github.jengelman.gradle.plugins.shadow.testkit.maven.MavenMetaData import groovy.xml.XmlParser /** diff --git a/src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/util/repo/maven/MavenMetaData.groovy b/src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/util/repo/maven/MavenMetaData.groovy deleted file mode 100644 index 0a3b49b11..000000000 --- a/src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/util/repo/maven/MavenMetaData.groovy +++ /dev/null @@ -1,6 +0,0 @@ -package com.github.jengelman.gradle.plugins.shadow.util.repo.maven - -interface MavenMetaData { - List getVersions(); - -} diff --git a/src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/util/repo/maven/MavenModule.groovy b/src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/util/repo/maven/MavenModule.groovy index fcd466d10..92bef4129 100644 --- a/src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/util/repo/maven/MavenModule.groovy +++ b/src/funcTest/groovy/com/github/jengelman/gradle/plugins/shadow/util/repo/maven/MavenModule.groovy @@ -1,5 +1,7 @@ package com.github.jengelman.gradle.plugins.shadow.util.repo.maven +import com.github.jengelman.gradle.plugins.shadow.testkit.maven.MavenMetaData + interface MavenModule { /** diff --git a/src/testKit/kotlin/com/github/jengelman/gradle/plugins/shadow/testkit/maven/MavenMetaData.kt b/src/testKit/kotlin/com/github/jengelman/gradle/plugins/shadow/testkit/maven/MavenMetaData.kt new file mode 100644 index 000000000..c9de8d0ae --- /dev/null +++ b/src/testKit/kotlin/com/github/jengelman/gradle/plugins/shadow/testkit/maven/MavenMetaData.kt @@ -0,0 +1,5 @@ +package com.github.jengelman.gradle.plugins.shadow.testkit.maven + +interface MavenMetaData { + val versions: List +}