2017-07-29 10 views
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と私はタスクを行うときに実行されますか?

答えて

0

あなたは使用することができます

installMavenLocal.dependsOn.remove(tasks.getByPath(":test:packageRelease")) 
関連する問題