jubilee 2.1.0.rc1-java → 3.0.0.beta2-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +2 -14
  5. data/Guardfile +24 -0
  6. data/README.md +34 -66
  7. data/Rakefile +1 -1
  8. data/examples/chatapp/Gemfile +2 -1
  9. data/examples/chatapp/Gemfile.lock +2 -2
  10. data/examples/chatapp/README.md +2 -14
  11. data/examples/chatapp/app.rb +19 -11
  12. data/examples/chatapp/public/assets/javascripts/application.js +1 -1
  13. data/examples/chatapp/public/assets/javascripts/vertxbus.js +60 -48
  14. data/examples/client/vertxbus.js +60 -48
  15. data/examples/shims_example/log/development.log +0 -0
  16. data/jars/hazelcast-3.5.2.jar +0 -0
  17. data/jars/jackson-annotations-2.6.0.jar +0 -0
  18. data/jars/jackson-core-2.6.1.jar +0 -0
  19. data/jars/jackson-databind-2.6.1.jar +0 -0
  20. data/jars/netty-buffer-4.0.33.Final.jar +0 -0
  21. data/jars/netty-codec-4.0.33.Final.jar +0 -0
  22. data/jars/netty-codec-http-4.0.33.Final.jar +0 -0
  23. data/jars/netty-common-4.0.33.Final.jar +0 -0
  24. data/jars/netty-handler-4.0.33.Final.jar +0 -0
  25. data/jars/netty-transport-4.0.33.Final.jar +0 -0
  26. data/jars/vertx-auth-common-3.2.1.jar +0 -0
  27. data/jars/vertx-core-3.2.1.jar +0 -0
  28. data/jars/vertx-hazelcast-3.2.1.jar +0 -0
  29. data/jars/vertx-lang-ruby-3.2.1.jar +0 -0
  30. data/jars/vertx-web-3.2.1.jar +0 -0
  31. data/jubilee.gemspec +40 -42
  32. data/lib/jubilee.rb +7 -2
  33. data/lib/jubilee/cli.rb +4 -4
  34. data/lib/jubilee/jubilee.jar +0 -0
  35. data/lib/jubilee/response.rb +1 -1
  36. data/lib/jubilee/version.rb +3 -3
  37. data/pom.xml +10 -94
  38. data/spec/apps/rails4/basic/Gemfile +2 -2
  39. data/spec/apps/rails4/basic/Gemfile.lock +5 -6
  40. data/src/main/java/org/jruby/jubilee/Const.java +1 -4
  41. data/src/main/java/org/jruby/jubilee/JubileeVerticle.java +41 -46
  42. data/src/main/java/org/jruby/jubilee/RackApplication.java +37 -57
  43. data/src/main/java/org/jruby/jubilee/RackEnvironment.java +38 -35
  44. data/src/main/java/org/jruby/jubilee/RackEnvironmentHash.java +1 -7
  45. data/src/main/java/org/jruby/jubilee/RubyHttpServerResponse.java +12 -6
  46. data/src/main/java/org/jruby/jubilee/RubyNetSocket.java +9 -12
  47. data/src/main/java/org/jruby/jubilee/RubyPlatformManager.java +39 -43
  48. data/src/main/java/org/jruby/jubilee/impl/RubyIORackInput.java +2 -1
  49. data/src/main/java/org/jruby/jubilee/vertx/JubileeVertx.java +1 -1
  50. metadata +30 -54
  51. data/examples/chatapp/config.json +0 -4
  52. data/jars/annotations-1.3.2.jar +0 -0
  53. data/jars/hazelcast-3.2.3.jar +0 -0
  54. data/jars/jackson-annotations-2.2.2.jar +0 -0
  55. data/jars/jackson-core-2.2.2.jar +0 -0
  56. data/jars/jackson-databind-2.2.2.jar +0 -0
  57. data/jars/lang-jruby-2.1.0-final.jar +0 -0
  58. data/jars/log4j-1.2.16.jar +0 -0
  59. data/jars/netty-all-4.0.20.Final.jar +0 -0
  60. data/jars/slf4j-api-1.6.2.jar +0 -0
  61. data/jars/vertx-core-2.1.2.jar +0 -0
  62. data/jars/vertx-hazelcast-2.1.2.jar +0 -0
  63. data/jars/vertx-platform-2.1.2.jar +0 -0
  64. data/lib/container.rb +0 -117
  65. data/lib/core/buffer.rb +0 -251
  66. data/lib/core/datagram.rb +0 -280
  67. data/lib/core/dns.rb +0 -143
  68. data/lib/core/event_bus.rb +0 -277
  69. data/lib/core/file_system.rb +0 -479
  70. data/lib/core/http.rb +0 -1307
  71. data/lib/core/net.rb +0 -251
  72. data/lib/core/network_support.rb +0 -77
  73. data/lib/core/parsetools.rb +0 -105
  74. data/lib/core/shared_data.rb +0 -214
  75. data/lib/core/sock_js.rb +0 -116
  76. data/lib/core/ssl_support.rb +0 -163
  77. data/lib/core/streams.rb +0 -183
  78. data/lib/core/tcp_support.rb +0 -136
  79. data/lib/core/timers.rb +0 -73
  80. data/lib/core/vertx_require.rb +0 -25
  81. data/lib/core/wrapped_handler.rb +0 -28
  82. data/lib/jubilee/jubilee_require.rb +0 -24
  83. data/lib/test_utils.rb +0 -66
  84. data/lib/vertx.rb +0 -30
  85. data/lib/vertx_tests.rb +0 -8
  86. data/src/main/assembly/mod.xml +0 -21
  87. data/src/main/java/org/jruby/jubilee/JubileeVerticleFactory.java +0 -258
  88. data/src/main/java/org/jruby/jubilee/RubyCallable.java +0 -52
  89. data/src/main/resources/META-INF/services/org.vertx.java.deploy.impl.jruby.JubileeVerticleFactory +0 -1
  90. data/src/main/resources/mod.json +0 -11
  91. data/vertx_classpath.txt +0 -12
@@ -1,17 +1,17 @@
1
1
  /*
2
- * Copyright 2011-2012 the original author or authors.
2
+ * Copyright (c) 2011-2015 The original author or authors
3
+ * ------------------------------------------------------
4
+ * All rights reserved. This program and the accompanying materials
5
+ * are made available under the terms of the Eclipse Public License v1.0
6
+ * and Apache License v2.0 which accompanies this distribution.
3
7
  *
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
8
+ * The Eclipse Public License is available at
9
+ * http://www.eclipse.org/legal/epl-v10.html
7
10
  *
8
- * http://www.apache.org/licenses/LICENSE-2.0
11
+ * The Apache License v2.0 is available at
12
+ * http://www.opensource.org/licenses/apache2.0.php
9
13
  *
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.
14
+ * You may elect to redistribute this code under either of these licenses.
15
15
  */
16
16
 
17
17
  var vertx = vertx || {};
@@ -35,31 +35,26 @@ var vertx = vertx || {};
35
35
  var handlerMap = {};
36
36
  var replyHandlers = {};
37
37
  var state = vertx.EventBus.CONNECTING;
38
- var sessionID = null;
39
38
  var pingTimerID = null;
39
+ var pingInterval = null;
40
+ if (options) {
41
+ pingInterval = options['vertxbus_ping_interval'];
42
+ }
43
+ if (!pingInterval) {
44
+ pingInterval = 5000;
45
+ }
40
46
 
41
47
  that.onopen = null;
42
48
  that.onclose = null;
49
+ that.onerror = null;
43
50
 
44
- that.login = function(username, password, replyHandler) {
45
- sendOrPub("send", 'vertx.basicauthmanager.login', {username: username, password: password}, function(reply) {
46
- if (reply.status === 'ok') {
47
- that.sessionID = reply.sessionID;
48
- }
49
- if (replyHandler) {
50
- delete reply.sessionID;
51
- replyHandler(reply)
52
- }
53
- });
54
- }
55
-
56
- that.send = function(address, message, replyHandler) {
57
- sendOrPub("send", address, message, replyHandler)
58
- }
51
+ that.send = function(address, message, replyHandler, failureHandler) {
52
+ sendOrPub("send", address, message, replyHandler, failureHandler)
53
+ };
59
54
 
60
- that.publish = function(address, message, replyHandler) {
61
- sendOrPub("publish", address, message, replyHandler)
62
- }
55
+ that.publish = function(address, message) {
56
+ sendOrPub("publish", address, message, null)
57
+ };
63
58
 
64
59
  that.registerHandler = function(address, handler) {
65
60
  checkSpecified("address", 'string', address);
@@ -76,7 +71,7 @@ var vertx = vertx || {};
76
71
  } else {
77
72
  handlers[handlers.length] = handler;
78
73
  }
79
- }
74
+ };
80
75
 
81
76
  that.unregisterHandler = function(address, handler) {
82
77
  checkSpecified("address", 'string', address);
@@ -95,23 +90,22 @@ var vertx = vertx || {};
95
90
  delete handlerMap[address];
96
91
  }
97
92
  }
98
- }
93
+ };
99
94
 
100
95
  that.close = function() {
101
96
  checkOpen();
102
- if (pingTimerID) clearInterval(pingTimerID);
103
97
  state = vertx.EventBus.CLOSING;
104
98
  sockJSConn.close();
105
- }
99
+ };
106
100
 
107
101
  that.readyState = function() {
108
102
  return state;
109
- }
103
+ };
110
104
 
111
105
  sockJSConn.onopen = function() {
112
- // Send the first ping then send a ping every 5 seconds
106
+ // Send the first ping then send a ping every pingInterval milliseconds
113
107
  sendPing();
114
- pingTimerID = setInterval(sendPing, 5000);
108
+ pingTimerID = setInterval(sendPing, pingInterval);
115
109
  state = vertx.EventBus.OPEN;
116
110
  if (that.onopen) {
117
111
  that.onopen();
@@ -120,6 +114,7 @@ var vertx = vertx || {};
120
114
 
121
115
  sockJSConn.onclose = function() {
122
116
  state = vertx.EventBus.CLOSED;
117
+ if (pingTimerID) clearInterval(pingTimerID);
123
118
  if (that.onclose) {
124
119
  that.onclose();
125
120
  }
@@ -128,6 +123,15 @@ var vertx = vertx || {};
128
123
  sockJSConn.onmessage = function(e) {
129
124
  var msg = e.data;
130
125
  var json = JSON.parse(msg);
126
+ var type = json.type;
127
+ if (type === 'err') {
128
+ if (that.onerror) {
129
+ that.onerror(json.body);
130
+ } else {
131
+ console.error("Error received on connection: " + json.body);
132
+ }
133
+ return;
134
+ }
131
135
  var body = json.body;
132
136
  var replyAddress = json.replyAddress;
133
137
  var address = json.address;
@@ -148,35 +152,43 @@ var vertx = vertx || {};
148
152
  }
149
153
  } else {
150
154
  // Might be a reply message
151
- var handler = replyHandlers[address];
152
- if (handler) {
155
+ handlers = replyHandlers[address];
156
+ if (handlers) {
153
157
  delete replyHandlers[address];
154
- handler(body, replyHandler);
158
+ var handler = handlers.replyHandler;
159
+ if (body) {
160
+ handler(body, replyHandler);
161
+ } else if (typeof json.failureCode != 'undefined') {
162
+ // Check for failure
163
+ var failure = { failureCode: json.failureCode, failureType: json.failureType, message: json.message };
164
+ var failureHandler = handlers.failureHandler;
165
+ if (failureHandler) {
166
+ failureHandler(failure)
167
+ }
168
+ }
155
169
  }
156
170
  }
157
- }
171
+ };
158
172
 
159
173
  function sendPing() {
160
174
  var msg = {
161
175
  type: "ping"
162
- }
176
+ };
163
177
  sockJSConn.send(JSON.stringify(msg));
164
178
  }
165
179
 
166
- function sendOrPub(sendOrPub, address, message, replyHandler) {
180
+ function sendOrPub(sendOrPub, address, message, replyHandler, failureHandler) {
167
181
  checkSpecified("address", 'string', address);
168
182
  checkSpecified("replyHandler", 'function', replyHandler, true);
183
+ checkSpecified("failureHandler", 'function', failureHandler, true);
169
184
  checkOpen();
170
185
  var envelope = { type : sendOrPub,
171
186
  address: address,
172
187
  body: message };
173
- if (that.sessionID) {
174
- envelope.sessionID = that.sessionID;
175
- }
176
- if (replyHandler) {
188
+ if (replyHandler || failureHandler) {
177
189
  var replyAddress = makeUUID();
178
190
  envelope.replyAddress = replyAddress;
179
- replyHandlers[replyAddress] = replyHandler;
191
+ replyHandlers[replyAddress] = { replyHandler: replyHandler, failureHandler: failureHandler };
180
192
  }
181
193
  var str = JSON.stringify(envelope);
182
194
  sockJSConn.send(str);
@@ -204,7 +216,7 @@ var vertx = vertx || {};
204
216
  function makeUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"
205
217
  .replace(/[xy]/g,function(a,b){return b=Math.random()*16,(a=="y"?b&3|8:b|0).toString(16)})}
206
218
 
207
- }
219
+ };
208
220
 
209
221
  vertx.EventBus.CONNECTING = 0;
210
222
  vertx.EventBus.OPEN = 1;
Binary file
Binary file
Binary file
@@ -2,16 +2,17 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: jubilee 2.1.0.beta java lib
5
+ # stub: jubilee 3.0.0.beta2 java lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "jubilee"
9
- s.version = "2.1.0.beta"
9
+ s.version = "3.0.0.beta2"
10
10
  s.platform = "java"
11
11
 
12
12
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
13
+ s.require_paths = ["lib"]
13
14
  s.authors = ["Isaiah Peng"]
14
- s.date = "2014-07-24"
15
+ s.date = "2016-04-02"
15
16
  s.description = "Jubilee is a rack server for JRuby built upon the high performance Vertx platform. It provides the best features of Vertx such as EventBus, SharedData, and clustering."
16
17
  s.email = "issaria@gmail.com"
17
18
  s.executables = ["jubilee", "jubilee_d"]
@@ -47,53 +48,34 @@ Gem::Specification.new do |s|
47
48
  "examples/client/vertxbus.js",
48
49
  "examples/jubilee.conf.rb",
49
50
  "examples/keystore.jks",
50
- "jars/hazelcast-3.2.3.jar",
51
- "jars/jackson-annotations-2.2.2.jar",
52
- "jars/jackson-core-2.2.2.jar",
53
- "jars/jackson-databind-2.2.2.jar",
54
- "jars/netty-all-4.0.20.Final.jar",
55
- "jars/vertx-core-2.1.1.jar",
56
- "jars/vertx-hazelcast-2.1.1.jar",
57
- "jars/vertx-platform-2.1.1.jar",
58
- "java/resources/META-INF/services/org.vertx.java.core.spi.cluster.ClusterManagerFactory",
59
- "java/resources/default-cluster.xml",
60
- "java/src/jubilee/JubileeService.java",
61
- "java/src/org/jruby/jubilee/Const.java",
62
- "java/src/org/jruby/jubilee/JubileeVerticle.java",
63
- "java/src/org/jruby/jubilee/RackApplication.java",
64
- "java/src/org/jruby/jubilee/RackEnvironment.java",
65
- "java/src/org/jruby/jubilee/RackEnvironmentHash.java",
66
- "java/src/org/jruby/jubilee/RackInput.java",
67
- "java/src/org/jruby/jubilee/RackResponse.java",
68
- "java/src/org/jruby/jubilee/RubyCallable.java",
69
- "java/src/org/jruby/jubilee/RubyChannel.java",
70
- "java/src/org/jruby/jubilee/RubyHttpServerResponse.java",
71
- "java/src/org/jruby/jubilee/RubyNetSocket.java",
72
- "java/src/org/jruby/jubilee/RubyPlatformManager.java",
73
- "java/src/org/jruby/jubilee/impl/RubyIORackInput.java",
74
- "java/src/org/jruby/jubilee/impl/RubyNullIO.java",
75
- "java/src/org/jruby/jubilee/utils/RubyHelper.java",
76
- "java/src/org/jruby/jubilee/vertx/JubileeVertx.java",
51
+ "examples/shims_example/log/development.log",
52
+ "jars/hazelcast-3.5.2.jar",
53
+ "jars/jackson-annotations-2.6.0.jar",
54
+ "jars/jackson-core-2.6.1.jar",
55
+ "jars/jackson-databind-2.6.1.jar",
56
+ "jars/netty-buffer-4.0.33.Final.jar",
57
+ "jars/netty-codec-4.0.33.Final.jar",
58
+ "jars/netty-codec-http-4.0.33.Final.jar",
59
+ "jars/netty-common-4.0.33.Final.jar",
60
+ "jars/netty-handler-4.0.33.Final.jar",
61
+ "jars/netty-transport-4.0.33.Final.jar",
62
+ "jars/vertx-auth-common-3.2.1.jar",
63
+ "jars/vertx-core-3.2.1.jar",
64
+ "jars/vertx-hazelcast-3.2.1.jar",
65
+ "jars/vertx-lang-ruby-3.2.1.jar",
66
+ "jars/vertx-web-3.2.1.jar",
77
67
  "jubilee.gemspec",
78
68
  "lib/jubilee.rb",
79
69
  "lib/jubilee/application.rb",
80
70
  "lib/jubilee/cli.rb",
81
71
  "lib/jubilee/configuration.rb",
82
72
  "lib/jubilee/const.rb",
73
+ "lib/jubilee/jubilee.jar",
83
74
  "lib/jubilee/response.rb",
84
75
  "lib/jubilee/server.rb",
85
76
  "lib/jubilee/version.rb",
86
77
  "lib/rack/handler/jubilee.rb",
87
- "lib/vertx.rb",
88
- "lib/vertx/README.md",
89
- "lib/vertx/buffer.rb",
90
- "lib/vertx/event_bus.rb",
91
- "lib/vertx/http.rb",
92
- "lib/vertx/shared_data.rb",
93
- "lib/vertx/ssl_support.rb",
94
- "lib/vertx/streams.rb",
95
- "lib/vertx/tcp_support.rb",
96
- "lib/vertx/wrapped_handler.rb",
78
+ "pom.xml",
97
79
  "spec/apps/rack/basic/config.ru",
98
80
  "spec/apps/rails4/basic/.gitignore",
99
81
  "spec/apps/rails4/basic/Gemfile",
@@ -168,6 +150,23 @@ Gem::Specification.new do |s|
168
150
  "spec/integration/basic_rails4_spec.rb",
169
151
  "spec/integration/basic_sinatra_spec.rb",
170
152
  "spec/spec_helper.rb",
153
+ "src/main/java/jubilee/JubileeService.java",
154
+ "src/main/java/org/jruby/jubilee/Const.java",
155
+ "src/main/java/org/jruby/jubilee/JubileeVerticle.java",
156
+ "src/main/java/org/jruby/jubilee/RackApplication.java",
157
+ "src/main/java/org/jruby/jubilee/RackEnvironment.java",
158
+ "src/main/java/org/jruby/jubilee/RackEnvironmentHash.java",
159
+ "src/main/java/org/jruby/jubilee/RackInput.java",
160
+ "src/main/java/org/jruby/jubilee/RackResponse.java",
161
+ "src/main/java/org/jruby/jubilee/RubyHttpServerResponse.java",
162
+ "src/main/java/org/jruby/jubilee/RubyNetSocket.java",
163
+ "src/main/java/org/jruby/jubilee/RubyPlatformManager.java",
164
+ "src/main/java/org/jruby/jubilee/impl/RubyIORackInput.java",
165
+ "src/main/java/org/jruby/jubilee/impl/RubyNullIO.java",
166
+ "src/main/java/org/jruby/jubilee/utils/RubyHelper.java",
167
+ "src/main/java/org/jruby/jubilee/vertx/JubileeVertx.java",
168
+ "src/main/resources/META-INF/services/org.vertx.java.core.spi.cluster.ClusterManagerFactory",
169
+ "src/main/resources/default-cluster.xml",
171
170
  "test/.ruby-version",
172
171
  "test/apps/app.rb",
173
172
  "test/apps/checker.ru",
@@ -199,8 +198,7 @@ Gem::Specification.new do |s|
199
198
  ]
200
199
  s.homepage = "http://isaiah.github.io/jubilee"
201
200
  s.licenses = ["MIT"]
202
- s.require_paths = ["lib"]
203
- s.rubygems_version = "2.1.9"
201
+ s.rubygems_version = "2.4.8"
204
202
  s.summary = "More than a server for rack applications."
205
203
 
206
204
  if s.respond_to? :specification_version then
@@ -1,5 +1,6 @@
1
- # this is only used when it's running as a rubygem
2
- Dir[File.expand_path("../../jars/*.jar", __FILE__)].each{|jar| require jar}
1
+ Dir.glob(File.expand_path("../../jars/*.jar", __FILE__)) do |jar|
2
+ require jar
3
+ end
3
4
 
4
5
  require 'jubilee/jubilee.jar'
5
6
  require 'rack'
@@ -10,6 +11,10 @@ require 'jubilee/application'
10
11
  require 'jubilee/configuration'
11
12
  require 'jubilee/response'
12
13
  require 'rack/handler/jubilee'
14
+ require 'vertx/vertx'
13
15
 
14
16
  module Jubilee
17
+ def self.vertx
18
+ @vertx ||= Vertx::Vertx.new(org.jruby.jubilee.vertx.JubileeVertx.vertx)
19
+ end
15
20
  end
@@ -14,8 +14,8 @@ module Jubilee
14
14
  end
15
15
 
16
16
  def test_java_version!(version)
17
- if version[0..2] < "1.7"
18
- puts("Error: Jubilee requires JDK 1.7.0 or later. You can use the official Oracle distribution or the OpenJDK version.")
17
+ if version[0..2] < "1.8"
18
+ puts("Error: Jubilee requires JDK 1.8.0 or later. You can use the official Oracle distribution or the OpenJDK version.")
19
19
  exit 1
20
20
  end
21
21
  end
@@ -45,8 +45,8 @@ module Jubilee
45
45
  end
46
46
  thread = Thread.current
47
47
  Signal.trap("INT") do
48
- server.stop
49
48
  puts "Jubilee is shutting down gracefully..."
49
+ server.stop
50
50
  thread.wakeup
51
51
  end
52
52
  puts "Jubilee is initializing..."
@@ -129,7 +129,7 @@ module Jubilee
129
129
  end
130
130
 
131
131
  o.on "-v", "--version", "Print the version information" do
132
- puts "jubilee version #{Jubilee::Version::STRING} on Vert.x 2.1.2"
132
+ puts "jubilee version #{Jubilee::Version::STRING} on Vert.x 3.0.0-SNAPSHOT"
133
133
  exit 0
134
134
  end
135
135
  end
Binary file
@@ -11,7 +11,7 @@ module Jubilee
11
11
  @chunked = false
12
12
  @hijack = nil
13
13
  if @body.kind_of? Array and @body.size == 1
14
- @content_length = @body[0].bytesize
14
+ @content_length = @body[0].nil? ? 0 : @body[0].bytesize
15
15
  end
16
16
  end
17
17
 
@@ -1,9 +1,9 @@
1
1
  module Jubilee
2
2
  module Version
3
- MAJOR = 2
4
- MINOR = 1
3
+ MAJOR = 3
4
+ MINOR = 0
5
5
  PATCH = 0
6
- BUILD = "rc1"
6
+ BUILD = "beta2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
9
  end
data/pom.xml CHANGED
@@ -6,7 +6,7 @@
6
6
  <groupId>org.jruby.jubilee</groupId>
7
7
  <artifactId>mod-rack</artifactId>
8
8
  <packaging>jar</packaging>
9
- <version>0.1.3-SNAPSHOT</version>
9
+ <version>3.0.0-SNAPSHOT</version>
10
10
  <name>Project - mod-rack</name>
11
11
  <url>http://maven.apache.org</url>
12
12
 
@@ -36,10 +36,9 @@
36
36
  <mods.directory>target/mods</mods.directory>
37
37
 
38
38
  <!--Dependency versions-->
39
- <vertx.version>2.1.2</vertx.version>
40
- <lang-jruby.version>2.1.0-final</lang-jruby.version>
39
+ <vertx.version>3.2.1</vertx.version>
41
40
  <vertx.testtools.version>2.0.3-final</vertx.testtools.version>
42
- <junit.version>4.11</junit.version>
41
+ <junit.version>4.12</junit.version>
43
42
 
44
43
  <!--Plugin versions-->
45
44
  <maven.compiler.plugin.version>3.0</maven.compiler.plugin.version>
@@ -65,13 +64,6 @@
65
64
  <url>https://oss.sonatype.org/content/repositories/snapshots</url>
66
65
  </repository>
67
66
  </repositories>
68
- <distributionManagement>
69
- <repository>
70
- <id>bintray-isaiah-maven-mod-rack</id>
71
- <name>isaiah-maven-mod-rack</name>
72
- <url>https://api.bintray.com/maven/isaiah/maven/mod-rack</url>
73
- </repository>
74
- </distributionManagement>
75
67
  <dependencies>
76
68
  <!--Vertx provided dependencies-->
77
69
  <dependency>
@@ -80,12 +72,6 @@
80
72
  <version>${vertx.version}</version>
81
73
  <scope>compile</scope>
82
74
  </dependency>
83
- <dependency>
84
- <groupId>io.vertx</groupId>
85
- <artifactId>vertx-platform</artifactId>
86
- <version>${vertx.version}</version>
87
- <scope>compile</scope>
88
- </dependency>
89
75
  <dependency>
90
76
  <groupId>io.vertx</groupId>
91
77
  <artifactId>vertx-hazelcast</artifactId>
@@ -94,16 +80,14 @@
94
80
  </dependency>
95
81
  <dependency>
96
82
  <groupId>io.vertx</groupId>
97
- <artifactId>lang-jruby</artifactId>
98
- <version>${lang-jruby.version}</version>
83
+ <artifactId>vertx-lang-ruby</artifactId>
84
+ <version>${vertx.version}</version>
99
85
  <scope>compile</scope>
100
86
  </dependency>
101
87
  <dependency>
102
88
  <groupId>io.vertx</groupId>
103
- <artifactId>lang-jruby</artifactId>
104
- <version>${lang-jruby.version}</version>
105
- <type>zip</type>
106
- <classifier>mod</classifier>
89
+ <artifactId>vertx-web</artifactId>
90
+ <version>${vertx.version}</version>
107
91
  <scope>compile</scope>
108
92
  </dependency>
109
93
  <!--Test dependencies-->
@@ -122,7 +106,7 @@
122
106
  <dependency>
123
107
  <groupId>org.jruby</groupId>
124
108
  <artifactId>jruby-complete</artifactId>
125
- <version>1.7.13</version>
109
+ <version>9.0.5.0</version>
126
110
  <scope>provided</scope>
127
111
  </dependency>
128
112
 
@@ -140,57 +124,14 @@
140
124
 
141
125
  <build>
142
126
  <plugins>
143
-
144
- <!-- The vert.x Maven plugin -->
145
- <plugin>
146
- <groupId>io.vertx</groupId>
147
- <artifactId>vertx-maven-plugin</artifactId>
148
- <version>${maven.vertx.plugin.version}</version>
149
- <!--
150
- You can specify extra config to the plugin as required here
151
- <configuration>
152
- <configFile>/path/to/MyVerticle.conf</configFile>
153
- <instances>1</instances>
154
- <classpath>src/main/resources/:src/test/resources/:target/classes/:target/test-classes/</classpath>
155
- </configuration>
156
- -->
157
- <!-- Make sure that the plugin uses the vert.x versions from this pom.xml not from its own pom.xml -->
158
- <dependencies>
159
- <dependency>
160
- <groupId>io.vertx</groupId>
161
- <artifactId>vertx-platform</artifactId>
162
- <version>${vertx.version}</version>
163
- </dependency>
164
- <dependency>
165
- <groupId>io.vertx</groupId>
166
- <artifactId>vertx-core</artifactId>
167
- <version>${vertx.version}</version>
168
- </dependency>
169
- <dependency>
170
- <groupId>io.vertx</groupId>
171
- <artifactId>vertx-hazelcast</artifactId>
172
- <version>${vertx.version}</version>
173
- </dependency>
174
- </dependencies>
175
- <executions>
176
- <execution>
177
- <id>PullInDeps</id>
178
- <phase>prepare-package</phase>
179
- <goals>
180
- <goal>pullInDeps</goal>
181
- </goals>
182
- </execution>
183
- </executions>
184
- </plugin>
185
-
186
127
  <!-- Other plugins required by the build -->
187
128
  <plugin>
188
129
  <groupId>org.apache.maven.plugins</groupId>
189
130
  <artifactId>maven-compiler-plugin</artifactId>
190
131
  <version>${maven.compiler.plugin.version}</version>
191
132
  <configuration>
192
- <source>1.7</source>
193
- <target>1.7</target>
133
+ <source>1.8</source>
134
+ <target>1.8</target>
194
135
  </configuration>
195
136
  </plugin>
196
137
  <plugin>
@@ -312,23 +253,6 @@
312
253
  </execution>
313
254
  </executions>
314
255
  </plugin>
315
- <plugin>
316
- <artifactId>maven-assembly-plugin</artifactId>
317
- <configuration>
318
- <descriptors>
319
- <descriptor>src/main/assembly/mod.xml</descriptor>
320
- </descriptors>
321
- </configuration>
322
- <executions>
323
- <execution>
324
- <id>assemble</id>
325
- <phase>package</phase>
326
- <goals>
327
- <goal>single</goal>
328
- </goals>
329
- </execution>
330
- </executions>
331
- </plugin>
332
256
  </plugins>
333
257
  </build>
334
258
  <reporting>
@@ -338,14 +262,6 @@
338
262
  <artifactId>maven-surefire-report-plugin</artifactId>
339
263
  <version>${maven.surefire.report.plugin.version}</version>
340
264
  </plugin>
341
- <plugin>
342
- <groupId>org.apache.maven.plugins</groupId>
343
- <artifactId>maven-javadoc-plugin</artifactId>
344
- <version>${maven.javadoc.plugin.version}</version>
345
- <configuration>
346
- <aggregate>true</aggregate>
347
- </configuration>
348
- </plugin>
349
265
  </plugins>
350
266
  </reporting>
351
267
  </project>