forked from reactive-commons/reactive-commons-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.gradle
More file actions
139 lines (116 loc) · 3.8 KB
/
main.gradle
File metadata and controls
139 lines (116 loc) · 3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
allprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/snapshot' }
maven { url 'https://repo.spring.io/milestone' }
}
group 'org.reactivecommons'
}
nexusPublishing {
repositories {
sonatype()
}
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'io.spring.dependency-management'
ext {
groupId = 'org.reactivecommons'
}
group = groupId
dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
}
jacocoTestReport {
reports {
xml.setRequired true
}
}
test {
useJUnitPlatform()
if (System.getProperty("env.ci").equals("true")) {
systemProperty "env.ci", System.getProperty("env.ci")
}
}
dependencyManagement {
imports {
mavenBom 'org.springframework.boot:spring-boot-dependencies:3.3.1'
}
}
if (toPublish.split(',').contains(it.name)) {
apply plugin: 'maven-publish'
apply plugin: 'signing'
group groupId
tasks.named("jar") {
enabled = true
archiveClassifier = ''
}
java {
withJavadocJar()
withSourcesJar()
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
javadoc.failOnError = false
tasks.withType(GenerateModuleMetadata).configureEach {
enabled = false
}
publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = artifactId
description = 'Abstract your broker with semantic async messages'
url = 'https://reactivecommons.org/reactive-commons-java'
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
developers {
developer {
id = 'danielbustamante'
name = 'Daniel Bustamante Ospina'
email = 'danibust@bancolombia.com.co'
}
developer {
id = "juancgalvis"
name = "Juan Carlos Galvis"
email = "juanc.galvis@outlook.com"
}
}
scm {
url = 'git@github.com:reactive-commons/reactive-commons-java.git'
}
}
from components.java
groupId = groupId
artifactId = artifactId
version = project.property('version')
}
}
}
if (project.hasProperty('signing.keyId')) {
signing {
sign publishing.publications.mavenJava
}
}
}
}
tasks.named('wrapper') {
gradleVersion = '8.8'
}