-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81f3816
commit 28e091c
Showing
5 changed files
with
75 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | ||
|
||
plugins { | ||
id("java") | ||
id("com.github.johnrengelman.shadow") version "8.1.1" | ||
id("maven-publish") | ||
} | ||
|
||
group="fr.formiko.voidworldgenerator" | ||
version="1.1.0" | ||
description="Generate empty world." | ||
|
||
repositories { | ||
mavenCentral() | ||
maven("https://repo.papermc.io/repository/maven-public/") | ||
maven("https://jitpack.io") | ||
} | ||
|
||
dependencies { | ||
compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT") | ||
implementation("org.bstats:bstats-bukkit:3.0.2") | ||
} | ||
|
||
java { | ||
// Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example. | ||
toolchain.languageVersion.set(JavaLanguageVersion.of(17)) | ||
} | ||
|
||
tasks { | ||
shadowJar { | ||
relocate("org.bstats","${project.group}.bstats") | ||
archiveFileName.set("${project.name}-${project.version}.jar") | ||
} | ||
compileJava { | ||
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything | ||
options.release.set(17) // See https://openjdk.java.net/jeps/247 for more information. | ||
} | ||
javadoc { | ||
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything | ||
} | ||
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", | ||
"group" to project.group | ||
) | ||
inputs.properties(props) | ||
filesMatching("plugin.yml") { | ||
expand(props) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: VoidWorldGenerator | ||
version: 1.0.0 | ||
main: fr.formiko.voidworldgenerator.VoidWorldGenerator | ||
description: Generate empty world | ||
name: $name | ||
version: $version | ||
main: $group.${name}Plugin | ||
description: $description | ||
author: Hydrolien | ||
website: https://github.com/HydrolienF/VoidWorldGenerator | ||
api-version: '1.20' | ||
website: https://github.com/HydrolienF/$name | ||
api-version: "$apiVersion" | ||
folia-supported: true | ||
load: STARTUP |