mirror of
https://github.com/elastic/logstash.git
synced 2025-06-28 17:53:28 -04:00
Purpose: * manage releases through a minimum number of rake tasks * simplify building of snapshot builds * create staged artifacts, candidates for releases, that required no changes to become releases * this means the snapshot release process will not involve publishing gems, therefore: * the gem artifacts should only be published to rubygems as a final artifact, at the time of GA Changes: * release artifacts no longer depend on gems of core components * all core components are used locally AS-IS to minimize code changes between snapshot, RC and GA * `versions.yml` describes the versions of all logstash parts and package * `rake version:set[version]` manage the yaml file and push the changes to the gemspecs/version.rb files * `rake version:set_plugin_api[version]` manage the yaml file and push the changes to the gemspecs/version.rb files * `rake artifact:all` generates SNAPSHOT artifacts: tar.gz, zip, rpm, deb * `RELEASE=1 rake artifact:all` creates release candidate artifacts + 4 gems: logstash-core, logstash-core-event, logstash-core-event-java and logstash-core-plugin-api implements #5416 and #5414 Fixes #5460 |
||
---|---|---|
.. | ||
gradle/wrapper | ||
lib | ||
spec | ||
src | ||
.gitignore | ||
build.gradle | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
logstash-core-event-java.gemspec | ||
README.md | ||
settings.gradle |
logstash-core-event-java
dev install
1- build code with
$ cd logstash-core-event-java
$ gradle build
A bunch of warning are expected, it should end with:
BUILD SUCCESSFUL
2- update root logstash Gemfile
to use this gem with:
# gem "logstash-core-event", "x.y.z", :path => "./logstash-core-event"
gem "logstash-core-event-java", "x.y.z", :path => "./logstash-core-event-java"
3- update logstash-core/logstash-core.gemspec
with:
# gem.add_runtime_dependency "logstash-core-event", "x.y.z"
gem.add_runtime_dependency "logstash-core-event-java", "x.y.z"
4- and install:
$ bin/bundle
- install core plugins for tests
$ rake test:install-core
specs
$ bin/rspec spec
$ bin/rspec logstash-core/spec
$ bin/rspec logstash-core-event/spec
$ bin/rspec logstash-core-event-java/spec
or
$ rake test:core
also
$ rake test:plugins