This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
84 lines (71 loc) · 2.12 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
/*
* Copyright Notice for CrossWise
* Copyright (c) at Carina Sophie Schoppe 2022
* File created on 8/11/22, 2:31 PM by Carina The Latest changes made by Carina on 8/11/22, 2:31 PM All contents of "build.gradle.kts" are protected by copyright.
* The copyright law, unless expressly indicated otherwise, is
* at Carina Sophie Schoppe. You are not allowed to copy,
* All rights reserved
* Any type of duplication, distribution, rental, sale, award,
* Public accessibility or other use
* requires the express written consent of Carina Sophie Schoppe.
*/
plugins {
id("java")
idea
kotlin("jvm") version "+"
id("com.github.johnrengelman.shadow") version "+"
id("org.openjfx.javafxplugin") version "+"
id("application")
}
group = "de.carina"
version = "1.0.1"
description = "Crosswise Pc-Game"
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation("com.google.code.gson:gson:+")
testImplementation(kotlin("test"))
implementation("org.jetbrains:annotations:+")
implementation("org.projectlombok:lombok:+")
annotationProcessor("org.projectlombok:lombok:+")
testCompileOnly("org.projectlombok:lombok:+")
testAnnotationProcessor("org.projectlombok:lombok:+")
}
javafx {
version = "+"
modules("javafx.controls", "javafx.fxml")
}
tasks {
compileJava {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
options.release.set(17)
}
javadoc {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
}
processResources {
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything
}
test {
useJUnitPlatform()
}
withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf(
"-Xuse-k2",
"-Xjdk-release=17"
)
jvmTarget = "17"
languageVersion = "1.7"
}
}
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
application {
mainClass.set("me.carinasophie.Main")
}