Skip to content

Commit

Permalink
Merge pull request #8 from GradleUp/add-optional
Browse files Browse the repository at this point in the history
add optional
  • Loading branch information
martinbonnin authored Apr 5, 2024
2 parents 7861dac + 0278a18 commit 130b0bf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Configure `nmcp` in your root project using the quick way:
```kotlin
// root/build.gradle[.kts]
plugins {
id("com.gradleup.nmcp").version("0.0.5")
id("com.gradleup.nmcp").version("0.0.6")
}

nmcp {
Expand Down Expand Up @@ -53,7 +53,7 @@ You can be 100% compatible by adding the plugin to each module you want to publi
```kotlin
//root/moduleN/build.gradle.kts
plugins {
id("com.gradleup.nmcp").version("0.0.5")
id("com.gradleup.nmcp").version("0.0.6")
}

nmcp {
Expand All @@ -66,7 +66,7 @@ And then list all modules in your root project:
```kotlin
//root/build.gradle.kts
plugins {
id("com.gradleup.nmcp").version("0.0.5")
id("com.gradleup.nmcp").version("0.0.6")
}

nmcp {
Expand All @@ -86,7 +86,7 @@ nmcp {

```kotlin
plugins {
id("com.gradleup.nmcp").version("0.0.5")
id("com.gradleup.nmcp").version("0.0.6")
}

// Create your publications
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ gradlePlugin {
}

group = "com.gradleup.nmcp"
version = "0.0.5"
version = "0.0.6"

publishing {
repositories {
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/nmcp/NmcpPublishTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ abstract class NmcpPublishTask : DefaultTask() {
abstract val publicationName: Property<String>

@get:Input
@get:Optional
abstract val endpoint: Property<String>

@TaskAction
Expand Down
2 changes: 1 addition & 1 deletion tests/jvm/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("org.jetbrains.kotlin.jvm").version("1.9.22").apply(false)
id("com.gradleup.nmcp").version("0.0.5")
id("com.gradleup.nmcp").version("0.0.6")
}

val projectGroup = "net.mbonnin.tnmcp"
Expand Down
2 changes: 1 addition & 1 deletion tests/kmp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ buildscript {
}

plugins {
id("com.gradleup.nmcp").version("0.0.5")
id("com.gradleup.nmcp").version("0.0.6")
}

val mockServer = MockWebServer()
Expand Down

0 comments on commit 130b0bf

Please sign in to comment.