pl.oakfusion.downloadfilewithhttpget
Owner: Maksymilian Szczypkowski
Plugin for OakForge project, using downloadURL and downloadDeployTokenfrom properties of project where it is applied to send get request with headerDEPLOY-TOKEN: ${downloadDeployToken} and save response in file named same aswhat is included in downloadURL after last /
https://github.com/MaksymilianJava
Sources: https://github.com/MaksymilianJava
Version 0.4-SNAPSHOT (latest)
0.4-SNAPSHOT
Created 15 February 2021.
Plugin for OakForge project. Uses project properties with names starting with downloadURL and downloadDeployToken to send http get request under given url and save response in a file named same as part of url after last / if there is nothing after last / then file is named "New File.txt". To correctly map url and deploy token second part of names after downloadURL and downloadDeployToken should be same(e.g. downloadURLMyFile, downloadDeployTokenMyFile).It is possible to save multiple responses, just add as many pairs of properties with url and token as you want.
Add this plugin to your build using the plugins DSL:
plugins {
id("pl.oakfusion.downloadfilewithhttpget") version "0.4-SNAPSHOT"
}
See also:
-
The legacy method of plugin application.
buildscript { repositories { gradlePluginPortal() } dependencies { classpath("pl.oakfusion:DownloadFileHttpGetPlugin:0.4-SNAPSHOT") } } apply(plugin = "pl.oakfusion.downloadfilewithhttpget")
- Applying plugins to all subprojects .