Skip to content

Commit

Permalink
Add AGP model based gradle init template
Browse files Browse the repository at this point in the history
  • Loading branch information
eskatos committed Nov 15, 2024
1 parent 616954f commit d691016
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/reference/build-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ Example: `gradle init -Dorg.gradle.buildinit.specs=<plugin-id-1:version>,<plugin

## Android

`gradle init -Dorg.gradle.buildinit.specs=org.gradle.experimental.android-ecosystem-init:0.1.32`
`gradle init -Dorg.gradle.buildinit.specs=org.gradle.experimental.android-ecosystem-init:0.1.33`

There are three build samples you can choose from.
There are four build samples you can choose from.

By default, this generates a project like [gradle/declarative-samples-android-app](https://github.com/gradle/declarative-samples-android-app).
By default, this generates a project like [gradle/declarative-samples-android-app](https://github.com/gradle/declarative-samples-android-app) which is based on the prototype plugins. You can also generate a single Android application build with an empty Activity or basic Activity.

You can also generate a single Android application build with an empty Activity or basic Activity.
It can also generate a project like [gradle/declarative-samples-agp-app](https://github.com/gradle/declarative-samples-agp-app) which is based on the Official Android Software Types Preview.

## Java

`gradle init -Dorg.gradle.buildinit.specs=org.gradle.experimental.jvm-ecosystem-init:0.1.32`
`gradle init -Dorg.gradle.buildinit.specs=org.gradle.experimental.jvm-ecosystem-init:0.1.33`

This init sample asks no questions and generates a project using Java like [gradle/declarative-samples-java-app](https://github.com/gradle/declarative-samples-java-app).

## Kotlin

`gradle init -Dorg.gradle.buildinit.specs=org.gradle.experimental.kmp-ecosystem-init:0.1.32`
`gradle init -Dorg.gradle.buildinit.specs=org.gradle.experimental.kmp-ecosystem-init:0.1.33`

This init sample asks no questions and generates a project using Kotlin like [gradle/declarative-samples-kotlin-app](https://github.com/gradle/declarative-samples-kotlin-app).

0 comments on commit d691016

Please sign in to comment.