Skip to content

Commit 251b3fa

Browse files
sonus21Admin
andauthored
Bug Fixes (#248)
* fixed lock name * #256 fix: do not override the message converter set in the factory * change env name for maven central * remove copyright * add copyright to files * rename Size to Number of Messages * test fix * publish setup --------- Co-authored-by: Admin <admin@MacPro.local>
1 parent 9785ba7 commit 251b3fa

39 files changed

+5428
-7111
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ executors:
124124
# Customize the JVM maximum heap limit
125125
JVM_OPTS: -Xmx6400m
126126
TERM: dumb
127-
ORG_GRADLE_PROJECT_sonatypeUsername: xxx
128-
ORG_GRADLE_PROJECT_sonatypePassword: xxx
127+
ORG_GRADLE_PROJECT_mavenCentralUsername: xxx
128+
ORG_GRADLE_PROJECT_mavenCentralPassword: xxx
129129
USER_NAME: rqueue
130130
REDIS_RUNNING: "true"
131131

build.gradle

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
plugins {
22
id "jacoco"
3-
id "com.github.kt3k.coveralls" version "2.12.0"
4-
id "nebula.optional-base" version "7.0.0"
3+
id 'com.github.kt3k.coveralls' version '2.12.2'
54
id "com.adarshr.test-logger" version "3.2.0"
65
id "org.gradle.test-retry" version "1.5.0"
76
}
87

98
allprojects {
109
apply plugin: "idea"
1110
apply plugin: "java-library"
12-
apply plugin: "maven-publish"
13-
apply plugin: "signing"
1411
apply plugin: "jacoco"
15-
apply plugin: "nebula.optional-base"
1612
apply plugin: "com.adarshr.test-logger"
1713
apply plugin: "org.gradle.test-retry"
1814

@@ -21,6 +17,7 @@ allprojects {
2117

2218
repositories {
2319
mavenCentral()
20+
mavenLocal()
2421
}
2522
}
2623

@@ -31,7 +28,7 @@ ext {
3128
microMeterVersion = "1.10.2"
3229

3330
// logging dependencies
34-
lombokVersion = "1.18.24"
31+
lombokVersion = "1.18.30"
3532
logbackVersion = "1.4.5"
3633
sl4jVersion = "2.0.6"
3734

@@ -72,7 +69,7 @@ ext {
7269

7370
subprojects {
7471
group = "com.github.sonus21"
75-
version = "3.2.0-RELEASE"
72+
version = "3.3.0-RELEASE"
7673

7774
dependencies {
7875
// https://mvnrepository.com/artifact/org.springframework/spring-messaging
@@ -126,10 +123,10 @@ task codeCoverageReport(type: JacocoReport, group: "verification", description:
126123
}
127124

128125
reports {
129-
csv.enabled = false
130-
html.enabled = System.getenv("CIRCLECI") != "true"
131-
xml.enabled = System.getenv("CIRCLECI") == "true"
132-
xml.destination = file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")
126+
xml.required = System.getenv("CIRCLECI") == "true"
127+
csv.required = false
128+
html.required = System.getenv("CIRCLECI") != "true"
129+
xml.outputLocation = file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")
133130
}
134131

135132
afterEvaluate {

gradle/code-publish.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
afterEvaluate {
2+
publishing {
3+
publications.withType(MavenPublication).configureEach {
4+
pom.withXml {
5+
def optionalDeps = [
6+
'org.springframework.boot:spring-boot-starter-actuator',
7+
'io.micrometer:micrometer-core'
8+
]
9+
asNode().dependencies.dependency.findAll {
10+
var dep = it.artifactId.text() + ":" + it.groupId.text()
11+
optionalDeps.contains(dep)
12+
}.each {
13+
it.appendNode('optional', 'true')
14+
}
15+
}
16+
}
17+
}
18+
}

gradle/code-signing.gradle

Lines changed: 0 additions & 141 deletions
This file was deleted.

gradle/packaging.gradle

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
/*
2-
* Copyright (c) 2021-2023 Sonu Kumar
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
171
tasks.named('jar') {
182
manifest {
193
attributes(

gradle/test-runner.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ test {
3535
}
3636

3737
reports {
38-
junitXml.enabled = true
39-
junitXml.destination = file("$buildDir/reports/junit/xml")
40-
html.enabled = System.getenv("CIRCLECI") != "true"
41-
html.destination = file("$buildDir/reports/junit/html")
38+
junitXml.required = true
39+
junitXml.outputLocation = file("$buildDir/reports/junit/xml")
40+
html.required = System.getenv("CIRCLECI") != "true"
41+
html.outputLocation = file("$buildDir/reports/junit/html")
4242
}
4343

4444
retry {

gradle/wrapper/gradle-wrapper.jar

2.32 KB
Binary file not shown.
Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
1-
#
2-
# Copyright (c) 2023 Sonu Kumar
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# You may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# https://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and limitations under the License.
14-
#
15-
#
161
distributionBase=GRADLE_USER_HOME
172
distributionPath=wrapper/dists
18-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4+
networkTimeout=10000
195
zipStoreBase=GRADLE_USER_HOME
206
zipStorePath=wrapper/dists

gradlew

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#!/bin/sh
22

33
#
4-
# Copyright (c) 2023 Sonu Kumar
4+
# Copyright © 2015-2021 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
7-
# You may not use this file except in compliance with the License.
7+
# you may not use this file except in compliance with the License.
88
# You may obtain a copy of the License at
99
#
10-
# https://www.apache.org/licenses/LICENSE-2.0
10+
# https://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
# Unless required by applicable law or agreed to in writing, software
1313
# distributed under the License is distributed on an "AS IS" BASIS,
1414
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
# See the License for the specific language governing permissions and limitations under the License.
16-
#
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
1717
#
1818

1919
##############################################################################
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
86+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

8888
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
8989
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
143143
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147+
# shellcheck disable=SC3045
146148
MAX_FD=$( ulimit -H -n ) ||
147149
warn "Could not query maximum file descriptor limit"
148150
esac
149151
case $MAX_FD in #(
150152
'' | soft) :;; #(
151153
*)
154+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155+
# shellcheck disable=SC3045
152156
ulimit -n "$MAX_FD" ||
153157
warn "Could not set maximum file descriptor limit to $MAX_FD"
154158
esac
@@ -205,6 +209,12 @@ set -- \
205209
org.gradle.wrapper.GradleWrapperMain \
206210
"$@"
207211

212+
# Stop when "xargs" is not available.
213+
if ! command -v xargs >/dev/null 2>&1
214+
then
215+
die "xargs is not available"
216+
fi
217+
208218
# Use "xargs" to parse quoted args.
209219
#
210220
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

0 commit comments

Comments
 (0)