# gradle-runscript **Repository Path**: key232323/gradle-runscript ## Basic Information - **Project Name**: gradle-runscript - **Description**: Use groovy script file as a task,not as heavy as plugins. Support http server as a mirror to manage - **Primary Language**: Groovy - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 55 - **Forks**: 0 - **Created**: 2014-12-17 - **Last Updated**: 2025-01-08 ## Categories & Tags **Categories**: ci **Tags**: None ## README # you only need to apply one plugin, then just run script files like this: ```groovy buildscript { repositories { flatDir { name 'localRepository' } } repositories { localRepository { dirs '../local-repo' } } repositories { mavenCentral() } dependencies { classpath 'com.seg.gradle:runscript:1.0-SNAPSHOT' classpath 'com.github.kevinsawicki:http-request:5.6' } } apply plugin: 'runscript' runscript { // use a remote http mirror // runScriptMirror = 'http://localhost:8888' runScriptMirror = 'local' } task hello(type: com.seg.gradle.RunScriptTask){ script = 'script1' version = '1.1' params = [name: 'kerry'] callback = { println it } } ```