0
私は次のタスクがあります、私は私のGradleのコマンドを実行するとGradleタスクで端末コマンドをどのように実行しますか?
task installMavenLocal(type: Upload) {
description "Installs the artifacts to the local Maven repository."
configuration = configurations['archives']
repositories {
mavenDeployer {
repository url: repositories.mavenLocal().url
}
}
}
私は、次のgradle installMavenLocal -x:test:packageRelease
を行うには、開発者が追加する必要がないように私は上記のタスクにそのコマンドを追加することができます方法はあり-x:test:packageRelease
と私はタスクを行うときに実行されますか?