-
Notifications
You must be signed in to change notification settings - Fork 28
Conversation
should this go to |
c47c2d3
to
080b186
Compare
The CI says no:
I've had this problem locally too. Uncertain if we are using |
Test are running ok now, but we have a problem which is fixed on #170 :
|
…tead as Gradle 5 removes this property
From the build, we also need a
|
@mr-archano Looking at this. |
Correction, it's not just |
Current issue:
Looking into it it turns out that we have an outdated version of the Kotlin plugin which I presume didn't work with Gradle 5 |
🤞 |
I think that adding So it may be worth exploring a better alternative 🤔 |
The CI is failing because of the deprecation in Findbugs. Aka #94. I would suggest to handle that in a separate PR using Gradle 4.10 which would make this one easier. Wdyt? |
@tasomaniac I suggested the same to @pablisco, but I thought there was some problem with that anyway, given the build for #170 was failing too. @pablisco could you please give us an update when you manage? |
I believe the change in #170 may not be enough. |
Sorry, accidentally closed |
Got a fix on the findBugs problem: 4e5a6ed def fileTrees = sourceSet.output.classesDirs.collect { classesDir ->
project.fileTree(classesDir) {
builtBy(sourceSet.output)
include(includes)
}
}
if (fileTrees.isEmpty()) {
throw GradleException("No file tree from ${sourceSet} and filters: ${includes}")
} else if (fileTrees.size() == 1) {
fileTrees.first()
} else {
fileTrees.inject(fileTrees.head()) { result, current -> result + current }
} Why couldn't they be called |
Hmm, it seems to also fix the issues with |
Hurray 🎉 Ktlint is failing now because of Android tooling. Updating AGP version in test projects may help. |
Ok, it didn't work for |
@pablisco let's have a chat about this method, I don't know if you have checked when this was introduced, but that code was copy/pasted from the |
The code has changed but the reason hasn't, has it? |
Looked into what's wrong with ktlint. It is because of this issue JLLeitschuh/ktlint-gradle#201 My test upgrade caused the failure :) I guess that's for the better. Will update the tests in this branch. |
Regarding the time inflation we are observing, it was suggested on Gradle's Slack a possible solution involving making a snapshot of the |
@tasomaniac It's still failing on 7.0 🤔
|
I thought 7.0 bug was only for Android projects. We should then disable it completely. |
This is an experiment to see if we can upgrade to Gradle 5.
Locally the tests fail so it would be interesting to see if they work on CI