-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
60 lines (46 loc) · 1.51 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
plugins {
id("java")
id("idea")
id("eclipse")
}
group = "com.kpi.scql"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11
dependencies {
val jcTools = System.getenv("JC_HOME_TOOLS") + "/lib/tools.jar"
val jcSimulator = System.getenv("JC_HOME_SIMULATOR") + "/lib/api_classic.jar"
implementation(files(jcTools))
implementation(files(jcSimulator))
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
implementation("org.apache.commons:commons-lang3:3.14.0")
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.javadoc {
// Set the source for Javadoc generation
source = sourceSets.main.get().allJava
// Set the classpath for the Javadoc generation
classpath = sourceSets.main.get().compileClasspath
// Configure additional Javadoc options here if needed
options {
// Set the title of the generated documentation
title = "SCQL Interpreter"
// Configure other options as needed
encoding = "UTF-8"
memberLevel = JavadocMemberLevel.PUBLIC
// Add other Javadoc options if required
}
}
// Add a custom task to generate the Javadoc jar
tasks.register<Jar>("javadocJar") {
dependsOn(tasks.javadoc)
from(tasks.javadoc.get().destinationDir)
archiveClassifier.set("javadoc")
}
tasks.test {
useJUnitPlatform()
}