@@ -6,7 +6,7 @@ plugins {
66 alias(libs. plugins. nexusPublish)
77}
88
9- group = ' org .rundeck.plugins'
9+ group = ' com .rundeck.plugins'
1010ext. pluginClassNames = ' org.rundeck.plugins.nodes.icon.IconNodeEnhancer,org.rundeck.plugins.nodes.attributes.AttributeNodeEnhancer'
1111ext. pluginName = ' Attribute Node Enhancer'
1212ext. publishDescription = ' Adds icons to nodes based on attribute values'
@@ -18,15 +18,16 @@ ext.developers = [
1818
1919scmVersion {
2020 tag {
21- // defines release tags like "v1.2.3"
22- prefix = ' v'
21+ prefix = ' ' // NO "v" prefix - see PLUGIN_TAGGING_ARCHITECTURE.md
2322 versionSeparator = ' '
2423 }
2524 ignoreUncommittedChanges = true
25+ branchVersionCreator = [' main' : ' simple' , ' master' : ' simple' ] // Don't append branch name
26+ versionCreator ' simple' // Use simple version creator (just tag name)
2627}
2728
2829allprojects {
29- project. version = scmVersion. version
30+ project. version = scmVersion. version // Dynamic version from git tag
3031 apply from : " ${ rootDir} /gradle/java.gradle"
3132}
3233
5051}
5152test {
5253 useJUnitPlatform()
54+
55+ // Java 17+ module access for cglib/Spock mocking
56+ jvmArgs = [
57+ ' --add-opens=java.base/java.lang=ALL-UNNAMED' ,
58+ ' --add-opens=java.base/java.util=ALL-UNNAMED' ,
59+ ' --add-opens=java.base/java.lang.reflect=ALL-UNNAMED'
60+ ]
5361}
5462
5563dependencies {
@@ -74,11 +82,19 @@ configurations.all {
7482
7583// In this section you declare where to find the dependencies of your project
7684repositories {
85+ mavenLocal()
86+ maven {
87+ name = ' Central Portal Snapshots'
88+ url = ' https://central.sonatype.com/repository/maven-snapshots/'
89+ content {
90+ includeGroup(' org.rundeck' )
91+ }
92+ }
7793 mavenCentral()
7894}
7995
8096nexusPublishing {
81- packageGroup = ' org .rundeck.plugins'
97+ packageGroup = ' com .rundeck.plugins'
8298 repositories {
8399 sonatype {
84100 nexusUrl. set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
0 commit comments