Skip to content

Commit

Permalink
Glimpse: Migrate generatebp to plugin declaration
Browse files Browse the repository at this point in the history
Change-Id: I3b5df33f1fdd4d7af046b427c098ce1a51209096
  • Loading branch information
luca020400 committed Jan 10, 2025
1 parent b9001bd commit 24ea58d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
16 changes: 1 addition & 15 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,14 @@
* SPDX-License-Identifier: Apache-2.0
*/

import org.lineageos.generatebp.GenerateBpPlugin
import org.lineageos.generatebp.GenerateBpPluginExtension
import org.lineageos.generatebp.models.Module

plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.parcelize)
}

apply {
plugin<GenerateBpPlugin>()
}

buildscript {
repositories {
maven("https://raw.githubusercontent.com/lineage-next/gradle-generatebp/v1.21/.m2")
}

dependencies {
classpath("org.lineageos:gradle-generatebp:+")
}
alias(libs.plugins.lineageos.generatebp)
}

android {
Expand Down
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2024 The LineageOS Project
* SPDX-FileCopyrightText: 2023-2025 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/

Expand All @@ -8,4 +8,5 @@ plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.lineageos.generatebp) apply false
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ recyclerview = "1.3.2"
recyclerview-selection = "1.1.0"
viewpager2 = "1.1.0"
zoomimage = "1.0.2"
generateBp = "+"

[libraries]
androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
Expand Down Expand Up @@ -55,3 +56,4 @@ zoomimage-view-glide = { group = "io.github.panpf.zoomimage", name = "zoomimage-
android-application = { id = "com.android.application", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }
lineageos-generatebp = { id = "org.lineageos.generatebp", version.ref = "generateBp" }
4 changes: 3 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2024 The LineageOS Project
* SPDX-FileCopyrightText: 2023-2025 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/

Expand All @@ -14,8 +14,10 @@ pluginManagement {
}
mavenCentral()
gradlePluginPortal()
maven("https://raw.githubusercontent.com/lineage-next/gradle-generatebp/v1.21/.m2")
}
}

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
Expand Down

0 comments on commit 24ea58d

Please sign in to comment.