generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
53 lines (43 loc) · 1.32 KB
/
build.gradle
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
plugins {
id "org.jetbrains.kotlin.jvm" version '1.8.22' apply false
id "org.jetbrains.kotlin.plugin.serialization" version "1.8.22" apply false
id "architectury-plugin" version "3.4-SNAPSHOT" apply false
id "dev.architectury.loom" version "1.1-SNAPSHOT" apply false
}
subprojects {
apply plugin: "org.jetbrains.kotlin.jvm"
compileKotlin {
kotlinOptions.jvmTarget = "17"
kotlinOptions.freeCompilerArgs += "-Xlambdas=indy"
kotlinOptions.freeCompilerArgs += "-Xjvm-default=all"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
kotlinOptions.freeCompilerArgs += "-Xlambdas=indy"
kotlinOptions.freeCompilerArgs += "-Xjvm-default=all"
}
}
allprojects {
apply plugin: "java"
apply plugin: "maven-publish"
archivesBaseName = rootProject.archives_base_name
version = rootProject.mod_version
group = rootProject.maven_group
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
options.release.set 17
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.2'
}
java {
withSourcesJar()
}
test {
useJUnitPlatform()
}
}