buildship gradle プラグインを使用して、パラメーターを必要とする gradle プロジェクトを Eclipse ネオンにインポートしています。build.gradle
パラメータ付きのフラグメントを次に示します。
repositories {
maven {
url repoUrl
credentials {
username repoUsername
password repoPassword
}
}
}
通常、gradle コマンド ラインにパラメータを追加するだけです。
gradlew eclipse build -PrepoUrl="http://localhost:9080/nexus/content/groups/internal/" -PrepoUsername="user1" -PrepoPassword="xxxxxxxxxx"
Buildship プラグインを使用してプロジェクトをインポートするときに、パラメーターを渡す可能性が見つかりません。ネオンリリースでバージョン 2.0.0 を使用しています。GRADLE_OPTS
プラグインで使用されていないように見えるため、環境変数を設定しても役に立ちません。
資格情報がプロジェクト ファイルに保存されないように、外部から変数を設定する別の方法はありますか?