Skip to content

Commit 3f2d666

Browse files
authored
Merge pull request #272 from SentryMan/javalin-annotations
Move javalin annotations out of Generator
2 parents 63f371e + 4bfbcbe commit 3f2d666

File tree

7 files changed

+16
-7
lines changed

7 files changed

+16
-7
lines changed

http-generator-javalin/src/main/java/io/avaje/http/javalin/After.java renamed to http-api/src/main/java/io/avaje/http/api/javalin/After.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.avaje.http.javalin;
1+
package io.avaje.http.api.javalin;
22

33
import static java.lang.annotation.ElementType.METHOD;
44
import static java.lang.annotation.RetentionPolicy.SOURCE;

http-generator-javalin/src/main/java/io/avaje/http/javalin/Before.java renamed to http-api/src/main/java/io/avaje/http/api/javalin/Before.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.avaje.http.javalin;
1+
package io.avaje.http.api.javalin;
22

33
import static java.lang.annotation.ElementType.METHOD;
44
import static java.lang.annotation.RetentionPolicy.SOURCE;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module io.avaje.http.api {
22

33
exports io.avaje.http.api;
4+
exports io.avaje.http.api.javalin;
45
exports io.avaje.http.api.context;
56
exports io.avaje.http.api.spi;
67
}

http-generator-javalin/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323
<version>${avaje.prisms.version}</version>
2424
<scope>provided</scope>
2525
</dependency>
26+
<dependency>
27+
<groupId>io.avaje</groupId>
28+
<artifactId>avaje-http-api</artifactId>
29+
<version>${project.version}</version>
30+
<optional>true</optional>
31+
<scope>provided</scope>
32+
</dependency>
2633

2734
</dependencies>
2835

http-generator-javalin/src/main/java/io/avaje/http/generator/javalin/JavalinProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
import java.io.IOException;
44

5+
import io.avaje.http.api.javalin.After;
6+
import io.avaje.http.api.javalin.Before;
57
import io.avaje.http.generator.core.BaseProcessor;
68
import io.avaje.http.generator.core.ControllerReader;
79
import io.avaje.http.generator.core.PlatformAdapter;
810
import io.avaje.http.generator.core.ProcessingContext;
9-
import io.avaje.http.javalin.After;
10-
import io.avaje.http.javalin.Before;
1111
import io.avaje.prism.GeneratePrism;
1212

1313
@GeneratePrism(value = After.class, superClass = AbstractCustomMethodPrism.class)

http-generator-javalin/src/main/java/module-info.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
requires java.sql;
77

88
// SHADED: All content after this line will be removed at package time
9-
requires transitive io.avaje.http.generator.core;
9+
requires io.avaje.http.generator.core;
10+
requires io.avaje.http.api;
1011
requires static io.avaje.prism;
1112
}

tests/test-javalin-jsonb/src/main/java/org/example/myapp/web/test/TestController2.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import org.example.myapp.web.ServerType;
99

1010
import io.avaje.http.api.*;
11-
import io.avaje.http.javalin.After;
12-
import io.avaje.http.javalin.Before;
11+
import io.avaje.http.api.javalin.After;
12+
import io.avaje.http.api.javalin.Before;
1313
import io.javalin.http.Context;
1414

1515
@Path("test/")

0 commit comments

Comments
 (0)