forked from alexanderpann/mps-checkin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
41 lines (36 loc) · 1.12 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
plugins {
id("com.specificlanguages.mps") version "1.2.2"
`maven-publish`
}
repositories {
maven(url = "https://projects.itemis.de/nexus/content/repositories/mbeddr")
mavenCentral()
// JitPack should come last since it will build things on demand
maven(url = "https://jitpack.io")
}
dependencies {
"mps"("com.jetbrains:mps:2021.1.3@zip")
}
group = "com.github.mps.apann"
version = "0.1.0"
publishing {
publications {
register<MavenPublication>("mpsPlugin") {
from(components["mps"])
// Put resolved versions of dependencies into POM files
versionMapping { usage("java-runtime") { fromResolutionOf("generation") } }
}
}
repositories {
if (project.hasProperty("gpr.user")) {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/alexanderpann/mps-checkin")
credentials {
username = project.findProperty("gpr.user") as String?
password = project.findProperty("gpr.key") as String?
}
}
}
}
}