-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
83 lines (66 loc) · 2.33 KB
/
build.gradle.kts
File metadata and controls
83 lines (66 loc) · 2.33 KB
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
80
81
82
/*
* Copyright 2023-2025 Chartboost, Inc.
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file.
*/
import java.io.ByteArrayOutputStream
import java.time.Instant
import java.time.format.DateTimeFormatter
import java.util.TimeZone
plugins {
kotlin("jvm") version "1.9.21"
kotlin("plugin.serialization") version "1.9.20"
id("com.jfrog.artifactory") version "4.32.0"
id("maven-publish")
id("com.google.dagger.hilt.android") version "2.51" apply false
}
fun getShortGitCommitHash(): String {
val stdout = ByteArrayOutputStream()
exec {
commandLine = listOf("git", "rev-parse", "--short", "HEAD")
standardOutput = stdout
}
return stdout.toString().trim()
}
buildscript {
val kotlinVersion by extra("1.9.21")
repositories {
gradlePluginPortal()
google()
mavenCentral()
gradlePluginPortal()
maven("https://cboost.jfrog.io/artifactory/private-chartboost-core/") {
credentials {
username = System.getenv("JFROG_USER")
password = System.getenv("JFROG_PASS")
}
}
maven("https://cboost.jfrog.io/artifactory/chartboost-core/")
}
dependencies {
classpath("com.android.tools:r8:8.3.37")
classpath("com.android.tools.build:gradle:8.2.2")
classpath("com.vanniktech:gradle-android-apk-size-plugin:0.4.0")
classpath("com.getkeepsafe.dexcount:dexcount-gradle-plugin:4.0.0")
classpath("com.google.gms:google-services:4.4.1")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.9")
classpath("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
classpath("com.google.firebase:firebase-appdistribution-gradle:4.2.0")
classpath("org.jfrog.buildinfo:build-info-extractor-gradle:4.32.0")
classpath("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("com.google.dagger:hilt-android-gradle-plugin:2.38.1")
}
}
allprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class.java).configureEach {
kotlinOptions {
jvmTarget = "17"
}
}
repositories {
google()
mavenCentral()
}
}