Skip to content

Commit 45de294

Browse files
committed
Remove snapshot dependency prefs
1 parent 553526a commit 45de294

File tree

5 files changed

+24
-57
lines changed

5 files changed

+24
-57
lines changed

AdaptiveUiCodelab/build.gradle

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,20 @@
1414
* limitations under the License.
1515
*/
1616

17-
plugins {
18-
id 'com.android.application' version "8.1.1" apply false
19-
id 'com.android.library' version "8.1.1" apply false
20-
id 'org.jetbrains.kotlin.android' version "1.9.10" apply false
17+
buildscript {
18+
repositories {
19+
google()
20+
mavenCentral()
21+
}
22+
dependencies {
23+
classpath "com.android.tools.build:gradle:8.1.1"
24+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10"
25+
}
2126
}
2227

23-
task clean(type: Delete) {
24-
delete rootProject.buildDir
28+
subprojects {
29+
repositories {
30+
google()
31+
mavenCentral()
32+
}
2533
}

AdaptiveUiCodelab/settings.gradle

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,5 @@
1414
* limitations under the License.
1515
*/
1616

17-
pluginManagement {
18-
repositories {
19-
gradlePluginPortal()
20-
google()
21-
mavenCentral()
22-
}
23-
}
24-
dependencyResolutionManagement {
25-
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
26-
repositories {
27-
google()
28-
mavenCentral()
29-
}
30-
}
3117
rootProject.name = "Reply"
3218
include ':app'

BasicLayoutsCodelab/build.gradle

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,18 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
buildscript {
17+
repositories {
18+
google()
19+
mavenCentral()
20+
}
21+
dependencies {
22+
classpath "com.android.tools.build:gradle:8.1.1"
23+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10"
24+
}
25+
}
1626

1727
plugins {
18-
id 'com.android.application' version '8.1.1' apply false
19-
id 'com.android.library' version '8.1.1' apply false
20-
id 'org.jetbrains.kotlin.android' version '1.9.10' apply false
2128
id 'com.diffplug.spotless' version '6.21.0'
2229
}
2330

BasicLayoutsCodelab/settings.gradle

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,5 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
pluginManagement {
17-
repositories {
18-
gradlePluginPortal()
19-
google()
20-
mavenCentral()
21-
}
22-
}
23-
dependencyResolutionManagement {
24-
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
25-
repositories {
26-
google()
27-
mavenCentral()
28-
}
29-
}
3016
rootProject.name = "MySoothe"
3117
include ':app'

ThemingCodelab/settings.gradle.kts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
val snapshotVersion : String? = System.getenv("COMPOSE_SNAPSHOT_ID")
1716

18-
pluginManagement {
19-
repositories {
20-
gradlePluginPortal()
21-
google()
22-
mavenCentral()
23-
}
24-
}
25-
dependencyResolutionManagement {
26-
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
27-
repositories {
28-
snapshotVersion?.let {
29-
println("https://androidx.dev/snapshots/builds/$it/artifacts/repository/")
30-
maven { url = uri("https://androidx.dev/snapshots/builds/$it/artifacts/repository/") }
31-
}
32-
33-
google()
34-
mavenCentral()
35-
}
36-
}
3717
rootProject.name = "Reply"
3818
include(":app")

0 commit comments

Comments
 (0)