書きたいネタはあったんだけど毎回設定するのがめんどくさいのでメモしておきたい
TODO:後でVScodeとかでデバッグ実行できるようにしたい
リポジトリの作成
GUIでリポジトリを設定するのはめんどくさかったのでGithubCLIを使ってリポジトリは作成 結構これは簡単だった
❯ gh repo create qiita-java ? Visibility Public ? This will add an "origin" git remote to your local repository. Continue? Yes ✓ Created repository tukapai/qiita-java on GitHub ✓ Added remote https://github.com/tukapai/qiita-java.git
gradleを利用したいのでinitコマンドで初期化する。
❯ gradle init --type java-application Welcome to Gradle 7.0.1! Here are the highlights of this release: - File system watching enabled by default - Support for running with and building Java 16 projects - Native support for Apple Silicon processors - Dependency catalog feature preview For more details see https://docs.gradle.org/7.0.1/release-notes.html Starting a Gradle Daemon (subsequent builds will be faster) Select build script DSL: 1: Groovy 2: Kotlin Enter selection (default: Groovy) [1..2] 2 Select test framework: 1: JUnit 4 2: TestNG 3: Spock 4: JUnit Jupiter Enter selection (default: JUnit 4) [1..4] 4 Project name (default: qiita-java): Source package (default: qiita.java): > Task :init Get more help with your project: https://docs.gradle.org/7.0.1/samples/sample_building_java_applications.html BUILD SUCCESSFUL in 43s 2 actionable tasks: 2 executed