@@ -2,19 +2,11 @@ plugins {
2
2
java
3
3
`maven- publish`
4
4
signing
5
- id(" io.github.gradle-nexus.publish-plugin" ).version(" 1.1.0" )
6
- id(" pl.allegro.tech.build.axion-release" ).version(" 1.14.3" )
7
- }
8
-
9
- scmVersion {
10
- with (tag) {
11
- prefix.set(" " )
12
- versionSeparator.set(" " )
13
- }
5
+ id(" io.github.gradle-nexus.publish-plugin" ).version(" 1.3.0" )
14
6
}
15
7
16
8
group = " com.github.gavlyukovskiy"
17
- version = scmVersion.version
9
+ version = " 0.1.0-SNAPSHOT "
18
10
19
11
val sonatypeUser: String? = project.properties[" sonatype_user" ]?.toString()
20
12
? : System .getenv(" SONATYPE_USER" )
@@ -52,7 +44,6 @@ subprojects {
52
44
java.sourceCompatibility = JavaVersion .VERSION_17
53
45
54
46
group = rootProject.group
55
- version = rootProject.version
56
47
57
48
repositories {
58
49
mavenCentral()
@@ -86,6 +77,10 @@ subprojects {
86
77
artifact(sourceJar.get())
87
78
artifact(javadocJar.get())
88
79
80
+ if (version.toString() == " 0.1.0-SNAPSHOT" ) {
81
+ throw IllegalStateException (" '-Pversion' must be set" )
82
+ }
83
+
89
84
pom {
90
85
name.set(project.name)
91
86
description.set(" Spring Boot integration with p6spy, datasource-proxy and flexy-pool" )
@@ -106,6 +101,9 @@ subprojects {
106
101
scm {
107
102
url.set(" https://github.com/gavlyukovskiy/spring-boot-data-source-decorator" )
108
103
}
104
+ issueManagement {
105
+ url.set(" https://github.com/gavlyukovskiy/spring-boot-data-source-decorator/issues" )
106
+ }
109
107
}
110
108
}
111
109
}
@@ -127,32 +125,3 @@ subprojects {
127
125
}
128
126
}
129
127
}
130
-
131
- tasks {
132
- val releaseCheck by registering {
133
- doLast {
134
- val errors = ArrayList <String >()
135
- if (! project.hasProperty(" release.version" )) {
136
- errors.add(" '-Prelease.version' must be set" )
137
- }
138
- if (System .getenv(" GITHUB_ACTIONS" ) != " true" ) {
139
- if (! project.hasProperty(" release.customUsername" )) {
140
- errors.add(" '-Prelease.customUsername' must be set" )
141
- }
142
- if (! project.hasProperty(" release.customPassword" )) {
143
- errors.add(" '-Prelease.customPassword' must be set" )
144
- }
145
- }
146
- if (errors.isNotEmpty()) {
147
- throw IllegalStateException (errors.joinToString(" \n " ))
148
- }
149
- }
150
- }
151
-
152
- verifyRelease {
153
- dependsOn(releaseCheck)
154
- subprojects.forEach {
155
- dependsOn(it.tasks.build)
156
- }
157
- }
158
- }
0 commit comments