GeezerVison is showing github.com — add gradle files for tests · HomHomLin/objectbox-java@b76db3c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .gitignore -20Lines changed: 0 additions & 20 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -18,24 +18,10 @@ gradle.properties |
18 | 18 | build.properties |
19 | 19 | local.properties |
20 | 20 |
|
21 | | -### CMake build files |
22 | | -CMakeFiles/ |
23 | | -CMakeCache.txt |
24 | | -Makefile |
25 | | -*.cmake |
26 | | -.externalNativeBuild |
27 | | -cmake-build-debug/ |
28 | | -# used by build.sh script |
29 | | -cbuild/ |
30 | | - |
31 | 21 | # Native libs |
32 | 22 | objectbox*.dll |
33 | 23 | libobjectbox*.so |
34 | 24 |
|
35 | | -### Build script |
36 | | -/Release/ |
37 | | -/Debug/ |
38 | | - |
39 | 25 | ### Test DB files |
40 | 26 | data.mdb |
41 | 27 | lock.mdb |
@@ -44,7 +30,6 @@ jni-unit-test-db/ |
44 | 30 | test-db64/ |
45 | 31 | perf-test-db/ |
46 | 32 | perf-test-db64/ |
47 | | -tests/test-entity-annotations/objectbox/ |
48 | 33 |
|
49 | 34 | ## Backups |
50 | 35 | .gitignore~ |
@@ -53,8 +38,3 @@ default.json.bak |
53 | 38 |
|
54 | 39 | # Java crash reports |
55 | 40 | hs_err_pid*.log |
56 | | - |
57 | | -# Misc |
58 | | -callgrind.out.* |
59 | | -/captures/ |
60 | | -valgrind.log |
Collapse file
Copy file name to clipboard +20Lines changed: 20 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +apply plugin: 'java' |
| 2 | + |
| 3 | +uploadArchives.enabled = false |
| 4 | + |
| 5 | +targetCompatibility = '1.7' |
| 6 | +sourceCompatibility = '1.7' |
| 7 | + |
| 8 | +dependencies { |
| 9 | + compile project(':objectbox-java') |
| 10 | + compile 'org.greenrobot:essentials:3.0.0-RC1' |
| 11 | + |
| 12 | + // Right now, test sources are in src/main not src/test |
| 13 | + compile 'junit:junit:4.12' |
| 14 | +} |
| 15 | + |
| 16 | +test { |
| 17 | + // This is pretty useless now because it floods console with warnings about internal Java classes |
| 18 | + // However we might check from time to time, also with Java 9. |
| 19 | + // jvmArgs '-Xcheck:jni' |
| 20 | +} |
Collapse file
Copy file name to clipboard +12Lines changed: 12 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +apply plugin: 'java' |
| 2 | + |
| 3 | +uploadArchives.enabled = false |
| 4 | + |
| 5 | +sourceCompatibility = 1.7 |
| 6 | +targetCompatibility = 1.7 |
| 7 | + |
| 8 | +dependencies { |
| 9 | + compile project(':objectbox-java') |
| 10 | + compile project(':objectbox-java-api') |
| 11 | + testCompile 'junit:junit:4.12' |
| 12 | +} |