11plugins {
2- id ' pl.allegro.tech.build.axion-release' version ' 1.16.1'
2+ alias(libs. plugins. axionRelease)
3+ alias(libs. plugins. nexusPublish)
4+ id ' java'
35}
46
57group ' com.rundeck'
68
79ext. rundeckPluginVersion = ' 1.2'
10+ ext. publishName = " Git Plugin ${ project.version} "
11+ ext. githubSlug = ' rundeck-plugins/git-plugin'
812ext. pluginClassNames= ' com.rundeck.plugin.GitResourceModelFactory,com.rundeck.plugin.GitCloneWorkflowStep,com.rundeck.plugin.GitPushWorkflowStep,com.rundeck.plugin.GitCommitWorkflowStep,com.rundeck.plugin.GitAddWorkflowStep'
913ext. pluginName = ' Git Plugin'
1014ext. pluginDescription = ' This is a git plugin (based on Jgit) which contain a Resource model and worflow steps'
1115
16+ java {
17+ sourceCompatibility = JavaVersion . VERSION_11
18+ targetCompatibility = JavaVersion . VERSION_11
19+ }
20+
1221scmVersion {
1322 ignoreUncommittedChanges = true
1423 tag {
@@ -35,27 +44,23 @@ configurations {
3544
3645
3746dependencies {
38- implementation ' org.codehaus.groovy:groovy-all:3.0.9'
39- testImplementation group : ' junit' , name : ' junit' , version : ' 4.13.1'
47+ // Use catalog aliases for dependencies
48+ implementation(libs. groovyAll)
49+ implementation(libs. rundeckCore)
50+ implementation(libs. slf4jApi)
4051
41- implementation group : ' org.rundeck' , name : ' rundeck-core' , version : ' 5.1.0-rc2-20240124'
42- implementation ' org.slf4j:slf4j-api:1.7.30'
43-
44- pluginLibs(' org.eclipse.jgit:org.eclipse.jgit:6.6.1.202309021850-r' ) {
52+ pluginLibs(libs. jgit) {
4553 exclude module : ' slf4j-api'
4654 exclude module : ' jsch'
4755 exclude module : ' commons-logging'
4856 }
4957
50- pluginLibs ( " org.eclipse.jgit:org.eclipse.jgit.ssh.jsch:5.13.2.202306221912-r " ) {
58+ pluginLibs(libs . jgitSsh) {
5159 exclude module : ' slf4j-api'
5260 exclude group : ' org.bouncycastle'
5361 }
5462
55- testImplementation " org.codehaus.groovy:groovy-all:3.0.9"
56- testImplementation " org.spockframework:spock-core:2.0-groovy-3.0"
57- testImplementation " cglib:cglib-nodep:2.2.2"
58- testImplementation ' org.objenesis:objenesis:1.4'
63+ testImplementation libs. bundles. testLibs
5964}
6065
6166
8489 }
8590 dependsOn(copyToLib)
8691}
92+
93+ nexusPublishing {
94+ packageGroup = ' org.rundeck-plugins'
95+ repositories {
96+ sonatype{
97+ stagingProfileId = ' 67d196ce5bae'
98+ }
99+ }
100+ }
101+
102+
103+ apply from : " ${ rootDir} /gradle/publishing.gradle"
0 commit comments