-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathbuild.gradle
More file actions
41 lines (35 loc) · 980 Bytes
/
build.gradle
File metadata and controls
41 lines (35 loc) · 980 Bytes
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
subprojects {
apply plugin: "java"
apply plugin: "maven-publish"
group = 'eu.decentsoftware.holograms'
repositories {
mavenCentral()
maven { url = "https://repo.codemc.io/repository/nms/" }
}
dependencies {
if (!project.path.endsWith(":shared")) {
implementation project(":shared")
}
}
java {
withSourcesJar()
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
options.encoding = "UTF-8"
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId = rootProject.findProperty("group") ?: project.group
artifactId = project.name
version = rootProject.version
}
}
}
}