-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParserMob.gradle.kts
More file actions
42 lines (35 loc) · 1.17 KB
/
Copy pathParserMob.gradle.kts
File metadata and controls
42 lines (35 loc) · 1.17 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
/*
* Copyright (c) 2020 Mustafa Ozhan. All rights reserved.
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
libs.plugins.apply {
alias(kotlinMultiplatform).apply(false)
alias(mavenPublish).apply(false)
alias(kover)
}
}
allprojects {
project.dependencyLocking.lockAllConfigurations()
apply(plugin = rootProject.libs.plugins.kover.get().pluginId).also {
rootProject.dependencies.add("kover", project(path))
}
// Group + POM metadata + Central Portal config come from gradle.properties (read by
// com.vanniktech.maven.publish). Only the version is dynamic (git commit count).
version = ProjectSettings.getVersionName(project)
repositories {
google()
mavenCentral()
}
tasks.withType<KotlinCompile> {
compilerOptions {
allWarningsAsErrors = true
}
}
}
// Resolved version, read by CI to tag the release. The VERSION_NAME= prefix keeps it parseable
// even when Gradle writes build-scan output to the same stream.
tasks.register("printVersion") {
val projectVersion = version.toString()
doLast { println("VERSION_NAME=$projectVersion") }
}