Skip to content

Commit

Permalink
using jreleaser for release management
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed May 4, 2021
1 parent d8cec7c commit 486a43b
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 12 deletions.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.11.0-SNAPSHOT
92 changes: 89 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ plugins {
id 'org.jreleaser' version '0.2.0'
}

project.rootProject.ext.theVersion = file('VERSION').text.trim()

allprojects { p ->
p.version = p.rootProject.ext.theVersion
}

repositories {
mavenCentral()
}
Expand Down Expand Up @@ -47,15 +53,95 @@ tasks.named("dependencyUpdates").configure {
}

jreleaser {
project {
name = 'riot'
description = 'Redis Input/Output Tools'
longDescription = 'Get data in and out of Redis with RIOT'
website = 'https://developer.redislabs.com/riot'
authors = ['Julien Ruaux']
tags = ['redis']
license = 'Apache-2.0'
java {
multiProject = true
}
}
release {
github {
username = 'jruaux'
owner = 'redis-developer'
overwrite = true
}
}
packagers {
brew {
active = 'RELEASE'
distributions {
db {
executable = 'riot-db'
brew {
active = 'release'
}
artifacts {
artifact {
path = "riot-db/build/distributions/riot-db-${version}.zip"
}
}
java {
artifactId = 'riot-db'
}
}
file {
executable = 'riot-file'
brew {
active = 'release'
}
artifacts {
artifact {
path = "riot-file/build/distributions/riot-file-${version}.zip"
}
}
java {
artifactId = 'riot-file'
}
}
gen {
executable = 'riot-gen'
brew {
active = 'release'
}
artifacts {
artifact {
path = "riot-gen/build/distributions/riot-gen-${version}.zip"
}
}
java {
artifactId = 'riot-gen'
}
}
redis {
executable = 'riot-redis'
brew {
active = 'release'
}
artifacts {
artifact {
path = "riot-redis/build/distributions/riot-redis-${version}.zip"
}
}
java {
artifactId = 'riot-redis'
}
}
stream {
executable = 'riot-stream'
brew {
active = 'release'
}
artifacts {
artifact {
path = "riot-stream/build/distributions/riot-stream-${version}.zip"
}
}
java {
artifactId = 'riot-stream'
}
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions buildSrc/src/main/groovy/riot.library-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ repositories {
mavenCentral()
}

sourceCompatibility = '1.8'
targetCompatibility = '1.8'

bootJar {
enabled = false
classifier = 'boot'
Expand Down
4 changes: 2 additions & 2 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ dependencies {
api 'org.springframework.batch:spring-batch-core'
api 'org.slf4j:slf4j-api'
implementation 'org.slf4j:slf4j-jdk14'
api group: 'info.picocli', name: 'picocli', version: picocli_version
annotationProcessor group: 'info.picocli', name: 'picocli-codegen', version: picocli_version
api group: 'info.picocli', name: 'picocli', version: picocliVersion
annotationProcessor group: 'info.picocli', name: 'picocli-codegen', version: picocliVersion
implementation 'me.tongfei:progressbar:0.9.1'
implementation 'org.latencyutils:LatencyUtils:2.0.3'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'
Expand Down
6 changes: 4 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
version=2.11.0-SNAPSHOT
picocli_version=4.6.1
group = com.redislabs
sourceCompatibility = 1.8
targetCompatibility = 1.8
picocliVersion = 4.6.1
6 changes: 6 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
}
}
rootProject.name = 'riot'
include 'core', 'test', 'riot-db', 'riot-file', 'riot-gen', 'riot-redis', 'riot-stream'
4 changes: 2 additions & 2 deletions test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ dependencies {
implementation 'org.junit.jupiter:junit-jupiter-api'
implementation 'org.junit.jupiter:junit-jupiter-params'
implementation 'org.junit.jupiter:junit-jupiter-engine'
implementation group: 'info.picocli', name: 'picocli', version: picocli_version
annotationProcessor group: 'info.picocli', name: 'picocli-codegen', version: picocli_version
implementation group: 'info.picocli', name: 'picocli', version: picocliVersion
annotationProcessor group: 'info.picocli', name: 'picocli-codegen', version: picocliVersion
api 'com.redislabs:testcontainers-redis:1.1.3'
implementation 'commons-io:commons-io:2.8.0'
}

0 comments on commit 486a43b

Please sign in to comment.