1
- subprojects {
2
- apply plugin : ' java-library '
1
+ allprojects {
2
+ apply plugin : ' java'
3
3
apply plugin : ' jacoco'
4
- apply plugin : ' io.spring.dependency-management'
5
4
6
5
sourceCompatibility = JavaVersion . VERSION_11
7
6
targetCompatibility = JavaVersion . VERSION_17
@@ -12,6 +11,25 @@ subprojects {
12
11
maven { url ' https://repo.spring.io/milestone' }
13
12
}
14
13
14
+ group ' com.github.bancolombia'
15
+ }
16
+
17
+ nexusPublishing {
18
+ repositories {
19
+ sonatype()
20
+ }
21
+ }
22
+
23
+ subprojects {
24
+ apply plugin : ' java-library'
25
+ apply plugin : ' io.spring.dependency-management'
26
+
27
+ ext {
28
+ groupId = ' com.github.bancolombia'
29
+ }
30
+
31
+ group = groupId
32
+
15
33
dependencies {
16
34
testImplementation ' org.springframework.boot:spring-boot-starter-test'
17
35
testImplementation ' io.projectreactor:reactor-test'
@@ -29,7 +47,7 @@ subprojects {
29
47
30
48
test {
31
49
useJUnitPlatform()
32
- if (System . getProperty(" env.ci" ). equals(" true" )){
50
+ if (System . getProperty(" env.ci" ). equals(" true" )) {
33
51
systemProperty " env.ci" , System . getProperty(" env.ci" )
34
52
}
35
53
@@ -44,66 +62,66 @@ subprojects {
44
62
if (toPublish. split(' ,' ). contains(it. name)) {
45
63
apply plugin : ' maven-publish'
46
64
apply plugin : ' signing'
47
- ext {
48
- groupId = ' org.reactivecommons'
49
- pomConfig = {
50
- licenses {
51
- license {
52
- name ' The Apache Software License, Version 2.0'
53
- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
54
- distribution ' repo'
55
- }
56
- }
57
- developers {
58
- developer {
59
- id ' danielbustamante'
60
- name ' Daniel Bustamante Ospina'
61
-
62
- }
63
- }
64
- scm {
65
- url
' [email protected] :reactive-commons/reactive-commons-java.git'
66
- }
67
- }
68
- }
69
65
70
66
group groupId
71
67
72
- tasks. register(' sourcesJar' , Jar ) {
73
- dependsOn classes
74
- classifier ' sources'
75
- from sourceSets. main. allJava
68
+ tasks. named(" jar" ) {
69
+ enabled = true
70
+ archiveClassifier = ' '
76
71
}
77
72
78
- tasks. register(' javadocJar' , Jar ) {
79
- dependsOn javadoc
80
- classifier = ' javadoc'
81
- from javadoc. destinationDir
73
+ java {
74
+ withJavadocJar()
75
+ withSourcesJar()
82
76
}
83
77
78
+ javadoc {
79
+ if (JavaVersion . current(). isJava9Compatible()) {
80
+ options. addBooleanOption(' html5' , true )
81
+ }
82
+ }
83
+ javadoc. failOnError = false
84
+
84
85
tasks. withType(GenerateModuleMetadata ). configureEach {
85
86
enabled = false
86
87
}
87
88
88
89
publishing {
89
90
publications {
90
91
mavenJava(MavenPublication ) {
91
- from components. java
92
+ pom {
93
+ name = artifactId
94
+ description = ' Abstract your broker with semantic async messages'
95
+ url = ' https://reactivecommons.org/reactive-commons-java'
96
+ licenses {
97
+ license {
98
+ name = ' The Apache Software License, Version 2.0'
99
+ url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
100
+ distribution = ' repo'
101
+ }
102
+ }
103
+ developers {
104
+ developer {
105
+ id = ' danielbustamante'
106
+ name = ' Daniel Bustamante Ospina'
107
+
108
+ }
109
+ developer {
110
+ id = " juancgalvis"
111
+ name = " Juan Carlos Galvis"
112
+
113
+ }
114
+ }
115
+ scm {
116
+ url
= ' [email protected] :reactive-commons/reactive-commons-java.git'
117
+ }
118
+ }
92
119
93
- artifact sourcesJar
94
- artifact javadocJar
120
+ from components. java
95
121
96
122
groupId = groupId
97
123
artifactId = artifactId
98
124
version = project. property(' version' )
99
-
100
- pom. withXml {
101
- def root = asNode()
102
- root. appendNode(' description' , artifactDescription)
103
- root. appendNode(' name' , artifactId)
104
- root. appendNode(' url' , ' http://reactivecommons.org' )
105
- root. children(). last() + pomConfig
106
- }
107
125
}
108
126
}
109
127
}
@@ -116,12 +134,6 @@ subprojects {
116
134
}
117
135
}
118
136
119
- nexusPublishing {
120
- repositories {
121
- sonatype()
122
- }
123
- }
124
-
125
137
tasks. named(' wrapper' ) {
126
- gradleVersion = ' 7.6 '
138
+ gradleVersion = ' 8.5 '
127
139
}
0 commit comments