Skip to content

Commit

Permalink
Merge branch 'release/0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh9 committed May 18, 2020
2 parents b297c16 + 3e9156b commit e3cc835
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 20 deletions.
11 changes: 6 additions & 5 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ image:https://img.shields.io/badge/vert.x-3.9.0-purple.svg[link="https://vertx.i
A minimal implementation of Nexus repository to practice Vert.x

== Features
.Mirrors
* [x] Mirror Maven 2.
* [x] Mirror JCenter.
* [x] Mirror Jitpack.

.Mirrors the following repositories:
* [x] Maven 2.
* [x] JCenter.
* [x] Jitpack.

.Snapshots
* [ ] Enable snapshots.
* [x] Enable snapshots.

.Publishing artifacts
* [ ] Publish artifacts to Kumoru. (_Contemplating_)
Expand Down
11 changes: 5 additions & 6 deletions src/main/java/com/github/rishabh9/kumoru/MainVerticle.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.github.rishabh9.kumoru;

import com.github.rishabh9.kumoru.handlers.FinalHandler;
import com.github.rishabh9.kumoru.handlers.IndexSearchHandler;
import com.github.rishabh9.kumoru.handlers.JCenterMirrorHandler;
import com.github.rishabh9.kumoru.handlers.JitPackMirrorHandler;
import com.github.rishabh9.kumoru.handlers.LocalResourceHandler;
Expand Down Expand Up @@ -34,9 +33,8 @@ public void start(final Promise<Void> startFuture) {
final MavenMirrorHandler mavenMirror = new MavenMirrorHandler(vertx);
final JCenterMirrorHandler jcenterMirror = new JCenterMirrorHandler(vertx);
final JitPackMirrorHandler jitPackMirror = new JitPackMirrorHandler(vertx);
final FinalHandler finalHandler = new FinalHandler();
final IndexSearchHandler searchHandler = new IndexSearchHandler();
final SendFileHandler sendFileHandler = new SendFileHandler();
final FinalHandler finalHandler = new FinalHandler();

final Router router = Router.router(vertx);
// for all routes do
Expand All @@ -45,8 +43,6 @@ public void start(final Promise<Void> startFuture) {
route.handler(LoggerHandler.create(LoggerFormat.DEFAULT));
}
route.handler(validRequestHandler);
// for HEAD method do
router.head().handler(searchHandler).handler(finalHandler);
// for GET method do
router
.get()
Expand All @@ -66,7 +62,10 @@ public void start(final Promise<Void> startFuture) {
asyncResult -> {
if (asyncResult.succeeded()) {
startFuture.complete();
log.info("Kumoru server started on port {}", port);
log.info(
"Kumoru server [v{}] started on port {}",
VersionProperties.INSTANCE.getVersion(),
port);
} else {
startFuture.fail(asyncResult.cause());
}
Expand Down

This file was deleted.

0 comments on commit e3cc835

Please sign in to comment.