Published successfully :slightly_smiling_face: Just wondering if I could apply the `bintray-plugin` ...
d
Published successfully šŸ™‚ Just wondering if I could apply the
bintray-plugin
in my
buildSrc
so I don’t need to pass a lambda to the function. I.e.:
Copy code
// mymodule.gradle.kts
...
publish( "artifactId" ) {
    bintray {
        .. copy/paste code using extra's set in buildSrc function
    }
}
g
You can do this if create a custom plugin in buildSrc and apply it in your project
d
No, I would just like to move that
bintray
block inside my
publish
function, but actually I can't since
bintray
is not resolved in buildSrc, since it's doest have the bintray plugin. I just don't know how to apply it 😁
g
but actually I can’t since
bintray
is not resolved in buildSrc
Yes, because in buildSrc you don’t have static accessors. But you can do this without static accessors, just add bintray plugin as dependency (not plugin!) to your buildSrc
d
Ok thanks, I messed around with Maven and Bintray plugins within repos, deps, classpath and plugins inside the buildSrc šŸ˜‹ I'll let you know in a couple of hours, thanks
message has been deleted
g
Yes, I told you ā€œin buildSrc you don’t have static accessorsā€
you have to use
configure<BintrayExtension> { }
instead
d
Oh, ok šŸ˜„ sorry, didn’t get that šŸ˜„
That worked G
g
šŸ‘