File tree Expand file tree Collapse file tree 4 files changed +19
-12
lines changed
src/main/kotlin/com/mattbertolini/buildlogic Expand file tree Collapse file tree 4 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ plugins {
3
3
jacoco
4
4
`jacoco- report- aggregation`
5
5
alias(libs.plugins.sonarqube)
6
+ id(" com.gradleup.nmcp.aggregation" )
6
7
}
7
8
8
9
allprojects {
@@ -30,6 +31,20 @@ dependencies {
30
31
jacocoAggregation(project(" :spring-webmvc-annotated-data-binder" ))
31
32
jacocoAggregation(project(" :webflux-annotated-data-binder-spring-boot-starter" ))
32
33
jacocoAggregation(project(" :webmvc-annotated-data-binder-spring-boot-starter" ))
34
+
35
+ nmcpAggregation(project(" :spring-annotated-data-binder-core" ))
36
+ nmcpAggregation(project(" :spring-webflux-annotated-data-binder" ))
37
+ nmcpAggregation(project(" :spring-webmvc-annotated-data-binder" ))
38
+ nmcpAggregation(project(" :webflux-annotated-data-binder-spring-boot-starter" ))
39
+ nmcpAggregation(project(" :webmvc-annotated-data-binder-spring-boot-starter" ))
40
+ }
41
+
42
+ nmcpAggregation {
43
+ centralPortal {
44
+ username = findProperty(" sonatype.ossrh.username" ) as String?
45
+ password = findProperty(" sonatype.ossrh.password" ) as String?
46
+ publishingType = " USER_MANAGED"
47
+ }
33
48
}
34
49
35
50
sonar {
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ repositories {
10
10
dependencies {
11
11
implementation(" net.ltgt.gradle:gradle-errorprone-plugin:4.0.1" )
12
12
implementation(" gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1" )
13
+ implementation(libs.nmcpPlugin)
13
14
}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ plugins {
4
4
java
5
5
`maven- publish`
6
6
signing
7
+ id(" com.gradleup.nmcp" )
7
8
}
8
9
9
10
abstract class MavenCentralPublishExtension {
@@ -19,18 +20,6 @@ java {
19
20
}
20
21
21
22
publishing {
22
- repositories {
23
- maven {
24
- val releasesRepoUrl = uri(" https://oss.sonatype.org/service/local/staging/deploy/maven2/" )
25
- val snapshotsRepoUrl = uri(" https://oss.sonatype.org/content/repositories/snapshots/" )
26
- url = if (version.toString().endsWith(" SNAPSHOT" )) snapshotsRepoUrl else releasesRepoUrl
27
- credentials {
28
- username = findProperty(" sonatype.ossrh.username" ) as String?
29
- password = findProperty(" sonatype.ossrh.password" ) as String?
30
- }
31
- }
32
- }
33
-
34
23
publications {
35
24
register<MavenPublication >(" mavenJava" ) {
36
25
groupId = project.group as String
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ errorProneAnnotations = { module = "com.google.errorprone:error_prone_annotation
41
41
nullAway = { module = " com.uber.nullaway:nullaway" , version.ref = " nullAway" }
42
42
nullAwayAnnotations = { module = " com.uber.nullaway:nullaway-annotations" , version.ref = " nullAway" }
43
43
44
+ nmcpPlugin = { module = " com.gradleup.nmcp:nmcp" , version = " 1.0.2" }
45
+
44
46
[plugins ]
45
47
asciidoctorConvert = { id = " org.asciidoctor.jvm.convert" , version = " 3.3.2" }
46
48
sonarqube = { id = " org.sonarqube" , version = " 5.0.0.4638" }
You can’t perform that action at this time.
0 commit comments