Using Gradle to Create A Multi-Project Solution with a Consolidated ScalaDocs Task
In this video, I show you, step-by-step, how to set up a combined Scala & Java solution that contains multiple sub-projects. Yep, this video is a bit long, but here's what it covers:
- - - - - - Steps Shown In This Video - - - - - -
1. Initialize new project with Gradle (gradle init)
1.1 Create project directory
1.2 Change to project directory
1.3 Run gradle init
2. Configure project
2.1 Edit build.gradle
2.1.1 Add plugins as required
2.1.2 Set repository
2.1.3 Add dependencies as required
2.1.4 If project is application, set "mainClassName" property
2.2 Edit settings.gradle
2.2.1 Set "rootProject.name " property
2.3 Create gradle.properties
2.3.1 Add properties for use in build.gradle file as required
3. Add code
4. Add unit tests(s)
5. Test the build
5.1 Fix problems
6. Create solution directory
7. Move project directory to solution directory
8. Duplicate project directory as required (sub-projects)
8.1 Configure each sub-project
9. Initialize solution project with gradle init
10. Configure solution project
11. Test the build from root project
11.1 Fix problems
12 Add task to gradle.build to create consolidated ScalaDocs
You can download the project structure for Linux/Unix here: https://github.com/pulpfreepress/Gradle-Scala-Multiproject-Structure
Видео Using Gradle to Create A Multi-Project Solution with a Consolidated ScalaDocs Task автора JavaScript Бизнес Стартап: Как Начать
Видео Using Gradle to Create A Multi-Project Solution with a Consolidated ScalaDocs Task автора JavaScript Бизнес Стартап: Как Начать
Информация
4 декабря 2023 г. 18:19:07
01:50:32
Похожие видео