-
Notifications
You must be signed in to change notification settings - Fork 47
/
build.gradle.kts
60 lines (50 loc) · 1.38 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
@file:Suppress("UnstableApiUsage")
import com.strumenta.antlrkotlin.gradle.ext.mavenRepositoryName
import com.strumenta.antlrkotlin.gradle.ext.mavenRepositoryUrl
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
plugins {
alias(libs.plugins.researchgate.release)
id("com.vanniktech.maven.publish") apply false
}
allprojects {
group = "com.strumenta"
apply(plugin = "com.vanniktech.maven.publish")
// Allow publishing to a private Maven repository, other than to Maven Central
val privateRepoUrl = mavenRepositoryUrl()
if (privateRepoUrl != null) {
extensions.configure<PublishingExtension>("publishing") {
repositories {
maven {
name = mavenRepositoryName() ?: "PrivateNexus"
url = uri(privateRepoUrl)
isAllowInsecureProtocol = true
}
}
}
}
}
subprojects {
tasks.withType<Test>().all {
testLogging {
showStandardStreams = true
showExceptions = true
exceptionFormat = TestExceptionFormat.FULL
}
}
}
release {
buildTasks = listOf(
":antlr-kotlin-runtime:publishAllPublicationsToMavenCentralRepository",
":antlr-kotlin-target:publishAllPublicationsToMavenCentralRepository",
":antlr-kotlin-gradle-plugin:publishPlugins"
)
git {
requireBranch = ""
pushToRemote = "origin"
}
}
tasks {
wrapper {
distributionType = Wrapper.DistributionType.ALL
}
}