Skip to content

Commit

Permalink
Merge branch 'kotlin'
Browse files Browse the repository at this point in the history
  • Loading branch information
xhanin committed Jan 9, 2020
2 parents 4bd470f + cea30ff commit c21b784
Show file tree
Hide file tree
Showing 97 changed files with 1,407 additions and 97 deletions.
10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@
<artifactId>restx-factory</artifactId>
<version>${restx.version}</version>
</dependency>
<dependency>
<groupId>io.restx</groupId>
<artifactId>restx-factory-annotation-processor</artifactId>
<version>${restx.version}</version>
</dependency>
<dependency>
<groupId>io.restx</groupId>
<artifactId>restx-core</artifactId>
Expand Down Expand Up @@ -477,7 +482,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<version>3.7.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -542,6 +547,7 @@
<modules>
<module>restx-common</module>
<module>restx-factory</module>
<module>restx-factory-annotation-processor</module>
<module>restx-factory-testing</module>
<module>restx-barbarywatch</module>
<module>restx-classloader</module>
Expand Down Expand Up @@ -589,6 +595,8 @@
<module>restx-jongo-java8</module>
<module>restx-specs-tests-java8</module>
<module>restx-samplest-java8</module>
<module>restx-kotlin-compiler</module>
<module>restx-samplest-kotlin</module>
</modules>
</profile>
</profiles>
Expand Down
7 changes: 6 additions & 1 deletion restx-admin/md.restx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@
"@files": ["../restx.build.properties.json"]
},

"fragments": {
"maven": [
"classpath:///restx/build/fragments/maven/core-annotation-processing.xml"
]
},

"dependencies": {
"compile": [
"io.restx:restx-factory:${restx.version}",
"io.restx:restx-core:${restx.version}",
"io.restx:restx-security-basic:${restx.version}",
"io.restx:restx-core-annotation-processor:${restx.version}",
"io.restx:restx-webjars:${restx.version}"
]
}
Expand Down
1 change: 0 additions & 1 deletion restx-admin/module.ivy
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<dependency org="io.restx" name="restx-factory" rev="latest.integration" conf="default" />
<dependency org="io.restx" name="restx-core" rev="latest.integration" conf="default" />
<dependency org="io.restx" name="restx-security-basic" rev="latest.integration" conf="default" />
<dependency org="io.restx" name="restx-core-annotation-processor" rev="latest.integration" conf="default" />
<dependency org="io.restx" name="restx-webjars" rev="latest.integration" conf="default" />
</dependencies>
</ivy-module>
26 changes: 22 additions & 4 deletions restx-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,31 @@
<groupId>io.restx</groupId>
<artifactId>restx-security-basic</artifactId>
</dependency>
<dependency>
<groupId>io.restx</groupId>
<artifactId>restx-core-annotation-processor</artifactId>
</dependency>
<dependency>
<groupId>io.restx</groupId>
<artifactId>restx-webjars</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>io.restx</groupId>
<artifactId>restx-factory-annotation-processor</artifactId>
<version>${project.version}</version>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>io.restx</groupId>
<artifactId>restx-core-annotation-processor</artifactId>
<version>${project.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
2 changes: 1 addition & 1 deletion restx-annotation-processors-package/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<dependencies>
<dependency>
<groupId>io.restx</groupId>
<artifactId>restx-factory</artifactId>
<artifactId>restx-factory-annotation-processor</artifactId>
</dependency>
<dependency>
<groupId>io.restx</groupId>
Expand Down
7 changes: 6 additions & 1 deletion restx-apidocs/md.restx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@
"@files": ["../restx.build.properties.json"]
},

"fragments": {
"maven": [
"classpath:///restx/build/fragments/maven/core-annotation-processing.xml"
]
},

"dependencies": {
"compile": [
"io.restx:restx-factory:${restx.version}",
"io.restx:restx-core:${restx.version}",
"io.restx:restx-core-annotation-processor:${restx.version}",
"io.restx:restx-admin:${restx.version}",
"com.fasterxml.jackson.module:jackson-module-jsonSchema:${jackson.version}",
"io.restx:restx-webjars:${restx.version}"
Expand Down
1 change: 0 additions & 1 deletion restx-apidocs/module.ivy
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<dependencies>
<dependency org="io.restx" name="restx-factory" rev="latest.integration" conf="default" />
<dependency org="io.restx" name="restx-core" rev="latest.integration" conf="default" />
<dependency org="io.restx" name="restx-core-annotation-processor" rev="latest.integration" conf="default" />
<dependency org="io.restx" name="restx-admin" rev="latest.integration" conf="default" />
<dependency org="com.fasterxml.jackson.module" name="jackson-module-jsonSchema" rev="2.8.10" conf="default" />
<dependency org="io.restx" name="restx-webjars" rev="latest.integration" conf="default" />
Expand Down
26 changes: 22 additions & 4 deletions restx-apidocs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
<groupId>io.restx</groupId>
<artifactId>restx-core</artifactId>
</dependency>
<dependency>
<groupId>io.restx</groupId>
<artifactId>restx-core-annotation-processor</artifactId>
</dependency>
<dependency>
<groupId>io.restx</groupId>
<artifactId>restx-admin</artifactId>
Expand All @@ -37,4 +33,26 @@
<artifactId>restx-webjars</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>io.restx</groupId>
<artifactId>restx-factory-annotation-processor</artifactId>
<version>${project.version}</version>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>io.restx</groupId>
<artifactId>restx-core-annotation-processor</artifactId>
<version>${project.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ protected boolean processImpl(Set<? extends TypeElement> annotations, RoundEnvir

ImmutableList.Builder<AnnotationDescription> annotationDescriptionsBuilder = ImmutableList.builder();
for(AnnotationMirror methodAnnotation: annotation.methodElem.getAnnotationMirrors()) {
if ("org.jetbrains.annotations.NotNull".equals(methodAnnotation.getAnnotationType().toString())) {
continue;
}
AnnotationDescription annotationDescription = createAnnotationDescriptionFrom(methodAnnotation, annotation.methodElem);
annotationDescriptionsBuilder.add(annotationDescription);
}
Expand Down
6 changes: 6 additions & 0 deletions restx-core-java8/md.restx.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"java.version": "1.8"
},

"fragments": {
"maven": [
"classpath:///restx/build/fragments/maven/factory-annotation-processing.xml"
]
},

"dependencies": {
"compile": [
"io.restx:restx-factory:${restx.version}",
Expand Down
17 changes: 17 additions & 0 deletions restx-core-java8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,21 @@
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>io.restx</groupId>
<artifactId>restx-factory-annotation-processor</artifactId>
<version>${project.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
6 changes: 6 additions & 0 deletions restx-core/md.restx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"@files": ["../restx.build.properties.json"]
},

"fragments": {
"maven": [
"classpath:///restx/build/fragments/maven/factory-annotation-processing.xml"
]
},

"dependencies": {
"compile": [
"com.fasterxml.jackson.core:jackson-core:${jackson.version}",
Expand Down
17 changes: 17 additions & 0 deletions restx-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,21 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>io.restx</groupId>
<artifactId>restx-factory-annotation-processor</artifactId>
<version>${project.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
6 changes: 6 additions & 0 deletions restx-factory-admin/md.restx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"@files": ["../restx.build.properties.json"]
},

"fragments": {
"maven": [
"classpath:///restx/build/fragments/maven/core-annotation-processing.xml"
]
},

"dependencies": {
"compile": [
"io.restx:restx-factory:${restx.version}",
Expand Down
22 changes: 22 additions & 0 deletions restx-factory-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,26 @@
<artifactId>restx-webjars</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>io.restx</groupId>
<artifactId>restx-factory-annotation-processor</artifactId>
<version>${project.version}</version>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>io.restx</groupId>
<artifactId>restx-core-annotation-processor</artifactId>
<version>${project.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
41 changes: 41 additions & 0 deletions restx-factory-annotation-processor/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.restx</groupId>
<artifactId>restx-parent</artifactId>
<version>0.36-SNAPSHOT</version>
</parent>

<artifactId>restx-factory-annotation-processor</artifactId>
<name>restx-factory-annotation-processor</name>

<dependencies>
<dependency>
<groupId>io.restx</groupId>
<artifactId>restx-factory</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>
</plugins>
</build>
</project>
6 changes: 6 additions & 0 deletions restx-factory-testing/md.restx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"@files": ["../restx.build.properties.json"]
},

"fragments": {
"maven": [
"classpath:///restx/build/fragments/maven/factory-annotation-processing.xml"
]
},

"dependencies": {
"test": [
"io.restx:restx-factory:${restx.version}",
Expand Down
18 changes: 18 additions & 0 deletions restx-factory-testing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,22 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>io.restx</groupId>
<artifactId>restx-factory-annotation-processor</artifactId>
<version>${project.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
6 changes: 0 additions & 6 deletions restx-factory/md.restx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
"@files": ["../restx.build.properties.json"]
},

"fragments": {
"maven": [
"classpath:///restx/build/fragments/maven/annotation-processing-disable.xml"
]
},

"dependencies": {
"compile": [
"io.restx:restx-common:${restx.version}",
Expand Down
Loading

0 comments on commit c21b784

Please sign in to comment.