Skip to content

Commit a64b918

Browse files
authored
Merge pull request #1 from extmkv/refactor
Refactored plugin to AGP and mordern gradle
2 parents 904e95b + c2b6641 commit a64b918

24 files changed

Lines changed: 329 additions & 573 deletions

build.gradle

Lines changed: 0 additions & 28 deletions
This file was deleted.

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
plugins {
2+
alias(libs.plugins.kotlin) apply false
3+
alias(libs.plugins.application) apply false
4+
alias(libs.plugins.library) apply false
5+
alias(libs.plugins.androidGradleX) apply false
6+
alias(libs.plugins.resourcePlaceholders) apply false
7+
}

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@
1515
# When configured, Gradle will run in incubating parallel mode.
1616
# This option should only be used with decoupled projects. More details, visit
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18-
# org.gradle.parallel=true
18+
# org.gradle.parallel=true
19+
org.gradle.configuration-cache=true
20+
android.useAndroidX=true

gradle/libs.versions.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[versions]
2+
kotlin = "1.9.22"
3+
androidGradle = "8.2.2"
4+
5+
[plugins]
6+
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
7+
application = { id = "com.android.application", version.ref = "androidGradle" }
8+
library = { id = "com.android.library", version.ref = "androidGradle" }
9+
androidGradleX = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
10+
resourcePlaceholders = "pt.jcosta.resourceplaceholders:0.11.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

plugin/build.gradle

Lines changed: 0 additions & 42 deletions
This file was deleted.

plugin/build.gradle.kts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
plugins {
2+
id("java-gradle-plugin")
3+
alias(libs.plugins.kotlin)
4+
id("maven-publish")
5+
id("com.gradle.plugin-publish") version "1.2.1"
6+
}
7+
8+
group = "pt.jcosta.resourceplaceholders"
9+
version = "0.11.0"
10+
11+
// Use java-gradle-plugin to generate plugin descriptors and specify plugin ids
12+
gradlePlugin {
13+
website = "https://github.com/timfreiheit/ResourcePlaceholdersPlugin"
14+
vcsUrl = "https://github.com/timfreiheit/ResourcePlaceholdersPlugin.git"
15+
16+
plugins {
17+
plugins.register("resource-placeholders") {
18+
id = "pt.jcosta.resourceplaceholders"
19+
implementationClass =
20+
"de.timfreiheit.plugin.resourceplaceholders.ResourcePlaceholdersPlugin"
21+
displayName = "ResourcePlaceholdersPlugin"
22+
description =
23+
"Gradle plugin which adds support for \${placeholder} manifestPlaceholders in Android resource files"
24+
tags.set(listOf("android", "resource", "placeholders"))
25+
}
26+
}
27+
}
28+
29+
dependencies {
30+
implementation(gradleApi())
31+
implementation(localGroovy())
32+
implementation("com.android.tools.build:gradle:8.2.2")
33+
}
-57.5 KB
Binary file not shown.

plugin/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

plugin/gradlew

Lines changed: 0 additions & 185 deletions
This file was deleted.

0 commit comments

Comments
 (0)