-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example in Kotlin dsl #30
Comments
Hey,
I will update the Readme how to use this with the Kotlin DSL soon.
Meanwhile you can read this blog post:
https://medium.com/@StefMa/gradle-scripts-for-kotlin-lovers-1d04e2d0fc34
That explains how to apply a plugin which isn't published to the Plugin
Portal yet.
The extension you have to setup in the configure method is this one:
https://github.com/StefMa/ArtifactoryPublish/blob/master/src/main/kotlin/guru/stefma/artifactorypublish/ArtifactoryPublishExtension.kt
On Sun, Aug 12, 2018, 4:25 PM Kittinun Vantasin <[email protected]>
wrote:
Do you have some example on how to use version 1.0.0 with Kotlin dsl?
Basically, anything like the consumer folder with Kotlin dsl should be
really nice.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#30>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AJwYe9aU06lnNhC6eQL5tHI0obVlkX5Zks5uQDrigaJpZM4V5ju3>
.
On Aug 12, 2018 4:25 PM, "Kittinun Vantasin" <[email protected]> wrote:
Do you have some example on how to use version 1.0.0 with Kotlin dsl?
Basically, anything like the consumer folder with Kotlin dsl should be
really nice.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#30>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJwYe9aU06lnNhC6eQL5tHI0obVlkX5Zks5uQDrigaJpZM4V5ju3>
.
|
Yes, I think i did follow your document but there is an error when sync. The error looks something like this
The example of my plugins {
kotlin("jvm")
id("org.junit.platform.gradle.plugin")
jacoco
id("guru.stefma.artifactorypublish")
}
val artifactVersion: String by extra
version = artifactVersion
group = Publishings.groupId
configure<ArtifactoryPublishExtension> {
artifactId = project.name
artifactoryUrl = "foo"
artifactoryRepo = "bar"
}
|
You are running in an case which is not supported by this plugin currently. Anyway. plugins {
kotlin("jvm")
id("org.junit.platform.gradle.plugin")
jacoco
`java-library`
id("guru.stefma.artifactorypublish") apply false
}
apply(plugin = guru.stefma.artifactorypublish)
val artifactVersion: String by extra
version = artifactVersion
group = Publishings.groupId
configure<ArtifactoryPublishExtension> {
artifactId = project.name
artifactoryUrl = "foo"
artifactoryRepo = "bar"
publications = arrayOf("maven")
} This should work for you 👆 |
Ah, thanks that make a lot of sense because the error is only happening on non-android modules only. I will change my |
@StefMa Thanks I think it works! Just for the sake of reference, for Kotlin dsl user for Android module, it should look something like this.
For Kotlin dsl plain jar module;
Thanks again, for pointing me to the right direction and your 1.1.0 release. ❤️ |
You're welcome. Any reasons why you have disabled all |
I don't want to ... but it looks like without that it would fail with an error something like this.
Kinda similar to the novoda plugin 🤔? I am wondering this is the same issue novoda/bintray-release#71 |
I am closing this! |
Just reopened as a reminder for myself 🙃 |
Do you have some example on how to use version 1.0.0 with Kotlin dsl? Basically, anything like the consumer folder with Kotlin dsl should be really nice.
The text was updated successfully, but these errors were encountered: