Skip to content

Commit 30ee6c0

Browse files
committed
add source version and more gradle code
1 parent 1f0ea7a commit 30ee6c0

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

annotationprocessor/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
apply plugin: 'java'
2+
apply plugin: 'com.github.dcendents.android-maven' // jitpack.io
3+
4+
group='com.github.quarkworks' // jitpack.io
25

36
dependencies {
47
compile fileTree(dir: 'libs', include: ['*.jar'])
@@ -9,4 +12,4 @@ dependencies {
912
}
1013

1114
sourceCompatibility = 1.7
12-
targetCompatibility = 1.7
15+
targetCompatibility = 1.7

annotationprocessor/src/main/java/com/quarkworks/android/realmtypesafequery/AnnotationProcessor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
import javax.annotation.processing.AbstractProcessor;
1818
import javax.annotation.processing.RoundEnvironment;
19+
import javax.annotation.processing.SupportedSourceVersion;
20+
import javax.lang.model.SourceVersion;
1921
import javax.lang.model.element.Element;
2022
import javax.lang.model.element.Modifier;
2123
import javax.lang.model.element.TypeElement;
@@ -26,6 +28,7 @@
2628
import io.realm.annotations.Ignore;
2729

2830
//@AutoService(Processor.class) this causes some compiler error so we are now doing this by hand
31+
@SupportedSourceVersion(SourceVersion.RELEASE_7)
2932
public class AnnotationProcessor extends AbstractProcessor {
3033

3134
@Override

annotations/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
apply plugin: 'java'
2+
apply plugin: 'com.github.dcendents.android-maven' // jitpack.io
3+
4+
group='com.github.quarkworks' // jitpack.io
25

36
dependencies {
47
compile fileTree(dir: 'libs', include: ['*.jar'])

0 commit comments

Comments
 (0)