-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
79 lines (65 loc) · 1.87 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
kotlin("jvm") version "1.9.23" apply false
kotlin("plugin.serialization") version "1.9.23" apply false
kotlin("multiplatform") version "1.9.23" apply false
id("com.github.johnrengelman.shadow") version "8.1.1" apply false
id("org.jetbrains.compose") version "1.6.1" apply false
}
group = "me.codedbyyou.os"
version = "1.0-SNAPSHOT"
allprojects {
group = "me.codedbyyou.os"
description = "OSGame for Operating Systems Course"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
//project(":compose") {
// apply(plugin = "org.jetbrains.compose")
// apply(plugin = "kotlin")
// tasks.withType<KotlinCompile> {
// kotlinOptions {
// jvmTarget = "18"
// freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
// }
// }
//
// configure<JavaPluginExtension> {
// targetCompatibility = JavaVersion.VERSION_18
// }
//}
subprojects {
apply(plugin = "java")
// apply(plugin = "kotlin")
// tasks.withType<KotlinCompile> {
// kotlinOptions {
// jvmTarget = "1.8"
// freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
// }
// }
configure<JavaPluginExtension> {
targetCompatibility = if (project.name != "compose") {
JavaVersion.VERSION_1_8
}else{
JavaVersion.VERSION_18
}
}
afterEvaluate{
tasks.findByName("shadowJar")?.also {
tasks.named("assemble") { dependsOn(it) }
}
}
}
dependencies {
// testImplementation(kotlin("test"))
// implementation(kotlin("stdlib-jdk8"))
}
tasks.test {
useJUnitPlatform()
}