-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
57 lines (47 loc) · 1.24 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
plugins {
application
`maven-publish`
}
group = "com.github.firmwehr"
version = "SNAPSHOT"
repositories {
mavenLocal()
mavenCentral()
maven("https://jitpack.io")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
application {
mainClass.set("com.github.firmwehr.fiascii.GentleCompiler")
applicationDefaultJvmArgs = listOf("--enable-preview")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
withSourcesJar()
}
dependencies {
implementation("com.github.Firmwehr:jFirm:62c1a55f72")
// https://mvnrepository.com/artifact/com.google.auto.service/auto-service
implementation("com.google.auto.service:auto-service:1.0.1")
annotationProcessor("com.google.auto.service:auto-service:1.0.1")
}
// set encoding for all compilation passes
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("--enable-preview")
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
jvmArgs("--enable-preview")
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = groupId
artifactId = artifactId
version = "1.0"
from(components["java"])
}
}
}