- 说明:自定义gradle插件封装
ext{
buildGroup = 'com.opensource.component'
buildVersion = '1.0.0-SNAPSHOT'
}
apply plugin: 'java'
apply plugin: 'com.opensource.publish'
buildscript {
repositories {
maven {
credentials {
username System.getenv("REPO_USER_NAME")
password System.getenv("REPO_PASSWORD")
}
url System.getenv("REPO_URL_RELEASE")
}
}
dependencies {
classpath 'com.opensource.gradle:gradle-plugin:+'
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
}
apply plugin: 'com.opensource.publish'
gradle -x test clean build uA