Skip to content

Commit 5c3530b

Browse files
committed
v2.0.0.M1
1 parent 39b5141 commit 5c3530b

File tree

9 files changed

+52
-15
lines changed

9 files changed

+52
-15
lines changed

docs/pom.xml

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

1212
<modelVersion>4.0.0</modelVersion>
1313
<groupId>io.jooby</groupId>
14-
<artifactId>jooby-docs</artifactId>
14+
<artifactId>docs</artifactId>
1515

1616
<dependencies>
1717
<dependency>

etc/release.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
mvn -pl '!docs,!tests,!examples' clean deploy -P bom,central

jooby/src/main/java/io/jooby/Context.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public interface Context {
5454
.ofPattern(RFC1123_PATTERN, Locale.US)
5555
.withZone(GMT);
5656

57-
/**
57+
/*
5858
* **********************************************************************************************
5959
* **** Native methods *************************************************************************
6060
* **********************************************************************************************
@@ -64,7 +64,7 @@ public interface Context {
6464

6565
@Nonnull Router router();
6666

67-
/**
67+
/*
6868
* **********************************************************************************************
6969
* **** Request methods *************************************************************************
7070
* **********************************************************************************************
@@ -312,7 +312,7 @@ default long contentLength() {
312312

313313
@Nonnull Context detach(@Nonnull Runnable action);
314314

315-
/**
315+
/*
316316
* **********************************************************************************************
317317
* **** Response methods *************************************************************************
318318
* **********************************************************************************************

jooby/src/main/java/io/jooby/Jooby.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ private <T> T require(AttributeKey<T> key) {
302302
throw new NoSuchElementException(key.toString());
303303
}
304304

305-
/** Boot: */
306305
public @Nonnull Server start() {
307306
List<Server> servers = stream(
308307
spliteratorUnknownSize(

jooby/src/main/java/io/jooby/Reified.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,17 @@ static Type getSuperclassTypeParameter(Class<?> subclass) {
9595

9696
/**
9797
* Returns the raw (non-generic) type for this type.
98+
*
99+
* @return Returns the raw (non-generic) type for this type.
98100
*/
99101
public final Class<? super T> getRawType() {
100102
return rawType;
101103
}
102104

103105
/**
104106
* Gets underlying {@code Type} instance.
107+
*
108+
* @return Gets underlying {@code Type} instance.
105109
*/
106110
public final Type getType() {
107111
return type;
@@ -122,6 +126,9 @@ public final Type getType() {
122126

123127
/**
124128
* Gets type literal for the given {@code Type} instance.
129+
*
130+
* @param type Source type.
131+
* @return Gets type literal for the given {@code Type} instance.
125132
*/
126133
public static Reified<?> get(Type type) {
127134
return new Reified<>(type);
@@ -136,6 +143,10 @@ public static Class<?> rawType(Type type) {
136143

137144
/**
138145
* Gets type literal for the given {@code Class} instance.
146+
*
147+
* @param type Java type.
148+
* @param <T> Generic type.
149+
* @return Gets type literal for the given {@code Class} instance.
139150
*/
140151
public static <T> Reified<T> get(Class<T> type) {
141152
return new Reified<>(type);
@@ -164,13 +175,22 @@ public static <T> Reified<CompletableFuture<T>> completableFuture(Type type) {
164175
/**
165176
* Gets type literal for the parameterized type represented by applying {@code typeArguments} to
166177
* {@code rawType}.
178+
*
179+
* @param rawType Raw type.
180+
* @param typeArguments Parameter types.
181+
* @return Gets type literal for the parameterized type represented by applying
182+
* {@code typeArguments} to {@code rawType}.
167183
*/
168184
public static Reified<?> getParameterized(Type rawType, Type... typeArguments) {
169185
return new Reified<>($Types.newParameterizedTypeWithOwner(null, rawType, typeArguments));
170186
}
171187

172188
/**
173189
* Gets type literal for the array type whose elements are all instances of {@code componentType}.
190+
*
191+
* @param componentType Array component type.
192+
* @return Gets type literal for the array type whose elements are all instances of
193+
* {@code componentType}.
174194
*/
175195
public static Reified<?> getArray(Type componentType) {
176196
return new Reified<>($Types.arrayOf(componentType));

jooby/src/main/java/io/jooby/Throwing.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public interface Consumer2<V1, V2> extends java.util.function.BiConsumer<V1, V2>
155155
*
156156
* @param v1 Argument.
157157
* @param v2 Argument.
158-
* @throws Throwable If something goes wrong.
158+
* @throws Exception If something goes wrong.
159159
*/
160160
void tryAccept(V1 v1, V2 v2) throws Exception;
161161

modules/jooby-bom/pom.template.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
33
xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd'>
44
<modelVersion>4.0.0</modelVersion>
5-
<groupId>org.jooby</groupId>
5+
<groupId>io.jooby</groupId>
66
<artifactId>jooby-bom</artifactId>
77
<version>@version</version>
88
<packaging>pom</packaging>

modules/jooby-bom/pom.xml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
33
xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd'>
44
<modelVersion>4.0.0</modelVersion>
5-
<groupId>org.jooby</groupId>
5+
<groupId>io.jooby</groupId>
66
<artifactId>jooby-bom</artifactId>
7-
<version>2.0.0-SNAPSHOT</version>
7+
<version>2.0.0.M1</version>
88
<packaging>pom</packaging>
99
<name>jooby-bom</name>
1010
<description>Jooby (Bill of Materials)</description>
@@ -13,7 +13,7 @@
1313
<!-- THIS FILE IS AUTO GENERATED. DON'T EDIT -->
1414

1515
<properties>
16-
<jooby.version>2.0.0-SNAPSHOT</jooby.version>
16+
<jooby.version>2.0.0.M1</jooby.version>
1717
<HikariCP.version>3.2.0</HikariCP.version>
1818
<apt-maven-plugin.version>1.1.3</apt-maven-plugin.version>
1919
<archetype-packaging.version>2.2</archetype-packaging.version>
@@ -33,6 +33,7 @@
3333
<gradle-core.version>2.6</gradle-core.version>
3434
<gradle-plugins.version>0.9-rc-1</gradle-plugins.version>
3535
<gradle-tooling-api.version>2.6</gradle-tooling-api.version>
36+
<guice.version>4.2.2</guice.version>
3637
<h2.version>1.4.197</h2.version>
3738
<handlebars.version>4.1.2</handlebars.version>
3839
<jackson.version>2.9.6</jackson.version>
@@ -41,8 +42,8 @@
4142
<javassist.version>3.22.0-GA</javassist.version>
4243
<javax.inject.version>1</javax.inject.version>
4344
<jetty.version>9.4.14.v20181114</jetty.version>
44-
<jooby-maven-plugin.version>2.0.0-SNAPSHOT</jooby-maven-plugin.version>
45-
<jooby.version>2.0.0-SNAPSHOT</jooby.version>
45+
<jooby-maven-plugin.version>2.0.0.M1</jooby-maven-plugin.version>
46+
<jooby.version>2.0.0.M1</jooby.version>
4647
<jsr305.version>3.0.2</jsr305.version>
4748
<junit.version>5.3.2</junit.version>
4849
<kotlin.version>1.3.20</kotlin.version>
@@ -225,6 +226,11 @@
225226
<artifactId>h2</artifactId>
226227
<version>${h2.version}</version>
227228
</dependency>
229+
<dependency>
230+
<groupId>javax.inject</groupId>
231+
<artifactId>javax.inject</artifactId>
232+
<version>${javax.inject.version}</version>
233+
</dependency>
228234
<dependency>
229235
<groupId>com.squareup.okhttp3</groupId>
230236
<artifactId>okhttp</artifactId>
@@ -295,6 +301,11 @@
295301
<artifactId>reactor-core</artifactId>
296302
<version>${reactor.version}</version>
297303
</dependency>
304+
<dependency>
305+
<groupId>com.google.inject</groupId>
306+
<artifactId>guice</artifactId>
307+
<version>${guice.version}</version>
308+
</dependency>
298309
<dependency>
299310
<groupId>org.jetbrains.kotlin</groupId>
300311
<artifactId>kotlin-stdlib</artifactId>
@@ -320,6 +331,11 @@
320331
<artifactId>junit-jupiter-api</artifactId>
321332
<version>${junit.version}</version>
322333
</dependency>
334+
<dependency>
335+
<groupId>org.junit.jupiter</groupId>
336+
<artifactId>junit-jupiter-engine</artifactId>
337+
<version>${junit.version}</version>
338+
</dependency>
323339
<dependency>
324340
<groupId>org.jacoco</groupId>
325341
<artifactId>org.jacoco.agent</artifactId>

pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@
126126

127127
<jooby.version>${project.version}</jooby.version>
128128
<jooby-maven-plugin.version>${jooby.version}</jooby-maven-plugin.version>
129-
<javadoc.excludes>org.jooby.internal:com.impossibl.postgres.jdbc:org.skife.jdbi.v2
130-
</javadoc.excludes>
129+
<javadoc.excludes>io.jooby.internal</javadoc.excludes>
131130
</properties>
132131

133132
<modules>
@@ -878,7 +877,7 @@
878877

879878
<!-- Sonatype OSS release -->
880879
<profile>
881-
<id>sonatype-oss-release</id>
880+
<id>central</id>
882881
<build>
883882
<plugins>
884883
<!-- Source -->

0 commit comments

Comments
 (0)