3

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プラグインで使用されていないように見えるため、環境変数を設定しても役に立ちません。

資格情報がプロジェクト ファイルに保存されないように、外部から変数を設定する別の方法はありますか?

4

1 に答える 1