-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
62 lines (51 loc) · 1.57 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
62
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.9.24" apply false
}
val asmVersion by extra("9.5") // duplicated from above
val junitVersion = "5.7.2"
configure<VersionConfig> {
tag(closureOf<TagNameSerializationConfig> {
prefix = "v"
versionSeparator = ""
})
}
configure(allprojects) {
group = "fi.evident.apina"
this.version = rootProject.scmVersion.version
repositories {
mavenCentral()
}
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:publish"))
dependsOn(tasks.findByPath(":apina-cli:publish"))
dependsOn(tasks.findByPath(":manual:publishGhPages"))
}