@@ -18,11 +18,12 @@ ext.developers = [
1818]
1919
2020scmVersion {
21- ignoreUncommittedChanges = true
21+ ignoreUncommittedChanges = false
2222 tag {
23- prefix = ' v '
23+ prefix = ' ' // NO "v" prefix - see PLUGIN_TAGGING_ARCHITECTURE.md
2424 versionSeparator = ' '
2525 }
26+ versionCreator ' simple' // Use simple version creator (just tag name)
2627}
2728
2829allprojects {
@@ -34,6 +35,15 @@ defaultTasks 'clean','build'
3435
3536repositories {
3637 mavenLocal()
38+ maven {
39+ name = ' Central Portal Snapshots'
40+ url = ' https://central.sonatype.com/repository/maven-snapshots/'
41+
42+ // Only search this repository for org.rundeck snapshots
43+ content {
44+ includeGroup(' org.rundeck' )
45+ }
46+ }
3747 mavenCentral()
3848}
3949
@@ -55,7 +65,8 @@ dependencies {
5565 pluginLibs libs. expectitCore
5666
5767 implementation libs. commonsIo
58- implementation libs. rundeckCore
68+ compileOnly libs. rundeckCore
69+ testImplementation libs. rundeckCore
5970 implementation libs. slf4jApi
6071
6172 // Add secure commons-lang3 to provide alternative to vulnerable commons-lang 2.6
@@ -101,6 +112,13 @@ jar {
101112
102113test {
103114 useJUnitPlatform()
115+
116+ // Java 17+ module access for cglib/Spock mocking
117+ jvmArgs = [
118+ ' --add-opens=java.base/java.lang=ALL-UNNAMED' ,
119+ ' --add-opens=java.base/java.util=ALL-UNNAMED' ,
120+ ' --add-opens=java.base/java.lang.reflect=ALL-UNNAMED'
121+ ]
104122}
105123
106124// set jar task to depend on copyToLib
@@ -117,3 +135,20 @@ nexusPublishing {
117135}
118136
119137apply from : " ${ rootDir} /gradle/publishing.gradle"
138+
139+ // Add PackageCloud repository
140+ publishing {
141+ repositories {
142+ maven {
143+ name = " PackageCloudTest"
144+ url = uri(" https://packagecloud.io/pagerduty/rundeckpro-test/maven2" )
145+ authentication {
146+ header(HttpHeaderAuthentication )
147+ }
148+ credentials(HttpHeaderCredentials ) {
149+ name = " Authorization"
150+ value = " Bearer " + (System . getenv(" PKGCLD_WRITE_TOKEN" ) ?: project. findProperty(" pkgcldWriteToken" ))
151+ }
152+ }
153+ }
154+ }
0 commit comments