forked from tuProlog/2p-kt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
78 lines (70 loc) · 2.58 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import io.github.gciatto.kt.mpp.ProjectExtensions.jsProjects
import io.github.gciatto.kt.mpp.ProjectExtensions.jvmProjects
import io.github.gciatto.kt.mpp.ProjectExtensions.ktProjects
import java.time.Duration
plugins {
kotlin("multiplatform")
id("io.github.gciatto.kt-mpp-pp")
id("org.danilopianini.git-sensitive-semantic-versioning")
id("de.marcphilipp.nexus-publish")
}
group = "it.unibo.tuprolog"
gitSemVer {
minimumVersion.set("0.1.0")
developmentIdentifier.set("dev")
noTagIdentifier.set("archeo")
developmentCounterLength.set(2) // How many digits after `dev`
version = computeGitSemVer() // THIS IS MANDATORY, AND MUST BE LAST IN THIS BLOCK!
}
subprojects {
group = rootProject.group
version = rootProject.version
}
println("${rootProject.name} version: $version")
kotlinMultiplatform {
projectLongName.set("2P-Kt")
preventPublishingOfRootProject.set(true)
jvmOnlyProjects("examples", "ide", "parser-jvm", "ide-plp")
jsOnlyProjects("parser-js")
otherProjects("documentation")
ktProjects(allOtherSubprojects)
developer("Giovanni Ciatto", "giovanni.ciatto@unibo.it", "http://about.me/gciatto")
developer("Enrico Siboni", "enrico.siboni3@studio.unibo.it")
developer("Paolo Verdini", "paolo.verdini@studio.unibo.it")
developer("Manuel Bonarrigo", "manuel.bonarrigo@studio.unibo.it")
developer("Sofia Montebugnoli", "sofia.montebugnoli2@studio.unibo.it")
developer("Davide Greco", "davide.greco4@studio.unibo.it")
developer("Silvia Lanzoni", "silvia.lanzoni5@studio.unibo.it")
developer("Lorenzo Rizzato", "lorenzo.rizzato@studio.unibo.it")
developer("Jason Dellaluce", "jason.dellaluce@studio.unibo.it")
}
kotlin {
sourceSets {
val commonMain by getting {
ktProjects.filter { it.name !in setOf("test-solve") }.forEach {
dependencies {
api(project(":${it.name}"))
}
}
}
val jvmMain by getting {
jvmProjects.filter { it.name !in setOf("examples") }.forEach {
dependencies {
api(project(":${it.name}"))
}
}
}
}
}
(ktProjects + jvmProjects + jsProjects + rootProject).forEach {
it.apply(plugin = "de.marcphilipp.nexus-publish")
it.nexusPublishing {
repositories {
sonatype {
username.set(project.property("mavenUsername").toString())
password.set(project.property("mavenPassword").toString())
}
}
clientTimeout.set(Duration.ofMinutes(10))
}
}