2018年4月23日月曜日

Spring Tool SuiteにBuildshipをインストール

以前にSTS Gradleをインストールしたけど、"Migration from STS Gradle to Buildship" The STS Gradle plugin is under minimal maintenance and may be discontinued in the future. A document explaining the migration process from STS Gradle to Buildship can be found here ってメッセージが表示した。

Spring Tool SuiteにGradleのプラグインをインストール

なので、Buildshipをインストールすることにした。


hereのリンク(Migration guide from STS Gradle to Buildship)をクリックすると、STS GradleからBuildshipの移行方法が書いてあるサイトが表示される。
移行の手順は次のように書いてある。



まず、手順1にしたがって、最新のBuildshipをインストールすることにする。
(手順1 Install the latest Buildship release. Download locations and instructions are in the Buildship)


メニューバーの 「Help」-「Install New Software...」を選択。


Work with: に http://download.eclipse.org/buildship/updates/e47/releases/2.x を入力して、「Add...」をクリック。

Name: に Buildship 2.x
Location: に http://download.eclipse.org/buildship/updates/e47/releases/2.x を入力して、「OK」をクリック。

Buildship: Eclipse Plug-ins for Gradle がチェックの状態で「Next」をクリック。


「Next」をクリック。

I accept the terms of the license agreement を選択して、「Finish」をクリック。

Spring Tool Suiteの再起動が促されるので、「Restart Now」をクリック。

Spring Tool Suiteの再起動後に、またも、Migration from STS Gradle to Buildship のダイアログが表示されたが、「OK」をクリックして進める。


手順2は、移行したいプロジェクトのパスを控えておきなさいとのことだけど、その気はないので、この手順は実施しない。
(手順2 Note the root module location of the project you want to migrate.)


手順3は、ワークスペースからプロジェクトをファイルを残して削除する、とのことなので、指示通りにする。


(手順3 Delete the projects from the workspace without physically removing them from the file system.)


プロジェクトを選択して、ポップアップメニューを表示して、「Delete」をクリック。

Delete project contents on disk [cannot be undone] はチェックせず、「OK」をクリック。


手順4から8は、元々あったプロジェクトをBuildshipに移行する手順であるが、今回それは行わないので、その次の手順のSTS Gradleのアンインストールを行う。
(手順4 Open the Buildship import wizard and specify the root project location.
Optionally set the advanced options (Gradle version, JVM argument, etc.) and check the project import preview.
手順5 Click Finish to execute the import.
手順6 When prompted, choose Overwrite Eclipse descriptors to perform a clean import, or choose the Keep option to preserve the plugin configuration.
手順7 Disable the hidden file filter in the Project/Package Explorer view.
手順8 For all projects, delete the .settings/gradle folder (it contains configuration data from STS Gradle).)

STS Gradleのアンインストールの手順は次のとおり。
これも、Migration guide from STS Gradle to Buildship のサイトに書いてある。

メニューバーの「Spring Tool Suite」-「Spring Tool Suiteについて」をクリック。

「Installation Details」をクリック。

「Installed Software」タブの「Gradle IDE」をクリック。

「Finish」をクリック。

Gradle IDEのアンインストールを反映させるためにSpring Tool Suiteの再起動が促されるので「Restart Now」をクリック。これで終わり。

0 件のコメント :

コメントを投稿