Skip to content

Commit

Permalink
feat: adjusted dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoso committed Dec 2, 2024
1 parent a43e835 commit c770185
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4.2.1
uses: actions/setup-java@v4.5.0
with:
java-version: '21'
distribution: 'temurin'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up JDK
uses: actions/setup-java@v4.2.1
uses: actions/setup-java@v4.5.0
with:
java-version: '21'
distribution: 'temurin'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: gradle/actions/wrapper-validation@v4

- name: Set up JDK
uses: actions/setup-java@v4.2.1
uses: actions/setup-java@v4.5.0
with:
java-version: '21'
distribution: 'temurin'
Expand Down
4 changes: 2 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins:
- - "@google/semantic-release-replace-plugin"
- replacements:
- files:
- "build.gradle"
- "build.gradle.kts"
from: "\\bversion = '.*'"
to: "version = '${nextRelease.version}'"
- files:
Expand All @@ -18,7 +18,7 @@ plugins:
publishCmd: "./gradlew publish --warn --stacktrace"
- - "@semantic-release/git"
- assets:
- "build.gradle"
- "build.gradle.kts"
- "*.md"
- "@semantic-release/github"
options:
Expand Down
8 changes: 4 additions & 4 deletions build-logic/convention/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ repositories {


dependencies {
implementation(libs.kotlin.gradle.plugin)
implementation(libs.android.gradle.plugin)
implementation(libs.dokka.plugin)
implementation(libs.kotlinGradlePlugin)
implementation(libs.gradle)
implementation(libs.dokkaGradlePlugin)
implementation(libs.org.jacoco.core)
}

gradlePlugin {
plugins {
register("publishingConventionPlugin") {
id = "android.maps.compose.PublishingConventionPlugin"
id = "android.maps.ktx.PublishingConventionPlugin"
implementationClass = "PublishingConventionPlugin"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ class PublishingConventionPlugin : Plugin<Project> {
pom {
name.set(project.name)
description.set("Jetpack Compose components for the Maps SDK for Android")
url.set("https://github.com/googlemaps/android-maps-compose")
url.set("https://github.com/googlemaps/android-maps-ktx")
scm {
connection.set("scm:[email protected]:googlemaps/android-maps-compose.git")
developerConnection.set("scm:[email protected]:googlemaps/android-maps-compose.git")
url.set("https://github.com/googlemaps/android-maps-compose")
connection.set("scm:[email protected]:googlemaps/android-maps-ktx.git")
developerConnection.set("scm:[email protected]:googlemaps/android-maps-ktx.git")
url.set("https://github.com/googlemaps/android-maps-ktx")
}
licenses {
license {
Expand Down
7 changes: 0 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ allprojects {
group = "com.google.maps.android"
version = "5.1.1"
val projectArtifactId by extra { project.name }
repositories {
google()
mavenCentral()
flatDir {
dirs("libs")
}
}
}

tasks.register<Delete>("clean") {
Expand Down
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ kotlinGradlePlugin = "1.9.20"
mockitoInline = "5.2.0"
mockitoKotlin = "2.2.0"
secretsGradlePlugin = "2.0.1"
org-jacoco-core = "0.8.11"
agp = "8.7.2"

[libraries]
androidMapsUtils = { group = "com.google.maps.android", name = "android-maps-utils", version.ref = "androidMapsUtils" }
Expand All @@ -40,6 +42,7 @@ mockitoInline = { group = "org.mockito", name = "mockito-inline", version.ref =
mockitoKotlin = { group = "com.nhaarman.mockitokotlin2", name = "mockito-kotlin", version.ref = "mockitoKotlin" }
playServicesMaps = { group = "com.google.android.gms", name = "play-services-maps", version.ref = "androidMapsSdk" }
secretsGradlePlugin = { module = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin", version.ref = "secretsGradlePlugin" }
org-jacoco-core = { module = "org.jacoco:org.jacoco.core", version.ref = "org-jacoco-core" }

[plugins]
androidGradlePlugin = { id = "com.android.tools.build:gradle", version = "8.2.2" }
Expand Down
2 changes: 1 addition & 1 deletion maps-ktx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
plugins {
id("com.android.library")
id("kotlin-android")
id("android.maps.ktx.PublishingConventionPlugin")
}

android {
Expand All @@ -29,7 +30,6 @@ android {

defaultConfig {
minSdk = libs.versions.androidMinSdk.get().toInt()
targetSdk = libs.versions.androidTargetSdk.get().toInt()
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}
Expand Down
1 change: 1 addition & 0 deletions maps-utils-ktx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
plugins {
id("com.android.library")
id("kotlin-android")
id("android.maps.ktx.PublishingConventionPlugin")
}

android {
Expand Down
21 changes: 19 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
pluginManagement {
includeBuild("build-logic")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}

rootProject.name = "android-maps-ktx"

include(":app")
include(":maps-ktx")
include(":maps-utils-ktx")
rootProject.name = "android-maps-ktx"
include(":maps-utils-ktx")

0 comments on commit c770185

Please sign in to comment.