-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
44 lines (36 loc) · 1.4 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.0" apply false
kotlin("multiplatform") version "1.6.0" apply false
kotlin("plugin.serialization") version "1.6.0" apply false
kotlin("kapt") version "1.6.10" apply false
id("org.jetbrains.dokka") version "1.6.10"
id("com.google.protobuf") version "0.8.18" apply false
id("org.owasp.dependencycheck") version "6.5.3" apply false
}
group = "org.github.mkep-dev.p-logi-k"
subprojects {
group = "org.github.mkep-dev.p-logi-k"
plugins.withType(MavenPublishPlugin::class).whenPluginAdded {
configure<PublishingExtension> {
repositories {
maven {
url = uri("https://maven.pkg.github.com/mkep-dev/p-logi-k")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}
}
}
version = if(project.hasProperty("release.version")){
project.findProperty("release.version").toString()
}else{
"0.0.0-SNAPSHOT"
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
}