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)

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:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("pl.oakfusion.downloadfilewithhttpget:pl.oakfusion.downloadfilewithhttpget.gradle.plugin:0.4-SNAPSHOT")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("pl.oakfusion.downloadfilewithhttpget")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("pl.oakfusion.downloadfilewithhttpget:pl.oakfusion.downloadfilewithhttpget.gradle.plugin:0.4-SNAPSHOT")
      }
    }
    
    apply(plugin = "pl.oakfusion.downloadfilewithhttpget")
  • Applying plugins to all subprojects .