apply plugin: "jacoco"
apply plugin: "idea"
+kotlin {
+ jvmToolchain(17)
+}
+
+java {
+ toolchain {
+ languageVersion.set(JavaLanguageVersion.of(17))
+ }
+}
+
idea {
project {
languageLevel = "17"
group = "net.pterodactylus"
version = "0.1"
-sourceCompatibility = 1.8
-targetCompatibility = 1.8
-
repositories {
mavenCentral()
- jcenter()
}
dependencies {
- implementation group: "org.jetbrains.kotlin", name: "kotlin-stdlib", version: kotlinVersion
implementation group: "com.google.guava", name: "guava", version: "14.0-rc1"
implementation group: "log4j", name: "log4j", version: "1.2.17"
implementation group: "org.apache.httpcomponents", name: "httpclient", version: "4.4"
}
task fatJar(type: Jar) {
- baseName = project.name + "-all"
- manifest {
- attributes(
- "Main-Class": "net.pterodactylus.rhynodge.engine.Starter"
- )
- }
- from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
- from { sourceSets.generated.resources.srcDirs }
- with jar
- dependsOn test
+ baseName = project.name + "-all"
+ manifest {
+ attributes(
+ "Main-Class": "net.pterodactylus.rhynodge.engine.Starter"
+ )
+ }
+ from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
+ from { sourceSets.generated.resources.srcDirs }
+ with jar
+ dependsOn test
+}
+
+tasks.named('test') {
+ jvmArgs += "--add-opens=java.base/java.lang=ALL-UNNAMED"
+ jvmArgs += "--add-opens=java.base/java.util=ALL-UNNAMED"
}
task createVersion() {
}
jacoco {
- toolVersion = "0.7.6.201602180812"
+ toolVersion = "0.8.11"
}
/* vim: set ts=4 sw=4 et: */