Comments (10)
Can you share a small build script to reproduce the issue? Thanks.
from gradle-download-task.
Sure. It is here:
https://github.com/paulocoutinhox/android-downloader-test
I created a simple empty activity project on Android Studio and add your plugin and error happen.
To make it work, i need change Kotlin from 1.7.21 to 1.7.10 here:
https://github.com/paulocoutinhox/android-downloader-test/blob/main/app/build.gradle#L4
from gradle-download-task.
The error message says plugin dependency must include a version number for this source
. I don't see a version number in your example build script. Did you try to add one?
from gradle-download-task.
I also found this thread on Stackoverflow here:
https://stackoverflow.com/questions/73657158/gradle-plugin-must-not-include-version
The last comment might be interesting.
from gradle-download-task.
Hi,
It works now with:
KOTLIN_VERSION = "1.7.20"
id "de.undercouch.download" version "5.3.0"
But generate a second problem:
Certificate for <abc.s3.amazonaws.com> doesn't match any of the subject alternative names: [*.s3.amazonaws.com, s3.amazonaws.com]
from gradle-download-task.
I update my sample project to you test if is a plugin bug.
from gradle-download-task.
I'm not sure what is causing this. It must be some kind of issue with the org.jetbrains.kotlin.android
plugin. If I remove this plugin from the main build.gradle
file and explicitly specify the version number in the subproject's build file, then everything works correctly:
build.gradle:
plugins {
id 'com.android.application' version '7.4.0' apply false
id 'com.android.library' version '7.4.0' apply false
- id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
+ // id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
}
app/build.gradle:
plugins {
id 'com.android.application'
- id 'org.jetbrains.kotlin.android'
+ id 'org.jetbrains.kotlin.android' version '1.7.21'
id "de.undercouch.download" version "5.3.0"
}
Also, if I try to download the file from a simple project that does not include the org.jetbrains.kotlin.android
plugin, it also works OK. So, from what I can tell, this is not a bug in gradle-download-task. I suggest filing this issue either in the Gradle repository or in the org.jetbrains.kotlin.android
project.
I'm closing this issue, as there is nothing I can do here. Let me know if you need anything else.
from gradle-download-task.
I don't know why it is happening too, but a lot of Java projects have this too, example for aws sdk:
aws/aws-sdk-java-v2#1786
To do a workaround i set:
acceptAnyCertificate true
from gradle-download-task.
@paulocoutinhox Facing the same ssl issue. I'm pretty new with gradle and was wondering where must I add your fix so that it works? Thanks!
I'm talking about your last comment:
acceptAnyCertificate true
from gradle-download-task.
Hi @prasannjeet,
I put inside my task. Example:
task downloadUbookLibraryFile(type: Download) {
src fileURL
dest new File("mylib.tar.gz")
tempAndMove true
onlyIfModified true
overwrite false
acceptAnyCertificate true
downloadTaskDir "/tmp/xyz/cache"
}
from gradle-download-task.
Related Issues (20)
- Could not find method src() on extension 'download' HOT 2
- Download Task with Private Repo HOT 5
- Explicit file naming for src property HOT 1
- Only if Modified Recipe to then run Zip or other methods HOT 6
- Documentation unclear about `useETag` HOT 2
- Does plugin support to download file from local a relative file? HOT 6
- Configuration-cache-safe use of download and verify extensions HOT 14
- responseInterceptor missing HOT 3
- Support progress bar when executing task via IntelliJ HOT 1
- How to send Post Body Parameter (data) HOT 4
- Downloading from Internal Repo using Token HOT 10
- untar and unxz HOT 1
- SSLPeerUnverifiedException jfrog-prod-usw2-shared-oregon-main.s3.amazonaws.com HOT 7
- query parameters in src url HOT 2
- Download plugin doesn't encoded files HOT 2
- Allow `src` to take `URI` objects HOT 1
- Cached download should be ignored if URL changes HOT 4
- Can download task add new property to avoid directly throw exception? HOT 7
- Bad request after redirect HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-download-task.