Search Gradle plugins

pl.oakfusion.downloadfilewithhttpget

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.

Using the plugins DSL:

plugins {
  id("pl.oakfusion.downloadfilewithhttpget") version "0.4-SNAPSHOT"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("pl.oakfusion:DownloadFileHttpGetPlugin:0.4-SNAPSHOT")
  }
}

apply(plugin = "pl.oakfusion.downloadfilewithhttpget")

Using the plugins DSL:

plugins {
  id "pl.oakfusion.downloadfilewithhttpget" version "0.4-SNAPSHOT"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "pl.oakfusion:DownloadFileHttpGetPlugin:0.4-SNAPSHOT"
  }
}

apply plugin: "pl.oakfusion.downloadfilewithhttpget"

Learn how to apply plugins to subprojects