Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Fameless9 committed Jul 29, 2024
0 parents commit 79119b4
Show file tree
Hide file tree
Showing 20 changed files with 1,213 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Gradle-specific files
.gradle/
build/

# Gradle wrapper files
!gradle/wrapper/gradle-wrapper.jar
gradle/wrapper/gradle-wrapper.properties

# Java-specific files
*.class
*.jar
*.war
*.ear

# IntelliJ IDEA specific files
.idea/
*.iml
*.ipr
*.iws
out/

# NetBeans specific files
nbproject/private/
nbbuild/
dist/
nbdist/
.nb-gradle/

# Eclipse specific files
.classpath
.project
.settings/
bin/

# VS Code specific files
.vscode/

# MacOS specific files
.DS_Store

# Windows specific files
Thumbs.db
ehthumbs.db
Desktop.ini

# Linux specific files
*~

# Log files
*.log

# Temporary files
*.tmp
*.swp
*.swo
*.bak
*.orig

# Other
**/logs/
**/tmp/
**/temp/
**/cache/
**/caches/
*.lock
77 changes: 77 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version("8.1.1")
id("com.diffplug.spotless") version "7.0.0.BETA1"
}

repositories {
mavenCentral()
mavenLocal()

maven {
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}

maven {
url = uri("https://oss.sonatype.org/content/groups/public/")
}

maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
}

dependencies {
compileOnly(libs.org.spigotmc.spigot.api)
implementation("org.bstats:bstats-bukkit:3.0.2")
implementation("net.kyori:adventure-api:4.17.0")
implementation("net.kyori:adventure-text-minimessage:4.17.0")
implementation("net.kyori:adventure-text-serializer-legacy:4.17.0")
}

group = "net.fameless"
version = "1.0.0"
description = "LevelBorder"
java.sourceCompatibility = JavaVersion.VERSION_17

publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}

tasks {
shadowJar {
this.archiveClassifier.set(null as String?)
this.archiveFileName.set("${project.name}-${project.version}.${this.archiveExtension.getOrElse("jar")}")

relocate("org.bstats", "net.fameless.relocation.bstats")
}

build {
dependsOn(shadowJar)
}


withType<JavaCompile> {
options.encoding = "UTF-8"
}

withType<Javadoc> {
options.encoding = "UTF-8"
}

spotless {
java {
target("**/*.java")
endWithNewline()
trimTrailingWhitespace()
removeUnusedImports()
}
}
}
8 changes: 8 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by the Gradle 'init' task.
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format

[versions]
org-spigotmc-spigot-api = "1.20.4-R0.1-SNAPSHOT"

[libraries]
org-spigotmc-spigot-api = { module = "org.spigotmc:spigot-api", version.ref = "org-spigotmc-spigot-api" }
Loading

0 comments on commit 79119b4

Please sign in to comment.