Skip to content

Commit 5e90da5

Browse files
committed
Code cleanup + sync bom
1 parent 26ef85d commit 5e90da5

6 files changed

Lines changed: 71 additions & 9 deletions

File tree

TODO

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
* server options from application.conf MUST override hardcoded settings
55
* make reset headers on error configurable
66
* netty reports a leak in MVC body
7+
8+
* doc Session
9+
* doc WebSocket
10+
* doc FileUpload change

examples/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,23 @@
1313
<groupId>io.jooby</groupId>
1414
<artifactId>examples</artifactId>
1515

16+
<build>
17+
<plugins>
18+
<!-- <plugin>-->
19+
<!-- <artifactId>maven-compiler-plugin</artifactId>-->
20+
<!-- <version>3.8.1</version>-->
21+
<!-- <configuration>-->
22+
<!-- <annotationProcessorPaths>-->
23+
<!-- <path>-->
24+
<!-- <groupId>io.jooby</groupId>-->
25+
<!-- <artifactId>jooby-apt</artifactId>-->
26+
<!-- <version>${jooby.version}</version>-->
27+
<!-- </path>-->
28+
<!-- </annotationProcessorPaths>-->
29+
<!-- </configuration>-->
30+
<!-- </plugin>-->
31+
</plugins>
32+
</build>
1633
<dependencies>
1734
<dependency>
1835
<groupId>io.jooby</groupId>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Jooby https://jooby.io
3+
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
4+
* Copyright 2014 Edgar Espina
5+
*/
6+
package examples;
7+
8+
import io.jooby.Jooby;
9+
import io.jooby.json.JacksonModule;
10+
11+
public class MvcApp extends Jooby {
12+
13+
{
14+
install(new JacksonModule());
15+
16+
mvc(new MvcController());
17+
}
18+
19+
public static void main(String[] args) {
20+
runApp(args, MvcApp::new);
21+
}
22+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* Jooby https://jooby.io
3+
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
4+
* Copyright 2014 Edgar Espina
5+
*/
6+
package examples;
7+
8+
import examples.jpa.Person;
9+
import io.jooby.annotations.POST;
10+
import io.jooby.annotations.Path;
11+
import io.jooby.annotations.PathParam;
12+
import io.jooby.annotations.QueryParam;
13+
14+
import java.util.List;
15+
16+
@Path("/jsonlist")
17+
public class MvcController {
18+
19+
@POST("/{id}")
20+
public List<Person> post(@PathParam String id, List<Person> people) {
21+
return people;
22+
}
23+
}

examples/src/main/java/examples/WebSocketApp.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,11 @@ public class WebSocketApp extends Jooby {
2020
assets("/?*", Paths.get(System.getProperty("user.dir"), "examples", "www", "websocket"));
2121

2222
ws("/ws", (ctx, initializer) -> {
23-
System.out.println(Thread.currentThread());
24-
System.out.println("Response Started: " + ctx.isResponseStarted());
2523
initializer.onConnect(ws -> {
26-
System.out.println("Connected: " + Thread.currentThread());
2724
ws.send("Welcome");
2825
});
2926
initializer.onMessage((ws, msg) -> {
30-
throw new UnsupportedOperationException("OnMessage");
31-
// ws.send("Got: " + msg.value());
27+
ws.send("Got: " + msg.value());
3228
});
3329
initializer.onClose((ws, closeStatus) -> {
3430
System.out.println("Closed " + closeStatus);

modules/jooby-bom/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<!-- THIS FILE IS AUTO GENERATED. DON'T EDIT -->
1717

1818
<properties>
19-
<jooby.version>2.1.0</jooby.version>
19+
<jooby.version>2.1.1-SNAPSHOT</jooby.version>
2020
<HikariCP.version>3.3.1</HikariCP.version>
2121
<archetype-packaging.version>3.1.2</archetype-packaging.version>
2222
<asm.version>7.2-beta</asm.version>
@@ -36,7 +36,7 @@
3636
<h2.version>1.4.199</h2.version>
3737
<handlebars.version>4.1.2</handlebars.version>
3838
<hibernate.version>5.4.4.Final</hibernate.version>
39-
<jackson-databind.version>2.9.9.2</jackson-databind.version>
39+
<jackson-databind.version>2.9.9.3</jackson-databind.version>
4040
<jackson.version>2.9.9</jackson.version>
4141
<jacoco-maven-plugin.version>0.8.4</jacoco-maven-plugin.version>
4242
<jacoco.version>0.8.4</jacoco.version>
@@ -46,8 +46,8 @@
4646
<jdbi.version>3.9.1</jdbi.version>
4747
<jetty.version>9.4.20.v20190813</jetty.version>
4848
<jfiglet.version>0.0.8</jfiglet.version>
49-
<jooby-maven-plugin.version>2.1.0</jooby-maven-plugin.version>
50-
<jooby.version>2.1.0</jooby.version>
49+
<jooby-maven-plugin.version>2.1.1-SNAPSHOT</jooby-maven-plugin.version>
50+
<jooby.version>2.1.1-SNAPSHOT</jooby.version>
5151
<jsr305.version>3.0.2</jsr305.version>
5252
<junit.version>5.5.1</junit.version>
5353
<kotlin.version>1.3.50</kotlin.version>

0 commit comments

Comments
 (0)