pushtorefresh / storio

Reactive API for SQLiteDatabase and ContentResolver.
Apache License 2.0
2.55k stars 182 forks source link

Part1: Gradle wrapper 4.10.2, build gradle tools 3.2.1 and kotlin 1.2.71 #894

Closed nikitin-da closed 6 years ago

nikitin-da commented 6 years ago

https://docs.gradle.org/current/release-notes.html https://developer.android.com/studio/releases/gradle-plugin https://github.com/JetBrains/kotlin/releases

artem-zinnatullin commented 6 years ago
> Task :storio-sqlite-annotations-processor-test:javaPreCompileReleaseUnitTest
Annotation processors must be explicitly declared now.  The following dependencies on the compile classpath are found to contain annotation processor.  Please add them to the testAnnotationProcessor configuration.
  - storio-sqlite-annotations-processor.jar (project :storio-sqlite-annotations-processor)
  - auto-service-1.0-rc4.jar (com.google.auto.service:auto-service:1.0-rc4)
  - auto-value-1.3.jar (com.google.auto.value:auto-value:1.3)
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior.  Note that this option is deprecated and will be removed in the future.
nikitin-da commented 6 years ago

Compile-testing unable to find resources classes in class loader for now( I don't find similar issue in their repo and epoxy doesn't use corresponded gradle version yet

artem-zinnatullin commented 6 years ago

Uhhhh, damn AGP…

There is an option for android resources, but I don't see that for regular resources

Can you try enabling android one?

https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.TestOptions.UnitTestOptions.html

Like that:

android {
  testOptions {
    unitTests {
     includeAndroidResources true
    }
  }
}
artem-zinnatullin commented 6 years ago

As an alternative, we can actually move it to android resources, like: src/main|test/resources/raw/…

nikitin-da commented 6 years ago

Closed via #897