forked from JetBrains/Arend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
96 lines (82 loc) · 2.41 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
plugins {
java
idea
`java-library`
`maven-publish`
}
var annotationsVersion: String by rootProject.ext
var protobufVersion: String by rootProject.ext
var antlrVersion: String by rootProject.ext
annotationsVersion = "24.0.1"
protobufVersion = "3.24.0"
antlrVersion = "4.10"
allprojects {
group = "org.arend"
version = "1.9.0"
repositories {
mavenCentral()
}
apply {
plugin("java")
plugin("idea")
}
java {
// toolchain.languageVersion.set(JavaLanguageVersion.of(17))
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
idea {
module {
outputDir = file("$buildDir/classes/java/main")
testOutputDir = file("$buildDir/classes/java/test")
}
}
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
options.isDeprecation = true
options.release.set(17)
// options.compilerArgs.add("-Xlint:unchecked")
}
}
subprojects {
apply {
plugin("maven-publish")
plugin("java-library")
}
java {
withSourcesJar()
// Enable on-demand
// withJavadocJar()
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = this@subprojects.group.toString()
version = this@subprojects.version.toString()
artifactId = this@subprojects.name
from(components["java"])
pom {
url.set("https://arend-lang.github.io")
licenses {
license {
name.set("Apache-2.0")
url.set("https://github.com/JetBrains/Arend/blob/master/LICENSE")
}
}
}
}
}
}
}
tasks.withType<Wrapper> {
gradleVersion = "8.5"
}
dependencies {
testImplementation("org.jetbrains:annotations:$annotationsVersion")
testImplementation("org.antlr:antlr4-runtime:$antlrVersion")
testImplementation(project(":base"))
testImplementation(project(":parser"))
testImplementation(project(":cli"))
testImplementation("junit:junit:4.13.1")
testImplementation("org.hamcrest:hamcrest-library:1.3")
}