You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,11 +50,14 @@ Then, you can use the versions.yaml in the `generate-project` command:
50
50
-`--develocity-url`: Specify Develocity URL
51
51
-`--versions-file`: Path to a custom YAML file with dependency versions
52
52
-`--project-name`: Name of the project
53
+
-`--output-dir`: Output directory for the generated project. For `kts` and `groovy`, files are written directly there. For `both`, `project_kts` and `project_groovy` subdirectories are created inside it.
53
54
-`--room-database`: Enable Room database generation (default: false). Only for Android projects.
54
55
-`--android-kotlin-multiplatform-library`: For Android projects, generate Android library modules with `com.android.kotlin.multiplatform.library` instead of `com.android.library` (default: false).
55
56
56
57
Android projects use the default AGP version from `Versions()` unless you override it in `--versions-file`.
57
58
59
+
By default, projects are generated under `projects_generated/<projectName>/project_kts` or `project_groovy`. When `--output-dir` is provided, single-language projects are written directly to that directory.
60
+
58
61
#### Example: Generate a project with custom options
59
62
```bash
60
63
./projectGenerator generate-project --shape rhombus --modules 50 --layers 4 --language both --type jvm --classesModule 10 --classesModuleType random --typeOfStringResources large --generateUnitTest --gradle gradle_8_9 --develocity --versionsFile ./my_versions.yaml
@@ -75,7 +78,7 @@ ProjectGenerator(
75
78
layers =5,
76
79
generateUnitTest =true,
77
80
gradle =GradleWrapper(Gradle.GRADLE_9_3_1),
78
-
path= file.path
81
+
projectRootPath= file.path
79
82
).write()
80
83
81
84
```
@@ -121,6 +124,17 @@ Two projects will be generated using Kotlin DSL and Groovy
0 commit comments