1- plugins {
2- id " java"
3- id " maven-publish"
4- id " com.github.johnrengelman.shadow" version " 8.1.1"
5- }
1+ subprojects {
2+ apply plugin : " java"
63
7- group = " eu.decentsoftware.holograms"
8- version = " 2.8.17"
9- description = " A lightweight yet very powerful hologram plugin with many features and configuration options."
4+ group = ' eu.decentsoftware.holograms'
105
11- repositories {
12- mavenCentral()
13- maven { url = " https://oss.sonatype.org/content/repositories/snapshots" }
14- maven { url = " https://repo.codemc.io/repository/nms/" }
15- maven { url = " https://repo.codemc.io/repository/maven-public/" }
16- maven { url = " https://repo.extendedclip.com/content/repositories/placeholderapi/" }
17- }
18-
19- dependencies {
20- compileOnly " org.spigotmc:spigot:1.13-R0.1-SNAPSHOT"
21- compileOnly " me.clip:placeholderapi:2.11.6"
22- compileOnly " com.arcaniax:HeadDatabase-API:1.3.2"
23-
24- implementation " org.bstats:bstats-bukkit:3.1.0"
25- implementation " de.tr7zw:item-nbt-api:2.15.0"
26- implementation " com.github.cryptomorin:XSeries:13.0.0"
27-
28- compileOnly " org.projectlombok:lombok:1.18.36"
29- annotationProcessor " org.projectlombok:lombok:1.18.36"
30- compileOnly " org.jetbrains:annotations:26.0.2"
31- annotationProcessor " org.jetbrains:annotations:26.0.2"
32- }
33-
34- java {
35- withJavadocJar()
36- withSourcesJar()
37- toolchain {
38- languageVersion = JavaLanguageVersion . of(8 )
6+ repositories {
7+ mavenCentral()
8+ maven { url = " https://repo.codemc.io/repository/nms/" }
399 }
40- }
41-
42- compileJava {
43- sourceCompatibility = JavaVersion . VERSION_1_8
44- targetCompatibility = JavaVersion . VERSION_1_8
45- options. encoding = " UTF-8"
46- }
4710
48- processResources {
49- def props = [version : project. version, description : project. description]
50- inputs. properties(props)
51- filteringCharset = " UTF-8"
52- filesMatching(" plugin.yml" ) {
53- expand(props)
11+ dependencies {
12+ if (! project. path. endsWith(" :shared" )) {
13+ implementation project(" :shared" )
14+ }
5415 }
55- }
56-
57- shadowJar {
58- archiveClassifier. set(" " )
59-
60- relocate " org.bstats" , " eu.decentsoftware.holograms.metrics"
61- relocate " de.tr7zw.changeme.nbtapi" , " eu.decentsoftware.holograms.libs.nbtapi"
62- relocate " com.cryptomorin.xseries" , " eu.decentsoftware.holograms.libs.xseries"
63- }
6416
65- publishing {
66- publications {
67- create(" shadow" , MavenPublication ) {
68- from(components[" java" ] as SoftwareComponent )
69- artifactId = " decentholograms"
17+ java {
18+ withSourcesJar()
19+ toolchain {
20+ languageVersion = JavaLanguageVersion . of(8 )
7021 }
7122 }
23+
24+ compileJava {
25+ sourceCompatibility = JavaVersion . VERSION_1_8
26+ targetCompatibility = JavaVersion . VERSION_1_8
27+ options. encoding = " UTF-8"
28+ }
7229}
0 commit comments