-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
41 lines (34 loc) · 843 Bytes
/
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
import org.gradle.api.tasks.*
import org.gradle.kotlin.dsl.*
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.net.URI
plugins {
kotlin("jvm")
id("maven-publish")
id("pl.allegro.tech.build.axion-release")
}
subprojects {
apply(plugin = "java-library")
apply(plugin = "maven-publish")
apply(plugin = "pl.allegro.tech.build.axion-release")
group = "com.github.certora.collections"
version = scmVersion.version
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(property("javaVersion").toString()))
}
}
tasks.register("buildAndPublishToMavenLocal") {
dependsOn("build")
dependsOn("publishToMavenLocal")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
allWarningsAsErrors = true
freeCompilerArgs += "-Xcontext-receivers"
}
}
}