Skip to content

Commit

Permalink
updated to 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
GhastCraftHD committed Jun 20, 2024
1 parent 7f75877 commit 7dbc873
Show file tree
Hide file tree
Showing 18 changed files with 108 additions and 1,272 deletions.
77 changes: 74 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,75 @@
import io.papermc.paperweight.util.fileExists
plugins {
`java-library`
id("io.papermc.paperweight.userdev") version "1.7.1"
id("io.github.goooler.shadow") version "8.1.7"
}

group = "de.leghast"
version = "1.1.2"
description = "Create innovative holograms and use text displays with ease"

java {
toolchain.languageVersion = JavaLanguageVersion.of(21)
}

repositories {
maven {
url = uri("https://repo.codemc.io/repository/maven-snapshots/")
}
maven {
url = uri("https://repo.codemc.io/repository/maven-public/")
}
}

dependencies {
paperweight.paperDevBundle("1.20.6-R0.1-SNAPSHOT")
implementation("org.incendo", "cloud-paper", "2.0.0-beta.8")
implementation("net.wesjd:anvilgui:1.9.5-SNAPSHOT")
}

tasks {
compileJava {
options.release = 21
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
reobfJar {
outputJar = layout.buildDirectory.file("/home/julius/Paper Development/plugins/Holography-${project.version}.jar")
}

processResources {
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything
val props = mapOf(
"name" to project.name,
"version" to project.version,
"description" to project.description,
"apiVersion" to "1.20"
)
inputs.properties(props)
filesMatching("plugin.yml") {
expand(props)
}
}

shadowJar {
configurations = listOf(project.configurations.runtimeClasspath.get())
mergeServiceFiles()

fun reloc(pkg: String) = relocate(pkg, "de.leghast.dependency.$pkg")

reloc("org.incendo.cloud")
reloc("io.leangen.geantyref")
reloc("net.wesjd.anvilgui")
}
}






/*import io.papermc.paperweight.util.fileExists
plugins {
`java-library`
Expand All @@ -15,7 +86,7 @@ repositories {
}
group = "de.leghast"
version = "1.1.0"
version = "1.1.1"
description = "Create innovative holograms and use text displays with ease"
java {
Expand Down Expand Up @@ -83,6 +154,6 @@ tasks {
}
}
}*/


12 changes: 0 additions & 12 deletions buildSrc/build.gradle.kts

This file was deleted.

Loading

0 comments on commit 7dbc873

Please sign in to comment.