-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
58 lines (51 loc) · 1.27 KB
/
build.gradle
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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'ch.epfl.scala:gradle-bloop_2.13:1.5.3-28-373a64c9'
}
}
apply plugin: "maven-publish"
apply plugin: "scala"
apply plugin: "bloop"
version = "0.3.3"
group = "vv-ab"
ext {
additionalCompileOptions = [
"-no-indent",
"-feature",
"-Ycheck-all-patmat",
]
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.scala-lang:scala3-library_3:3.2.0"
testImplementation "org.scalatest:scalatest_3:3.2.14"
testImplementation "org.scalatestplus:junit-4-13_3:3.2.12.0"
}
compileScala {
scalaCompileOptions.additionalParameters = additionalCompileOptions
}
compileTestScala {
scalaCompileOptions.additionalParameters = additionalCompileOptions
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/vv-ab/compilersandbox")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}