-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
31 lines (31 loc) · 957 Bytes
/
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
plugins {
kotlin("jvm")
// Apply the java-library plugin because we dont need a Main-Class (plugin loader loads the correct class.)
`java-library`
}
repositories {
mavenCentral()
gradlePluginPortal()
// flatDir {
// dirs("../outputDir/API/")
// }
}
dependencies {
compileOnly(kotlin("stdlib"))
compileOnly(project(":exampleAPI"))
compileOnly("org.apache.commons:commons-math3:3.6.1")
compileOnly("com.google.guava:guava:31.1-jre")
}
// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks {
// make it output to the shared output directory to make it easier to run it with the plugin (the example program uses the loader to load from ./ by default unless you specify)
jar {
destinationDirectory.set(file("../plugins/"))
archiveFileName.set("examplePlugins.jar")
}
}