Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ buildscript {

dependencies {
// ...
classpath 'com.appswithlove.updraft:updraft:2.2.9'
classpath 'com.appswithlove.updraft:updraft:2.3.0'
}
}
```
Expand All @@ -32,7 +32,7 @@ or

```kotlin
plugins {
id("com.appswithlove.updraft") version "2.2.9"
id("com.appswithlove.updraft") version "2.3.0"
}
```

Expand Down Expand Up @@ -114,7 +114,7 @@ buildscript {
// ...
}
dependencies {
classpath 'com.appswithlove.updraft:updraft:2.2.9'
classpath 'com.appswithlove.updraft:updraft:2.3.0'
// ...
}
}
Expand Down
42 changes: 0 additions & 42 deletions build.gradle

This file was deleted.

21 changes: 21 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
buildscript {
repositories {
maven("https://plugins.gradle.org/m2/")
mavenCentral()
}
dependencies {
classpath(libs.dokka.gradle.plugin)
}
}

plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.updraft) apply false
alias(libs.plugins.maven.publish) apply false
alias(libs.plugins.gradle.publish) apply false
alias(libs.plugins.coveralls)
alias(libs.plugins.kotlin.jvm) apply false
id("signing")
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

GROUP=com.appswithlove.updraft
POM_ARTIFACT_ID=updraft
VERSION_NAME=2.2.9
VERSION_NAME=2.3.0

POM_NAME=updraft-plugin-android
POM_DESCRIPTION=This is a gradle Android plugin for automated uploads to Updraft
Expand Down
41 changes: 41 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[versions]
agp = "8.11.1"
kotlin = "2.2.0"
composeBom = "2025.10.00"
activityCompose = "1.11.0"
coreKtx = "1.17.0"
lifecycleRuntimeKtx = "2.9.4"
cglibNodep = "3.3.0"
dokkaGradlePlugin = "2.0.0"
junit = "4.13.2"
updraft = "2.2.9"
maven-publish = "0.34.0"
gradle-publish = "0.16.0"
Comment thread
yannickpulver marked this conversation as resolved.
Outdated
coveralls = "2.4.0"

[libraries]
compose-bom = { module = "androidx.compose:compose-bom", version.ref = "composeBom" }
activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activityCompose" }
core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" }
lifecycle-runtime-ktx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
material = { module = "androidx.compose.material:material" }
ui = { module = "androidx.compose.ui:ui" }
ui-tooling = { module = "androidx.compose.ui:ui-tooling" }
ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }
cglib-nodep = { module = "cglib:cglib-nodep", version.ref = "cglibNodep" }
dokka-gradle-plugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokkaGradlePlugin" }
gradle = { module = "com.android.tools.build:gradle", version.ref = "agp" }
gradle-api = { module = "com.android.tools.build:gradle-api", version.ref = "agp" }
junit = { module = "junit:junit", version.ref = "junit" }
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" }

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
updraft = { id = "com.appswithlove.updraft", version.ref = "updraft" }
maven-publish = { id = "com.vanniktech.maven.publish", version.ref = "maven-publish" }
gradle-publish = { id = "com.gradle.plugin-publish", version.ref = "gradle-publish" }
coveralls = { id = "com.github.kt3k.coveralls", version.ref = "coveralls" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Oct 20 07:59:33 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
56 changes: 0 additions & 56 deletions lib/build.gradle

This file was deleted.

75 changes: 75 additions & 0 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import com.vanniktech.maven.publish.GradlePlugin
import com.vanniktech.maven.publish.JavadocJar
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile

plugins {
`java-gradle-plugin`
alias(libs.plugins.maven.publish)
alias(libs.plugins.gradle.publish)
kotlin("jvm")
}

dependencies {
implementation(gradleApi())
testImplementation(gradleTestKit())
testRuntimeOnly(libs.cglib.nodep)
implementation(libs.kotlin.gradle.plugin)
implementation(libs.gradle)
implementation(libs.gradle.api)
implementation(libs.kotlin.stdlib)
}

tasks.withType<GenerateModuleMetadata>().configureEach {
enabled = false
}

tasks.withType<Test>().configureEach {
testLogging {
events("passed", "skipped", "failed", "standardOut", "standardError")
}
}

tasks.withType<KotlinJvmCompile>().configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
}
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

kotlin {
jvmToolchain(11)
}

mavenPublishing {
configure(GradlePlugin(javadocJar = JavadocJar.Javadoc(), sourcesJar = true))
}

val pluginId: String = findProperty("GROUP") as String? ?: ""
val pluginName: String = findProperty("POM_NAME") as String? ?: ""
val pluginDescription: String = findProperty("POM_DESCRIPTION") as String? ?: ""
val pluginVersion: String = findProperty("VERSION_NAME") as String? ?: ""
val pluginWebsite: String = findProperty("POM_URL") as String? ?: ""
val pluginVcsUrl: String = findProperty("POM_SCM_URL") as String? ?: ""

pluginBundle {
website = pluginWebsite
vcsUrl = pluginVcsUrl

plugins {
create("updraft") {
id = pluginId
displayName = pluginName
description = pluginDescription
version = pluginVersion
tags = listOf("updraft", "android")
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading