-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
104 lines (80 loc) · 2.6 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
buildscript {
repositories {
// Add here whatever repositories you're already using
mavenCentral()
}
dependencies {
classpath("ch.epfl.scala:gradle-bloop_2.12:1.6.2") // suffix is always 2.12, weird
}
}
plugins {
id("ai.acyclic.scala2-conventions")
id("ai.acyclic.publish-conventions")
}
val vs = versions()
val shapelessV = "2.3.10"
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
allprojects {
dependencies {
constraints {
implementation("com.chuusai:shapeless_${vs.scala.binaryV}:${shapelessV}")
}
}
}
subprojects {
publishing {
val whitelist = setOf(":prover-commons:core", ":prover-commons:meta2", ":macro", ":core")
val _path = project.path
if (whitelist.contains(_path)) {
publications {
create<MavenPublication>("maven") {
pom {
licenses {
license {
name.set("Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0")
}
}
name.set("shapesafe")
description.set(
"SHAPE/S∀F∃: static prover/type-checker for N-D array programming in Scala," + " a use case of intuitionistic type theory"
)
val github = "https://github.com/tribbloid"
val repo = github + "/shapesafe"
url.set(repo)
developers {
developer {
id.set("tribbloid")
name.set("Peng Cheng")
url.set(github)
}
}
scm {
connection.set("scm:git@github.com:tribbloid/shapesafe")
url.set(repo)
}
}
}
}
}
else {
logger.warn("`${_path}` is not intended to be published")
}
}
}
idea {
module {
excludeDirs = excludeDirs + files(
// apache spark
"warehouse",
"splain", "prover-commons"
)
}
}