-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
79 lines (67 loc) · 2.64 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
plugins {
// https://kotlinlang.org/docs/releases.html
kotlin("jvm") version "1.9.21"
`java-gradle-plugin`
`maven-publish`
// https://plugins.gradle.org/plugin/com.gradle.plugin-publish
id("com.gradle.plugin-publish") version "1.2.1"
}
group = "ch.hippmann"
version = "0.3.3"
repositories {
mavenLocal()
mavenCentral()
google()
}
gradlePlugin {
website.set("https://github.com/chippmann/androidpublisher")
vcsUrl.set("https://github.com/chippmann/androidpublisher.git")
plugins {
create("androidpublisher") {
id = "ch.hippmann.androidpublisher"
displayName = "Publish apps to the Google Play Store"
description = "Gradle plugin for publishing apps to the Google Play Store"
tags.set(listOf("kotlin", "android", "playstore"))
implementationClass = "ch.hippmann.androidpublisher.plugin.AndroidPublisherPlugin"
}
}
}
kotlin {
jvmToolchain(17)
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("gradle-plugin"))
implementation(kotlin("gradle-plugin-api"))
// https://developer.android.com/studio/releases/gradle-plugin
compileOnly("com.android.tools.build:gradle:8.2.0")
// https://search.maven.org/artifact/com.google.apis/google-api-services-androidpublisher
implementation("com.google.apis:google-api-services-androidpublisher:v3-rev20231115-2.0.0")
// TODO: remove once com.google.apis:google-api-services-androidpublisher:v3-rev20231115-2.0.0 is updated
// needed because of a security vulnerability or the guava version defined in com.google.apis:google-api-services-androidpublisher:v3-rev20231115-2.0.0
implementation("com.google.guava:guava:33.0.0-jre")
// Required to read the credentials from the credentials json file. Library suggested in the corresponding deprecation notes of google-api-services-androidpublisher
// https://github.com/googleapis/google-auth-library-java/releases
implementation("com.google.auth:google-auth-library-oauth2-http:1.20.0")
// https://github.com/doyaaaaaken/kotlin-csv/releases
implementation("com.github.doyaaaaaken:kotlin-csv-jvm:1.9.2")
}
tasks {
build {
finalizedBy(publishToMavenLocal)
}
}
publishing {
publications {
// this is only used for publishing locally.
@Suppress("UNUSED_VARIABLE")
val androidpublisherPlugin by creating(MavenPublication::class) {
pom {
groupId = "${project.group}"
artifactId = project.name
version = "${project.version}"
}
from(components.getByName("java"))
}
}
}