forked from EvidentSolutions/apina
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (50 loc) · 1.52 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
59
60
61
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import pl.allegro.tech.build.axion.release.domain.TagNameSerializationConfig
import pl.allegro.tech.build.axion.release.domain.VersionConfig
plugins {
id("pl.allegro.tech.build.axion-release") version "1.4.1"
kotlin("jvm") version "1.3.21" apply false
}
val kotlinVersion by extra("1.3.21") // same as above :(
val junitVersion = "5.4.0"
configure<VersionConfig> {
tag(closureOf<TagNameSerializationConfig> {
prefix = "v"
versionSeparator = ""
})
}
configure(allprojects) {
group = "fi.evident.apina"
this.version = rootProject.scmVersion.version
repositories {
jcenter()
}
configurations.all {
resolutionStrategy.eachDependency {
when (requested.name) {
"junit-jupiter-api" -> useVersion(junitVersion)
"junit-jupiter-engine" -> useVersion(junitVersion)
}
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
}
tasks.register("publish") {
group = "publishing"
description = "Publishes all artifacts"
dependsOn(tasks.findByPath(":apina-gradle:publishPlugins"))
dependsOn(tasks.findByPath(":apina-core:bintrayUpload"))
dependsOn(tasks.findByPath(":manual:publishGhPages"))
}