2 Star 0 Fork 0

丁永 / gradle-runscript

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

you only need to apply one plugin, then just run script files like this:

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
	}
}

空文件

简介

Use groovy script file as a task,not as heavy as plugins. Support http server as a mirror to manage 展开 收起
Groovy
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Groovy
1
https://gitee.com/key232323/gradle-runscript.git
git@gitee.com:key232323/gradle-runscript.git
key232323
gradle-runscript
gradle-runscript
master

搜索帮助

14c37bed 8189591 565d56ea 8189591