Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,7 @@ gradle-app.setting
**/build/

# End of https://www.gitignore.io/api/gradle,intellij
.idea/
.idea/

# run-paper
run/
84 changes: 59 additions & 25 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
buildscript {
repositories {
jcenter()
gradlePluginPortal()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
classpath 'gradle.plugin.com.github.jengelman.gradle.plugins:shadow:7.0.0'
}
}

plugins {
id 'net.minecrell.plugin-yml.bukkit' version '0.4.0'
id 'xyz.jpenilla.run-paper' version '1.0.4'
}

apply plugin: 'java'

group = pluginGroup
version = pluginVersion

sourceCompatibility = '1.8'
targetCompatibility = '1.8'
sourceCompatibility = '16'
targetCompatibility = '16'

apply plugin: "com.github.johnrengelman.shadow"

Expand All @@ -31,24 +36,24 @@ tasks.withType(JavaCompile) {

shadowJar {
minimize()
relocate 'net.kyori.adventure.text.minimessage', 'net.draycia.uranium.libs.net.kyori.adventure.text.minimessage'
relocate 'net.kyori.adventure.text.serializer.plain', 'net.draycia.uranium.libs.net.kyori.adventure.serializer.plain'
relocate 'com.zaxxer', 'net.draycia.uranium.libs.com.zaxxer'
relocate 'co.aikar', 'net.draycia.uranium.libs.co.aikar'
relocate 'org.checkerframework', 'net.draycia.uranium.libs.org.checkerframework'
relocate 'org.slf4j', 'net.draycia.uranium.libs.org.slf4j'
relocate 'org.codehaus', 'net.draycia.uranium.libs.org.codehaus'
relocate 'org.yaml', 'net.draycia.uranium.libs.org.yaml'
relocate 'org.spongepowered.configurate', 'net.draycia.uranium.libs.org.spongepowered.configurate'
relocate 'io.leangen.geantyref', 'net.draycia.uranium.libs.io.leangen.geantyref'
archiveClassifier.set("")
archiveFileName.set(project.name + ".jar")
}

jar {
archiveFileName.set(project.name + ".jar")

}

import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation

task relocateShadowJar(type: ConfigureShadowRelocation) {
target = tasks.shadowJar
prefix = "net.draycia.uranium.libs" // Default value is "shadow"
}

tasks.shadowJar.dependsOn tasks.relocateShadowJar

repositories {
mavenCentral()
maven {url = 'https://papermc.io/repo/repository/maven-public/'}
Expand All @@ -59,23 +64,52 @@ repositories {
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly 'com.destroystokyo.paper:paper-api:1.15.2-R0.1-SNAPSHOT'
compileOnly 'me.clip:placeholderapi:2.10.5'
compile 'net.kyori:adventure-api:4.0.0-SNAPSHOT'
compile 'net.kyori:text-adapter-bukkit:3.0.3'
compile 'net.kyori:adventure-platform-bukkit:4.0.0-SNAPSHOT'
compile 'net.kyori:adventure-text-minimessage:3.0.0-SNAPSHOT'
compile 'org.spongepowered:configurate-yaml:3.7'
compile "co.aikar:acf-bukkit:0.5.0-SNAPSHOT"
compile "com.zaxxer:HikariCP:2.4.1"
compile "co.aikar:idb-bukkit:1.0.0-SNAPSHOT"
testImplementation group: 'junit', name: 'junit', version: '4.12'

// Paper & Plugins
compileOnly 'io.papermc.paper:paper-api:1.17.1-R0.1-SNAPSHOT'
compileOnly 'me.clip:placeholderapi:2.10.10'

// Kyori
implementation('net.kyori:adventure-text-minimessage:4.2.0-SNAPSHOT') {
exclude group: 'net.kyori', module: 'adventure-api'
}
implementation('net.kyori:adventure-text-serializer-plain:4.8.1') {
exclude group: 'net.kyori', module: 'adventure-api'
}

// Sponge
implementation 'org.spongepowered:configurate-yaml:4.1.2'

// Misc
implementation "com.zaxxer:HikariCP:5.0.0"

// Phase these out
implementation "co.aikar:acf-bukkit:0.5.0-SNAPSHOT"
implementation "co.aikar:idb-bukkit:1.0.0-SNAPSHOT"
}

import org.apache.tools.ant.filters.ReplaceTokens

processResources {
duplicatesStrategy = 'include'
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}

bukkit {
main = 'net.draycia.uranium.Uranium'
description = "Adds various minigames to chat."
version = project.version as String
apiVersion = '1.13'
load = 'STARTUP'
authors = ['MTM123', 'Vicarious']
softDepend = ['Vault', "PlaceholderAPI"]
}

tasks {
runServer {
minecraftVersion("1.17.1")
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pluginGroup=net.draycia
pluginVersion=1.0.1
pluginVersion=1.1.0
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading