Skip to content

Commit aed6de0

Browse files
committed
Java Modules: Add module-info.java or Automatic-Module-Name when isn't possible
- Lot of package rename to make it Java 9 Module compatible - Add `Automatic-Module-Name` when: 1) one or more dependencies are not yet Java 9 Module; 2) for support/tooling modules, like: jooby-run, jooby-stork, etc - Make surefire to not use module-path for running tests - See #2630
1 parent fdacc41 commit aed6de0

File tree

170 files changed

+968
-395
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+968
-395
lines changed

MODULES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- REFACTOR
2+
- jooby-graphiql: io.jooby.graphql => io.jooby.graphiql
3+
- jooby-graphql-playgroind: io.jooby.graphql => io.jooby.graphql.playground
4+
- jooby-gson: io.jooby.json => io.jooby.gson
5+
- jooby-guice: io.jooby.di => io.jooby.guice
6+
- jooby-spring: io.jooby.di => io.jooby.spring
7+
- jooby-awssdk-v1: io.jooby.aws => io.jooby.awssdkv1
8+
- jooby-commons-email=>jooby-commons-mail: io.jooby.email => io.jooby.commons.mail
9+
- io.jooby.email.CommonsEmailModule => io.jooby.commons.mail.CommonsMailModule

TODO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
- javax.servlet => jakarta.servlet
44
- javax.ws => jakarta.ws
5-
5+
- remove/delete jooby-weld
66

77
* MVC: QueryParam annotation vs PathParam try to figure it out them and make optional (update open api)
88
* MVC: introduce BodyParam

docs/asciidoc/body.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ and returns a single result of the given type.
103103
}
104104
----
105105

106-
<1> Choose your favorite `json` library
106+
<1> Choose your favorite `jackson` library
107107
<2> Check if the `Content-Type` header matches `application/json`
108108
<3> Read the body as `byte[]`
109109
<4> Parse the `body` and use the requested type
@@ -112,7 +112,7 @@ and returns a single result of the given type.
112112
[TIP]
113113
====
114114
115-
Jooby comes with a `json` decoder built on top of https://github.com/FasterXML/jackson-databind[Jackson]:
115+
Jooby comes with a `jackson` decoder built on top of https://github.com/FasterXML/jackson-databind[Jackson]:
116116
117117
[dependency, artifactId="jooby-jackson"]
118118
.
@@ -219,7 +219,7 @@ produces a result.
219219
}
220220
----
221221

222-
<1> Choose your favorite `json` library
222+
<1> Choose your favorite `jackson` library
223223
<2> Check if the `Accept` header matches `application/json`
224224
<3> Convert `result` to `JSON`
225225
<4> Set default `Content-Type` to `application/json`
@@ -229,7 +229,7 @@ produces a result.
229229
[TIP]
230230
====
231231
232-
Jooby comes with a `json` encoder built on top of https://github.com/FasterXML/jackson-databind[Jackson]:
232+
Jooby comes with a `jackson` encoder built on top of https://github.com/FasterXML/jackson-databind[Jackson]:
233233
234234
[dependency, artifactId="jooby-jackson"]
235235
.

docs/asciidoc/modules/aws.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ This step is optional if you choose one of the https://docs.aws.amazon.com/sdk-f
2828
4) Install
2929

3030
.Java
31-
[source, java, role="primary"]
31+
[source,java,role="primary"]
3232
----
33-
import io.jooby.aws.AwsModule;
33+
import io.jooby.awssdkv1.AwsModule;
3434
3535
{
3636
install(

docs/asciidoc/modules/guice.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
2) Install Guice:
99

1010
.Installing Guice
11-
[source, java, role = "primary"]
11+
[source,java,role = "primary"]
1212
----
1313
14-
import io.jooby.di.GuiceModule;
14+
import io.jooby.guice.GuiceModule;
1515
import io.jooby.runApp;
1616
1717
public class App extends Jooby {
@@ -92,9 +92,9 @@ class BillingService @Inject constructor(@Named("currency") currency: String) {
9292
Guice will also provisioning MVC routes
9393

9494
.MVC and Guice
95-
[source, java, role = "primary"]
95+
[source,java,role = "primary"]
9696
----
97-
import io.jooby.di.GuiceModule;
97+
import io.jooby.guice.GuiceModule;
9898
import io.jooby.runApp
9999
100100
public class App extends Jooby {

docs/asciidoc/modules/jackson.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ import io.jooby.json.JacksonModule
133133
}
134134
----
135135

136-
If you want `json` and `xml` processing then install twice:
136+
If you want `jackson` and `xml` processing then install twice:
137137

138138
.XmlMapper
139139
[source, java, role="primary"]

docs/asciidoc/modules/openapi.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ To learn how it works, let's write a simple Pet API:
112112
<1> Install `OpenAPIModule`
113113
<2> Write your API
114114

115-
The javadoc:OpenAPIModule[] read from classpath the generated `json` and `yaml` files. To generate
115+
The javadoc:OpenAPIModule[] read from classpath the generated `jackson` and `yaml` files. To generate
116116
them you need to build your project.
117117

118118
.Maven

docs/asciidoc/modules/spring.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
2) Install Spring:
99

1010
.Installing Spring
11-
[source, java, role = "primary"]
11+
[source,java,role = "primary"]
1212
----
1313
package myapp; <1>
1414
1515
import static io.jooby.Jooby.runApp;
16-
import io.jooby.di.SpringModule;
16+
import io.jooby.guice.SpringModule;
1717
1818
public class App extends Jooby {
1919

docs/asciidoc/modules/weld.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
2) Install Weld:
1010

1111
.Installing Weld
12-
[source, java, role = "primary"]
12+
[source,java,role = "primary"]
1313
----
14-
import io.jooby.di.WeldModule;
14+
import io.jooby.guice.WeldModule;
1515
import static io.jooby.Jooby.runApp;
1616
1717
public class App extends Jooby {

docs/asciidoc/value-api.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ The javadoc:Value[Value API] provides a way to traverse and parse structured dat
220220
<1> Get the `user` node
221221
<2> Get the `name` value from `user` node
222222
<3> Get the `pass` value from `user` node
223-
<4> Get the `email` value from `user` node. This is an optional value.
223+
<4> Get the `mail` value from `user` node. This is an optional value.
224224

225225
The javadoc:Value[get, java.lang.String] takes a `path` and returns another value. The returning
226226
value may or may not exists.

0 commit comments

Comments
 (0)