Skip to content

Commit

Permalink
Merge pull request #1 from extmkv/refactor
Browse files Browse the repository at this point in the history
Refactored plugin to AGP and mordern gradle
  • Loading branch information
extmkv authored Feb 6, 2024
2 parents 904e95b + c2b6641 commit a64b918
Show file tree
Hide file tree
Showing 24 changed files with 329 additions and 573 deletions.
28 changes: 0 additions & 28 deletions build.gradle

This file was deleted.

7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
plugins {
alias(libs.plugins.kotlin) apply false
alias(libs.plugins.application) apply false
alias(libs.plugins.library) apply false
alias(libs.plugins.androidGradleX) apply false
alias(libs.plugins.resourcePlaceholders) apply false
}
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# org.gradle.parallel=true
org.gradle.configuration-cache=true
android.useAndroidX=true
10 changes: 10 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[versions]
kotlin = "1.9.22"
androidGradle = "8.2.2"

[plugins]
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
application = { id = "com.android.application", version.ref = "androidGradle" }
library = { id = "com.android.library", version.ref = "androidGradle" }
androidGradleX = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
resourcePlaceholders = "pt.jcosta.resourceplaceholders:0.11.0"
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
42 changes: 0 additions & 42 deletions plugin/build.gradle

This file was deleted.

33 changes: 33 additions & 0 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
plugins {
id("java-gradle-plugin")
alias(libs.plugins.kotlin)
id("maven-publish")
id("com.gradle.plugin-publish") version "1.2.1"
}

group = "pt.jcosta.resourceplaceholders"
version = "0.11.0"

// Use java-gradle-plugin to generate plugin descriptors and specify plugin ids
gradlePlugin {
website = "https://github.com/timfreiheit/ResourcePlaceholdersPlugin"
vcsUrl = "https://github.com/timfreiheit/ResourcePlaceholdersPlugin.git"

plugins {
plugins.register("resource-placeholders") {
id = "pt.jcosta.resourceplaceholders"
implementationClass =
"de.timfreiheit.plugin.resourceplaceholders.ResourcePlaceholdersPlugin"
displayName = "ResourcePlaceholdersPlugin"
description =
"Gradle plugin which adds support for \${placeholder} manifestPlaceholders in Android resource files"
tags.set(listOf("android", "resource", "placeholders"))
}
}
}

dependencies {
implementation(gradleApi())
implementation(localGroovy())
implementation("com.android.tools.build:gradle:8.2.2")
}
Binary file removed plugin/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 0 additions & 5 deletions plugin/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

185 changes: 0 additions & 185 deletions plugin/gradlew

This file was deleted.

Loading

0 comments on commit a64b918

Please sign in to comment.