Skip to content

Commit

Permalink
Update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pop4959 authored Oct 1, 2022
1 parent 95c2bd5 commit d2b8b87
Show file tree
Hide file tree
Showing 6 changed files with 226 additions and 181 deletions.
48 changes: 0 additions & 48 deletions build.gradle

This file was deleted.

51 changes: 51 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
plugins {
id("java-library")
id("maven-publish")
id("com.github.johnrengelman.shadow") version "7.1.0"
}

group = project.property("pluginGroup")
version = project.property("pluginVersion")

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
withSourcesJar()
}

repositories {
jcenter()
maven("https://papermc.io/repo/repository/maven-public/")
}

dependencies {
testCompileOnly(group = "junit", name = "junit", version = "4.12")
compileOnly(group = "com.destroystokyo.paper", name = "paper-api", version = "1.15.2-R0.1-SNAPSHOT")
compileOnly(group = "net.luckperms", name = "api", version = "5.0")
implementation(group = "io.papermc", name = "paperlib", version = "1.0.2")
}

tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
processResources {
filesMatching("plugin.yml") {
expand(
"version" to project.version,
)
}
}
jar {
archiveClassifier.set("noshade")
}
shadowJar {
archiveClassifier.set("")
archiveFileName.set("${rootProject.name.capitalize()}-${project.version}.jar")
relocate("io.papermc.lib", "org.popcraft.stress.paperlib")
}
build {
dependsOn(shadowJar)
}
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 2 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Sun Apr 05 21:01:34 PDT 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit d2b8b87

Please sign in to comment.