File tree Expand file tree Collapse file tree 4 files changed +89
-0
lines changed
src/test/java/tests/i3756 Expand file tree Collapse file tree 4 files changed +89
-0
lines changed Original file line number Diff line number Diff line change 1+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
2+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" >
4+ <modelVersion >4.0.0</modelVersion >
5+ <parent >
6+ <groupId >io.jooby</groupId >
7+ <artifactId >modules</artifactId >
8+ <version >3.11.1</version >
9+ </parent >
10+ <artifactId >jooby-apt-tests</artifactId >
11+ <dependencies >
12+ <dependency >
13+ <groupId >${project.groupId} </groupId >
14+ <artifactId >jooby</artifactId >
15+ </dependency >
16+ <!-- force apt to be built first -->
17+ <dependency >
18+ <groupId >${project.groupId} </groupId >
19+ <artifactId >jooby-apt</artifactId >
20+ <scope >runtime</scope >
21+ </dependency >
22+ </dependencies >
23+ <build >
24+ <plugins >
25+ <plugin >
26+ <groupId >org.apache.maven.plugins</groupId >
27+ <artifactId >maven-compiler-plugin</artifactId >
28+ <version >${maven-compiler-plugin.version} </version >
29+
30+ <executions >
31+ <execution >
32+ <id >default-testCompile</id >
33+ <configuration >
34+ <proc >full</proc >
35+ <annotationProcessorPaths >
36+ <path >
37+ <groupId >io.jooby</groupId >
38+ <artifactId >jooby-apt</artifactId >
39+ <version >${project.version} </version >
40+ </path >
41+ </annotationProcessorPaths >
42+ <compilerArgs >
43+ <arg >-processor</arg >
44+ <arg >io.jooby.apt.JoobyProcessor</arg >
45+ </compilerArgs >
46+ </configuration >
47+ </execution >
48+ </executions >
49+ </plugin >
50+ </plugins >
51+ </build >
52+ </project >
Original file line number Diff line number Diff line change 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 tests .i3756 ;
7+
8+ import io .jooby .annotation .GET ;
9+ import io .jooby .annotation .Path ;
10+
11+ @ Path ("/C3756" )
12+ public class C3756 {
13+ private final S3756 s3756 ;
14+
15+ public C3756 (S3756 s3756 ) {
16+ super ();
17+ this .s3756 = s3756 ;
18+ }
19+
20+ @ GET
21+ public String handle () {
22+ s3756 .accept ("hello" );
23+ return "hello" ;
24+ }
25+ }
Original file line number Diff line number Diff line change 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 tests .i3756 ;
7+
8+ public interface S3756 {
9+
10+ void accept (String s );
11+ }
Original file line number Diff line number Diff line change 9393 <module >jooby-stork</module >
9494
9595 <module >jooby-gradle-setup</module >
96+ <module >jooby-apt-tests</module >
9697 </modules >
9798
9899</project >
You can’t perform that action at this time.
0 commit comments