Skip to content

Commit

Permalink
build: Added java distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux committed Feb 9, 2023
1 parent 7e0bd84 commit 7e2228f
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 11 deletions.
4 changes: 3 additions & 1 deletion core/redis-smart-cache-jdbc/redis-smart-cache-jdbc.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ task relocateShadowJar(type: ConfigureShadowRelocation) {
prefix = "com.redis.smartcache.shaded"
}

tasks.shadowJar.dependsOn tasks.relocateShadowJar
tasks.shadowJar.dependsOn tasks.relocateShadowJar
tasks.distTar.dependsOn tasks.shadowJar
tasks.distZip.dependsOn tasks.shadowJar
54 changes: 44 additions & 10 deletions jreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
project:
name: redis-smart-cache
description: JDBC Cache
longDescription: JDBC driver that transparently caches SQL queries
description: JDBC query cache for Redis
longDescription: |
Redis Smart Cache is a JDBC query cache for Redis Stack, Redis Cloud, and
Redis Enterprise. It lets you add caching to your application without changing the code.
Implemented as a wrapper around your backend database's JDBC driver, Redis Smart
Cache can cache slow, repeated queries from Redis, bypassing expensive database
calls and greatly improving response times.
links:
homepage: https://github.com/redis-field-engineering/redis-smart-cache
homepage: https://{{repoHost}}/{{repoOwner}}/{{repoName}}
authors:
- Julien Ruaux
license: MIT
Expand All @@ -20,13 +26,12 @@ project:
release:
github:
overwrite: true
artifacts: false
sign: true
changelog:
formatted: ALWAYS
preset: conventional-commits
format: '- {{commitShortHash}} {{commitTitle}}'
contributors:
enabled: false
format: '- {{contributorName}}{{#contributorUsernameAsLink}} ({{.}}){{/contributorUsernameAsLink}}'
labelers:
- label: 'dependencies'
title: 'regex:^(?:deps(?:\(.*\))?!?):\s.*'
Expand All @@ -44,16 +49,42 @@ release:
hide:
categories:
- 'Merge'
contributors:
- 'GitHub'
- 'allcontributors'
replacers:
- search: 'deps: '

signing:
active: ALWAYS
armored: true

deploy:
maven:
pomchecker:
version: 1.7.0
nexus2:
maven-central:
active: RELEASE
url: https://s01.oss.sonatype.org/service/local
closeRepository: true
releaseRepository: true
stagingRepositories:
- build/repos/local/release

announce:
slack:
active: release
channel: '#field-engineering-announcements'
message: '📈 Redis Smart Cache {{projectVersion}} has been released! {{releaseNotesUrl}}'

distributions:
redis-smart-cache-jdbc:
artifacts:
- path: 'core/{{distributionName}}/build/distributions/{{distributionName}}-{{projectVersion}}.tar'
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.tar'
- path: 'core/{{distributionName}}/build/distributions/{{distributionName}}-{{projectVersion}}.zip'
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.zip'
redis-smart-cache-demo:
type: SINGLE_JAR
executable:
Expand All @@ -67,10 +98,10 @@ distributions:
server: docker.io
repositoryName: fieldengineering
imageNames:
- 'fieldengineering/redis-demo-smart-cache:{{tagName}}'
- 'fieldengineering/redis-demo-smart-cache:latest'
- 'fieldengineering/demo-redis-smart-cache:{{tagName}}'
- 'fieldengineering/demo-redis-smart-cache:latest'
labels:
'org.opencontainers.image.title': 'redis-demo-smart-cache'
'org.opencontainers.image.title': 'demo-redis-smart-cache'
buildx:
enabled: true
platforms:
Expand All @@ -79,4 +110,7 @@ distributions:

files:
artifacts:
- path: VERSION
- path: VERSION
extraProperties:
skipChecksum: true
skipSigning: true
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ projects {
id 'io.spring.dependency-management'
}
path(':redis-smart-cache-jdbc') {
id 'java-library-distribution'
id 'com.github.johnrengelman.shadow'
}
path(':redis-smart-cache-test') {
Expand Down

0 comments on commit 7e2228f

Please sign in to comment.