forked from aPureBase/KGraphQL
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
38 lines (33 loc) · 883 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
plugins {
id("com.github.ben-manes.versions") version "0.39.0"
id("org.jetbrains.kotlinx.kover") version "0.5.0"
id("com.vanniktech.maven.publish") version "0.19.0"
id("org.jetbrains.dokka") version "1.4.32"
kotlin("jvm") version "1.6.0"
`maven-publish`
}
allprojects {
repositories {
mavenCentral()
}
}
subprojects {
group = "org.sangeet"
version = version
}
publishing {
repositories {
maven {
val releasesRepoUrl = layout.buildDirectory.dir("$buildDir/repos/releases")
val snapshotsRepoUrl = layout.buildDirectory.dir("$buildDir/repos/snapshots")
url =
if ((version as String).endsWith("SNAPSHOT")) uri(snapshotsRepoUrl)
else uri(releasesRepoUrl)
}
}
}
tasks {
wrapper {
distributionType = Wrapper.DistributionType.ALL
}
}