Skip to content

Commit 979887b

Browse files
author
Sergey Mashkov
committed
Fix publication verified on Windows
1 parent e3d70a2 commit 979887b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gradle/verifier.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import org.xml.sax.ErrorHandler
44
import org.xml.sax.SAXException
55
import org.xml.sax.SAXParseException
66

7+
import java.util.regex.Matcher
8+
79
task cleanPublications(type: Delete) {
810
delete new File(rootProject.buildDir, 'm2')
911
}
@@ -122,7 +124,7 @@ task verifyPublications(dependsOn: { [cleanPublications] + kinds.collect { "publ
122124
validatePom(file)
123125
}
124126

125-
def groupDir = new File(m2, project.group.replaceAll(/\./, File.separator))
127+
def groupDir = new File(m2, project.group.replaceAll(/\./, Matcher.quoteReplacement(File.separator)))
126128
def verified = 0
127129

128130
groupDir.eachDir { artifactDir ->

0 commit comments

Comments
 (0)