-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
55 lines (49 loc) · 1.38 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.20"
}
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
google()
}
dependencies {
classpath(kotlin("gradle-plugin", version = libs.versions.kotlinVersion.get()))
classpath ("com.vanniktech:gradle-maven-publish-plugin:0.28.0")
classpath ("org.jetbrains.dokka:dokka-gradle-plugin:1.5.30")
}
}
subprojects {
group = project.properties["GROUP"].toString()
version = project.properties["VERSION_NAME"].toString()
repositories {
mavenCentral()
gradlePluginPortal()
maven(url = "https://oss.sonatype.org/content/repositories/snapshots/")
}
tasks.withType<KotlinCompile>().configureEach {
compilerOptions {
jvmTarget = JvmTarget.JVM_11
}
}
tasks.withType<JavaCompile>().configureEach {
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()
javaCompiler.set(
javaToolchains.compilerFor {
languageVersion.set(JavaLanguageVersion.of(11))
}
)
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
dependencies {
implementation(kotlin("stdlib"))
}