0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

JDKトラストストアに証明書をインポートしたとき、Gradleの実行に反映されない場合の対処法

0
Last updated at Posted at 2024-09-13

備忘録

Gradleで、自己署名証明書をサーバ証明書として持つNexus RepositoryにHTTPSでpublishする場合、Gradleを実行する端末のJDKのトラストストアにサーバ証明書をインポートする必要があります。

この際の注意点として、インポートの前にgradleコマンドを実行している場合、インポート後にgradle publishを実行しても、サーバ証明書のインポートは反映されません

Gradleを一度実行するとバックグラウンドのデーモンが起動し、デーモンの起動中はサーバ証明書のインポートが反映されないためです。

反映させるためには、以下のコマンドでGradleのデーモンを終了させる必要があります。

./gradlew --stop

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?