forked from HaHaWTH/AuthMeReReloaded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
50 lines (41 loc) · 1.01 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
`java-library`
`maven-publish`
kotlin("jvm") version "2.0.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
subprojects {
// Apply Plugins
apply(plugin = "java-library")
apply(plugin = "maven-publish")
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "com.github.johnrengelman.shadow")
// Java Settings
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
// Kotlin Settings
kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_1_8
}
}
// Common Repositories
repositories {
mavenCentral()
mavenLocal()
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
}