-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
executable file
·50 lines (42 loc) · 1.4 KB
/
build.gradle
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
apply from: rootProject.file("scripts/custom/versions.gradle")
apply plugin: 'io.github.gradle-nexus.publish-plugin'
buildscript {
ext {
kotlin_version = "2.0.0"
}
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.ben-manes:gradle-versions-plugin:0.51.0"
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.51.1'
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
}
}
allprojects {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { url 'https://jitpack.io' }
}
}
subprojects {
tasks.withType(KotlinCompile).configureEach {
// Kotlin compiler JVM-target version (as string)
kotlinOptions {
// jvmTarget = JavaVersion.VERSION_11
freeCompilerArgs += ["-module-name", project.path.replace(':', '')]
}
// Kotlin compiler JVM-target version (as int)
// sourceCompatibility = JavaVersion.VERSION_11
// targetCompatibility = JavaVersion.VERSION_11
}
}
apply from: "${rootDir}/scripts/publishing/publish-root.gradle"