I know this is a very specific question by I didn't manage to do the replacement myself, I need to replace this string in groovy:
com.pantest in com/pantest.
I tried this:
groupId =com.pantest
def mavenGroupID = groupId.replaceAll('.','/')
And this is what I get in the output:
echo mavenGroupID is //////////
mavenGroupID is //////////
Is the dot (.) is some kind of special character? I tried to escape it using **** but it also didn't work.