-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (52 loc) · 1.66 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
kotlin("jvm") version "1.6.20" apply false
}
allprojects {
group = "me.func"
version = "1.0-SNAPSHOT"
}
subprojects {
apply(plugin = "java")
apply(plugin = "org.jetbrains.kotlin.jvm")
dependencies {
implementation(kotlin("stdlib-jdk8"))
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks {
withType<Jar> { duplicatesStrategy = DuplicatesStrategy.INCLUDE }
withType<JavaCompile> { options.encoding = "UTF-8" }
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf(
"-Xlambdas=indy",
"-Xno-param-assertions",
"-Xno-receiver-assertions",
"-Xno-call-assertions",
"-Xbackend-threads=0",
"-Xuse-ir",
"-Xassertions=always-disable",
"-Xuse-fast-jar-file-system",
"-Xsam-conversions=indy",
"-Xcontext-receivers",
"-Xskip-prerelease-check"
)
}
}
}
repositories {
maven {
url = uri("https://repo.c7x.ru/repository/maven-public/")
credentials {
username = System.getenv("CRI_REPO_LOGIN") ?: System.getenv("CRISTALIX_REPO_USERNAME")
password = System.getenv("CRI_REPO_PASSWORD") ?: System.getenv("CRISTALIX_REPO_PASSWORD")
}
}
mavenCentral()
}
}