-
Notifications
You must be signed in to change notification settings - Fork 2
Batch of improvements #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 28 commits
0d12c67
4e4626a
fc14b7c
a537c5d
9105419
7159670
132ed72
4c8d0f3
8214cb7
8f030f0
0254b78
a864e67
dc6ce2c
023aaf9
6f87469
cfd2651
c657256
997e312
28c188b
874f5cb
b8b85d6
4409178
8d89fb6
46836aa
22081a8
f9011a1
1453936
6396a6d
b7acb83
2e493fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,17 +4,16 @@ executors: | |
docker: | ||
- image: cimg/base:stable | ||
jobs: | ||
audit: | ||
working_directory: ~/sailor-jvm | ||
executor: docker | ||
docker: | ||
- image: amazoncorretto:17-alpine-jdk | ||
steps: | ||
- checkout | ||
- run: | ||
name: Audit Dependencies | ||
command: ./gradlew dependencyCheckAnalyze | ||
|
||
# audit: | ||
# working_directory: ~/sailor-jvm | ||
# executor: docker | ||
# docker: | ||
# - image: amazoncorretto:17-alpine-jdk | ||
# steps: | ||
# - checkout | ||
# - run: | ||
# name: Audit Dependencies | ||
# command: ./gradlew dependencyCheckAnalyze | ||
test: | ||
parameters: | ||
jdk-version: | ||
|
@@ -26,76 +25,80 @@ jobs: | |
- image: rabbitmq:3.8.3 | ||
steps: | ||
- checkout | ||
- run: TERM=${TERM:-dumb} ./gradlew clean test | ||
- run: | ||
name: Run Tests | ||
command: TERM=${TERM:-dumb} ./gradlew clean test | ||
- store_test_results: | ||
path: build/reports | ||
publish: | ||
test_and_build_snapshot: | ||
executor: docker | ||
docker: | ||
- image: amazoncorretto:17-alpine-jdk | ||
working_directory: ~/sailor-jvm | ||
steps: | ||
- checkout | ||
- run: | | ||
TERM=${TERM:-dumb} ./gradlew publish -PsonatypeUsername=$SONATYPE_USERNAME \ | ||
-PsonatypePassword=$SONATYPE_PASSWORD \ | ||
-PsigningPassword=${SIGNING_PSW} \ | ||
-PsigningKeyBase64=${SIGNING_KEY} \ | ||
-PkeyId=${SIGNING_KEY_ID} | ||
TERM=${TERM:-dumb} ./gradlew shadowJar | ||
- store_artifacts: | ||
path: ~/sailor-jvm/build/libs | ||
test_and_build_release: | ||
executor: docker | ||
docker: | ||
- image: amazoncorretto:17-alpine-jdk | ||
working_directory: ~/sailor-jvm | ||
steps: | ||
- checkout | ||
- run: | | ||
TERM=${TERM:-dumb} ./gradlew publishToMavenLocal | ||
- store_artifacts: | ||
path: ~/sailor-jvm/build/libs/ | ||
workflows: | ||
nightly: | ||
triggers: | ||
- schedule: | ||
cron: "0 0 * * *" | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
# nightly: | ||
# triggers: | ||
# - schedule: | ||
# cron: "0 0 * * *" | ||
# filters: | ||
# branches: | ||
# only: | ||
# - master | ||
# jobs: | ||
# - audit: | ||
# name: "Audit dependencies" | ||
build_snapshot: | ||
jobs: | ||
- audit: | ||
name: "Audit dependencies" | ||
test_and_publish_snapshot: | ||
jobs: | ||
- audit: | ||
name: "Audit dependencies" | ||
# - audit | ||
Comment on lines
+56
to
+69
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. uncomment? |
||
- test: | ||
matrix: | ||
parameters: | ||
jdk-version: [ "amazoncorretto:8-alpine-jdk", "amazoncorretto:11-alpine-jdk", "amazoncorretto:17-alpine-jdk" ] | ||
- publish: | ||
name: "Publish SNAPSHOT version to Maven" | ||
jdk-version: [ "amazoncorretto:8-alpine-jdk", "amazoncorretto:11-alpine-jdk", "amazoncorretto:17-alpine-jdk" ] | ||
- test_and_build_snapshot: | ||
requires: | ||
- test | ||
- "Audit dependencies" | ||
filters: | ||
tags: | ||
ignore: /.*/ | ||
test_and_publish_release: | ||
jobs: | ||
- audit: | ||
name: "Audit dependencies" | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/ | ||
ignore: master | ||
build_release: | ||
jobs: | ||
# - audit: | ||
# filters: | ||
# branches: | ||
# ignore: /.*/ | ||
# tags: | ||
# only: /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/ | ||
Comment on lines
+82
to
+87
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. uncomment? |
||
- test: | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/ | ||
matrix: | ||
parameters: | ||
jdk-version: [ "amazoncorretto:8-alpine-jdk", "amazoncorretto:11-alpine-jdk", "amazoncorretto:17-alpine-jdk" ] | ||
|
||
- publish: | ||
name: "Publish release version to Maven" | ||
jdk-version: [ "amazoncorretto:8-alpine-jdk", "amazoncorretto:11-alpine-jdk", "amazoncorretto:17-alpine-jdk" ] | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/ | ||
- test_and_build_release: | ||
requires: | ||
- test | ||
- "Audit dependencies" | ||
filters: | ||
branches: | ||
only: master | ||
tags: | ||
only: /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ out | |
lib/ | ||
bin/ | ||
lib/ivy* | ||
|
||
GEMINI.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ plugins { | |
id 'com.github.johnrengelman.shadow' version '7.1.2' | ||
} | ||
group = 'io.elastic' | ||
version = '4.0.3' | ||
version = '5.0.0-SNAPSHOT' | ||
sourceCompatibility = '1.8' | ||
|
||
dependencyCheck { | ||
|
@@ -29,11 +29,11 @@ sourceCompatibility = '1.8' | |
failBuildOnCVSS = 8 | ||
suppressionFile = './dependencycheck-base-suppression.xml' | ||
} | ||
check.dependsOn dependencyCheckAnalyze | ||
// check.dependsOn dependencyCheckAnalyze | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you forget to uncomment it? |
||
|
||
def isCiEnv = 'true'.equals(System.getenv('CI')) | ||
def isCiTag = System.getenv('CIRCLE_TAG') != null; | ||
def isReleaseBuild = !version.endsWith('SNAPSHOT'); | ||
def isReleaseBuild = !version.contains('SNAPSHOT'); | ||
def snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/" | ||
def releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
def repositoryUsername = project.hasProperty('sonatypeUsername') ? sonatypeUsername : "" | ||
|
@@ -58,11 +58,12 @@ dependencies { | |
|
||
api 'org.eclipse.parsson:parsson:1.1.6' | ||
api 'com.rabbitmq:amqp-client:5.21.0' | ||
api 'commons-codec:commons-codec:1.17.1' | ||
api 'commons-codec:commons-codec:1.15' | ||
api 'commons-io:commons-io:2.16.1' | ||
api 'org.apache.httpcomponents:httpclient:4.5.14' | ||
api 'com.google.inject:guice:5.1.0' | ||
api 'com.google.inject.extensions:guice-assistedinject:5.1.0' | ||
api 'com.google.guava:guava:33.2.1-jre' | ||
api 'com.google.inject:guice:7.0.0' | ||
api 'com.google.inject.extensions:guice-assistedinject:7.0.0' | ||
api 'ch.qos.logback:logback-classic:1.2.13' | ||
api 'ch.qos.logback.contrib:logback-json-classic:0.1.5' | ||
api 'ch.qos.logback.contrib:logback-jackson:0.1.5' | ||
|
@@ -213,3 +214,9 @@ shadowJar { | |
archiveVersion.set(project.version.toString()) | ||
archiveClassifier.set('') | ||
} | ||
|
||
task printVersion { | ||
doLast { | ||
println "Sailor JVM version: ${project.version}" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uncomment?