Skip to content

Commit 32c6def

Browse files
committed
fix plugin publish and add to docs
1 parent cc7e460 commit 32c6def

File tree

3 files changed

+43
-16
lines changed

3 files changed

+43
-16
lines changed

README.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
= Semantic Version Gradle Plugin
22

3-
Determines patch version based on what already exists in maven repository.
3+
Determines patch version based on what already exists in maven repository. More info in link:https://semantic-version-plugin.pages.dev/[docs].
4+
5+
== Usage
46

57
[source,kotlin]
68
----

build.gradle.kts

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
`java-gradle-plugin`
33
`kotlin-dsl`
44
`maven-publish`
5-
id("com.gradle.plugin-publish") version "0.9.0"
5+
id("com.gradle.plugin-publish") version "1.0.0-rc-1"
66
}
77

88
repositories {
@@ -16,13 +16,23 @@ dependencies {
1616
testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.2")
1717
}
1818

19+
pluginBundle {
20+
website = "https://semantic-version.gradle.poolside.dev"
21+
vcsUrl = "https://github.com/countableSet/semantic-version-plugin"
22+
description = "Based on a given major.minor version, plugin determines patch version based on what is already " +
23+
"maven repository by auto incrementing it to produce the next version number. Major or minor versions " +
24+
"must be manually changed"
25+
tags = listOf("semantic version", "maven", "publish", "auto increment")
26+
}
27+
1928
gradlePlugin {
2029
plugins {
2130
create("semanticVersionPlugin") {
2231
id = "dev.poolside.gradle.semantic-version"
2332
group = "dev.poolside.gradle.semanticversion"
2433
implementationClass = "dev.poolside.gradle.semanticversion.SemanticVersionPlugin"
2534
version = "0.1.0"
35+
displayName = "Poolside Semantic Version Plugin"
2636
}
2737
}
2838
}
@@ -43,17 +53,3 @@ tasks {
4353
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
4454
}
4555
}
46-
47-
pluginBundle {
48-
website = "https://semantic-version.gradle.poolside.dev"
49-
vcsUrl = "https://github.com/countableSet/semantic-version-plugin"
50-
description = "Based on a given major.minor version, plugin determines patch version based on what is already " +
51-
"maven repository by auto incrementing it to produce the next version number. Major or minor versions " +
52-
"must be manually changed"
53-
tags = listOf("semantic version", "maven", "publish", "auto increment")
54-
(plugins) {
55-
getByName("semanticVersionPlugin") {
56-
displayName = "Poolside Semantic Version"
57-
}
58-
}
59-
}

docs/modules/ROOT/pages/references.adoc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,32 @@ Editing groovy dom nodes/nodelists/etc is a pain in kotlin. I found these links
1515
. link:https://github.com/Kotlin/kotlinx.dom/blob/0fe219d942047468b361dc0594f1c443ebcf26c3/src/main/kotlin/Dom.kt[kotlinx.dom]
1616
. link:https://github.com/gradle/kotlin-dsl-samples/issues/225[kotlin-dsl-sample issue]
1717
. link:https://github.com/nebula-plugins/nebula-publishing-plugin/blob/575b55c72151e0fae35c4aea69ff77ae8db57455/src/main/groovy/nebula/plugin/publishing/maven/MavenRemoveInvalidDependenciesPlugin.groovy[groovy example]
18+
19+
== Gradle Plugin Publishing
20+
21+
* link:https://plugins.gradle.org/docs/publish-plugin-new[plugin docs]
22+
* link:https://plugins.gradle.org/u/poolside[user account]
23+
24+
[source,bash]
25+
----
26+
❯ gr publishPlugins
27+
28+
> Task :publishPlugins
29+
Publishing plugin dev.poolside.gradle.semantic-version version 0.1.0
30+
Thank you. Your new plugin dev.poolside.gradle.semantic-version has been submitted for approval by Gradle engineers. The request should be processed within the next few days, at which point you will be contacted via email.
31+
Publishing artifact build/publications/pluginMaven/module.json
32+
Publishing artifact build/publications/pluginMaven/pom-default.xml
33+
Publishing artifact build/libs/semantic-version-plugin-0.1.0.jar
34+
Publishing artifact build/libs/semantic-version-plugin-0.1.0-sources.jar
35+
Publishing artifact build/libs/semantic-version-plugin-0.1.0-javadoc.jar
36+
Activating plugin dev.poolside.gradle.semantic-version version 0.1.0
37+
38+
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
39+
40+
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
41+
42+
See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings
43+
44+
BUILD SUCCESSFUL in 5s
45+
10 actionable tasks: 7 executed, 3 up-to-date
46+
----

0 commit comments

Comments
 (0)