Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
import org.gradle.plugins.ide.idea.model.IdeaModel
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile
plugins {
kotlin("jvm") apply false
id("org.jetbrains.dokka") version "1.5.0" apply false
idea
}
version = "6.0.1"
buildDir = file("build/gradle")
val kotlinVersion: String by project
subprojects {
buildDir = File(rootProject.buildDir, path.substring(1).replace(':', '/'))
group = "org.jclasslib"
version = rootProject.version
repositories {
flatDir {
dirs = setOf(file("lib"), file("$rootDir/lib-compile"))
}
maven("https://maven.ej-technologies.com/repository") {
content {
includeGroup("com.install4j")
}
}
maven("https://jitpack.io") {
content {
includeGroup("com.github.ingokegel")
}
}
maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") {
content {
includeGroup("org.jetbrains.kotlinx")
}
}
mavenCentral()
}
pluginManager.withPlugin("kotlin") {
configure<JavaPluginExtension> {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
dependencies {
add("testImplementation", "org.testng:testng:6.8.8")
}
tasks.withType<Test>().configureEach {
useTestNG()
}
val javaHome = the<JavaToolchainService>()
.launcherFor(the<JavaPluginExtension>().toolchain)
.get()
.metadata
.installationPath
.toString()
tasks.withType<KotlinJvmCompile>().configureEach {
kotlinOptions {
languageVersion = "1.5"
apiVersion = "1.5"
jvmTarget = "11"
jdkHome = javaHome
}
}
}
apply(plugin = "idea")
configure<IdeaModel> {
module {
inheritOutputDirs = true
isDownloadJavadoc = true
isDownloadSources = true
}
}
}
tasks {
getByName<Wrapper>("wrapper") {
gradleVersion = "7.1"
distributionType = Wrapper.DistributionType.ALL
}
register("dist") {
dependsOn(":data:dist", ":browser:dist", ":agent:dist")
}
register<Delete>("clean") {
dependsOn(":installer:clean", ":data:clean", ":browser:clean")
delete(externalLibsDir)
}
}
idea {
module {
name = "root"
excludeDirs = files("build", "dist", "media").files + excludeDirs
}
}