Skip to content

Commit dd8608c

Browse files
authored
Merge pull request #7 from SpineEventEngine/publish_to_gradle_portal
Publish to Gradle plugins portal
2 parents 77261c4 + bf4651e commit dd8608c

File tree

4 files changed

+26
-25
lines changed

4 files changed

+26
-25
lines changed

dependencies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
# Dependencies of `io.spine.chords:spine-chords-gradle-plugin:1.9.11`
3+
# Dependencies of `io.spine.chords:spine-chords-gradle-plugin:1.9.20`
44

55
## Runtime
66
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
@@ -751,4 +751,4 @@
751751

752752
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
753753

754-
This report was generated on **Mon Oct 21 12:30:37 EEST 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
754+
This report was generated on **Mon Oct 21 20:27:54 EEST 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).

gradle-plugin/build.gradle.kts

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@
2525
*/
2626

2727
import io.spine.internal.dependency.JUnit
28+
import io.spine.internal.gradle.isSnapshot
2829
import io.spine.internal.gradle.publish.ChordsPublishing
2930
import io.spine.internal.gradle.publish.SpinePublishing
3031

3132
plugins {
3233
`java-gradle-plugin`
3334
`maven-publish`
34-
// id("com.gradle.plugin-publish") version "0.12.0"
35+
id("com.gradle.plugin-publish") version "0.12.0"
3536
}
3637

3738
repositories {
@@ -43,7 +44,7 @@ dependencies {
4344
testImplementation(JUnit.runner)
4445
}
4546

46-
val versionToPublish = project.version
47+
val versionToPublish = project.version.toString()
4748

4849
val functionalTest: SourceSet by sourceSets.creating
4950
gradlePlugin.testSourceSets(functionalTest)
@@ -67,27 +68,27 @@ tasks.named("test") {
6768
dependsOn(functionalTestTask)
6869
}
6970

70-
//pluginBundle {
71-
// website = "https://github.com/SpineEventEngine/Chords-Gradle-plugin/blob/master/README.md"
72-
// vcsUrl = "https://github.com/SpineEventEngine/Chords-Gradle-plugin"
73-
// tags = listOf("spine", "chords", "gradle", "plugin", "protobuf", "codegen")
74-
//
75-
// mavenCoordinates {
76-
// groupId = "io.spine.chords"
77-
// artifactId = "spine-chords-gradle-plugin"
78-
// version = versionToPublish
79-
// }
80-
//}
81-
//
82-
//val publish: Task by tasks.getting {
83-
// dependsOn(publishPlugins)
84-
//}
85-
//
71+
pluginBundle {
72+
website = "https://github.com/SpineEventEngine/Chords-Gradle-plugin/blob/master/README.md"
73+
vcsUrl = "https://github.com/SpineEventEngine/Chords-Gradle-plugin"
74+
tags = listOf("spine", "chords", "gradle", "plugin", "protobuf", "codegen", "compose")
75+
76+
mavenCoordinates {
77+
groupId = "io.spine.chords"
78+
artifactId = "spine-chords-gradle-plugin"
79+
version = versionToPublish
80+
}
81+
}
82+
8683
// Do not attempt to publish snapshot versions to comply with publishing rules.
8784
// See: https://plugins.gradle.org/docs/publish-plugin#approval
88-
//val publishPlugins: Task by tasks.getting {
89-
// enabled = !versionToPublish.isSnapshot()
90-
//}
85+
val publishPlugins: Task by tasks.getting {
86+
enabled = !versionToPublish.isSnapshot()
87+
}
88+
89+
val publish: Task by tasks.getting {
90+
dependsOn(publishPlugins)
91+
}
9192

9293
gradlePlugin {
9394
plugins {

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ all modules and does not describe the project structure per-subproject.
1010
-->
1111
<groupId>io.spine.chords</groupId>
1212
<artifactId>Chords-Gradle-plugin</artifactId>
13-
<version>1.9.11</version>
13+
<version>1.9.20</version>
1414

1515
<inceptionYear>2015</inceptionYear>
1616

version.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
*
3434
* The version should be updated to `2.0.x` after migrating to Spine `2.0.x`.
3535
*/
36-
val gradlePluginVersion: String by extra("1.9.11")
36+
val gradlePluginVersion: String by extra("1.9.20")

0 commit comments

Comments
 (0)