Skip to content

Commit 455d8e8

Browse files
committed
Update wrapper and ename conventions -> defaults
1 parent 90ca805 commit 455d8e8

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/reference/software-features.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ In the future, additional types of software features will be added to Declarativ
4242

4343
## Shared Model Defaults
4444

45-
Shared Model Defaults are collections of settings that are applied to all projects in a build that use a given software type. They are shared across all projects in a build. These are declared by referencing the software type in the `conventions` block in the declarative settings file.
45+
Shared Model Defaults are collections of settings that are applied to all projects in a build that use a given software type. They are shared across all projects in a build. These are declared by referencing the software type in the `defaults` block in the declarative settings file.
4646

4747
For example, to declare that all projects that produce Java libraries should produce a library built for Java 11, the `javaLibrary` software type is configured in `settings.gradle.dcl`:
4848

4949
```kotlin
50-
conventions {
50+
defaults {
5151
javaLibrary {
5252
javaVersion = 11
5353
}

unified-prototype/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-8.10-20240703002818+0000-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-8.10-20240719001820+0000-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

unified-prototype/settings.gradle.dcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencyResolutionManagement {
2424

2525
rootProject.name = "unified-prototype"
2626

27-
conventions {
27+
defaults {
2828
androidLibrary {
2929
jdkVersion = 11
3030
compileSdk = 34

unified-prototype/unified-plugin/plugin-android/src/integTest/groovy/org/gradle/api/experimental/android/AndroidLibrarySpec.groovy

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AndroidLibrarySpec extends AbstractSpecification {
2727
"""
2828

2929
settingsFile << """
30-
conventions {
30+
defaults {
3131
androidLibrary {
3232
jdkVersion = 17
3333
compileSdk = 34
@@ -58,7 +58,7 @@ class AndroidLibrarySpec extends AbstractSpecification {
5858
"""
5959

6060
settingsFile << """
61-
conventions {
61+
defaults {
6262
androidLibrary {
6363
jdkVersion = 17
6464
compileSdk = 34
@@ -99,7 +99,7 @@ class AndroidLibrarySpec extends AbstractSpecification {
9999
"""
100100

101101
settingsFile << """
102-
conventions {
102+
defaults {
103103
androidLibrary {
104104
jdkVersion = 17
105105
compileSdk = 34

0 commit comments

Comments
 (0)