Skip to content

Commit e3cc835

Browse files
committed
Merge branch 'release/0.2.0'
2 parents b297c16 + 3e9156b commit e3cc835

3 files changed

Lines changed: 11 additions & 20 deletions

File tree

README.adoc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ image:https://img.shields.io/badge/vert.x-3.9.0-purple.svg[link="https://vertx.i
55
A minimal implementation of Nexus repository to practice Vert.x
66

77
== Features
8-
.Mirrors
9-
* [x] Mirror Maven 2.
10-
* [x] Mirror JCenter.
11-
* [x] Mirror Jitpack.
8+
9+
.Mirrors the following repositories:
10+
* [x] Maven 2.
11+
* [x] JCenter.
12+
* [x] Jitpack.
1213

1314
.Snapshots
14-
* [ ] Enable snapshots.
15+
* [x] Enable snapshots.
1516

1617
.Publishing artifacts
1718
* [ ] Publish artifacts to Kumoru. (_Contemplating_)

src/main/java/com/github/rishabh9/kumoru/MainVerticle.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.github.rishabh9.kumoru;
22

33
import com.github.rishabh9.kumoru.handlers.FinalHandler;
4-
import com.github.rishabh9.kumoru.handlers.IndexSearchHandler;
54
import com.github.rishabh9.kumoru.handlers.JCenterMirrorHandler;
65
import com.github.rishabh9.kumoru.handlers.JitPackMirrorHandler;
76
import com.github.rishabh9.kumoru.handlers.LocalResourceHandler;
@@ -34,9 +33,8 @@ public void start(final Promise<Void> startFuture) {
3433
final MavenMirrorHandler mavenMirror = new MavenMirrorHandler(vertx);
3534
final JCenterMirrorHandler jcenterMirror = new JCenterMirrorHandler(vertx);
3635
final JitPackMirrorHandler jitPackMirror = new JitPackMirrorHandler(vertx);
37-
final FinalHandler finalHandler = new FinalHandler();
38-
final IndexSearchHandler searchHandler = new IndexSearchHandler();
3936
final SendFileHandler sendFileHandler = new SendFileHandler();
37+
final FinalHandler finalHandler = new FinalHandler();
4038

4139
final Router router = Router.router(vertx);
4240
// for all routes do
@@ -45,8 +43,6 @@ public void start(final Promise<Void> startFuture) {
4543
route.handler(LoggerHandler.create(LoggerFormat.DEFAULT));
4644
}
4745
route.handler(validRequestHandler);
48-
// for HEAD method do
49-
router.head().handler(searchHandler).handler(finalHandler);
5046
// for GET method do
5147
router
5248
.get()
@@ -66,7 +62,10 @@ public void start(final Promise<Void> startFuture) {
6662
asyncResult -> {
6763
if (asyncResult.succeeded()) {
6864
startFuture.complete();
69-
log.info("Kumoru server started on port {}", port);
65+
log.info(
66+
"Kumoru server [v{}] started on port {}",
67+
VersionProperties.INSTANCE.getVersion(),
68+
port);
7069
} else {
7170
startFuture.fail(asyncResult.cause());
7271
}

src/main/java/com/github/rishabh9/kumoru/handlers/IndexSearchHandler.java

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)