I am trying to convert the following groovy snippet to Kotlin:
class CustomPlugin implements Plugin<Project> {
void apply(Project target) {
target.apply plugin: 'com.jfrog.artifactory'
target.artifactory {
contextUrl = "http://some/artifactory/"
}
}
How to set target.artifactory.contextUrl and remaining parameters?
I want to configure simillarly to build.gradle :
artifactory {
contextUrl ="someUrl"
publish {
repository {
repoKey = "some"
username = "someUsername"
password = "somePassword"
}
}