Skip to content

Instantly share code, notes, and snippets.

View akshay2211's full-sized avatar
🏠
Working from home

Akshay Sharma akshay2211

🏠
Working from home
View GitHub Profile
gradlew publishMavenPublicationToMavenCentralRepository
gradlew closeAndReleaseRepository
val currentPackageName = extra["package.old"] as String
val newPackageName = extra["package.new"] as String
val currentPackage = currentPackageName.replace(".", "/")
val newPackage = newPackageName.replace(".", "/")
infix fun String.oldPath(main: String) = "$rootDir/$this/src/$main/kotlin/$currentPackage"
infix fun String.newPath(main: String) = "$rootDir/$this/src/$main/kotlin/$newPackage"
infix fun String.delete(main: String) =
"$rootDir/$this/src/$main/kotlin/${currentPackage.split("/")[0]}"