File tree Expand file tree Collapse file tree 3 files changed +44
-20
lines changed Expand file tree Collapse file tree 3 files changed +44
-20
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ subprojects {
63
63
apply (plugin = " signing" )
64
64
apply (plugin = " io.hndrs.publishing-info" )
65
65
66
- publishingInfo {
66
+ publishingInfo {
67
67
name = project.name
68
68
url = " https://github.com/hndrs/jsonapi-spring-boot-starter"
69
69
license = License (
@@ -118,13 +118,6 @@ subprojects {
118
118
}
119
119
}
120
120
121
- val sourcesJarSubProject by tasks.creating(Jar ::class ) {
122
- dependsOn(" classes" )
123
- archiveClassifier.set(" sources" )
124
- from(sourceSets[" main" ].allSource)
125
- }
126
-
127
-
128
121
if (project.name != " sample" ) {
129
122
130
123
publishing {
@@ -138,19 +131,7 @@ subprojects {
138
131
}
139
132
}
140
133
}
141
- publications {
142
- create<MavenPublication >(project.name) {
143
- from(components[" java" ])
144
- artifact(sourcesJarSubProject)
145
-
146
- groupId = rootProject.group as ? String
147
- artifactId = project.name
148
- version = " ${rootProject.version}${project.findProperty(" version.appendix" ) ? : " " } "
149
- pom {
150
134
151
- }
152
- }
153
- }
154
135
val signingKey: String? = System .getenv(" SIGNING_KEY" )
155
136
val signingPassword: String? = System .getenv(" SIGNING_PASSWORD" )
156
137
if (signingKey != null && signingPassword != null ) {
Original file line number Diff line number Diff line change @@ -9,3 +9,24 @@ dependencies {
9
9
publishingInfo {
10
10
description = " SpringBoot json api response starter"
11
11
}
12
+ publishing{
13
+ val sourcesJarSubProject by tasks.creating(Jar ::class ) {
14
+ dependsOn(" classes" )
15
+ archiveClassifier.set(" sources" )
16
+ from(sourceSets[" main" ].allSource)
17
+ }
18
+
19
+ publications {
20
+ create<MavenPublication >(project.name) {
21
+ from(components[" java" ])
22
+ artifact(sourcesJarSubProject)
23
+
24
+ groupId = rootProject.group as ? String
25
+ artifactId = project.name
26
+ version = " ${rootProject.version}${project.findProperty(" version.appendix" ) ? : " " } "
27
+ pom {
28
+
29
+ }
30
+ }
31
+ }
32
+ }
Original file line number Diff line number Diff line change @@ -3,6 +3,28 @@ dependencies {
3
3
4
4
testImplementation(" io.mockk:mockk:1.10.6" )
5
5
}
6
+
6
7
publishingInfo {
7
8
description = " SpringBoot json api response classes and advices"
8
9
}
10
+ publishing{
11
+ val sourcesJarSubProject by tasks.creating(Jar ::class ) {
12
+ dependsOn(" classes" )
13
+ archiveClassifier.set(" sources" )
14
+ from(sourceSets[" main" ].allSource)
15
+ }
16
+
17
+ publications {
18
+ create<MavenPublication >(project.name) {
19
+ from(components[" java" ])
20
+ artifact(sourcesJarSubProject)
21
+
22
+ groupId = rootProject.group as ? String
23
+ artifactId = project.name
24
+ version = " ${rootProject.version}${project.findProperty(" version.appendix" ) ? : " " } "
25
+ pom {
26
+
27
+ }
28
+ }
29
+ }
30
+ }
You can’t perform that action at this time.
0 commit comments