mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-01-03 18:47:42 +01:00
Convert to gradle
This commit is contained in:
parent
6e9873715b
commit
764ae4e5e1
17
.gitignore
vendored
17
.gitignore
vendored
@ -1,14 +1,3 @@
|
|||||||
|
.idea
|
||||||
\.idea/
|
.gradle
|
||||||
|
build
|
||||||
*.iml
|
|
||||||
|
|
||||||
*.class
|
|
||||||
|
|
||||||
target/classes/
|
|
||||||
|
|
||||||
target/
|
|
||||||
|
|
||||||
\.DS_Store
|
|
||||||
|
|
||||||
dependency-reduced-pom.xml
|
|
||||||
|
77
build.gradle.kts
Normal file
77
build.gradle.kts
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
plugins {
|
||||||
|
java
|
||||||
|
|
||||||
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
||||||
|
}
|
||||||
|
|
||||||
|
val buildNumber: String? = System.getenv("BUILD_NUMBER")
|
||||||
|
|
||||||
|
val jenkinsVersion = "1.2.18-b$buildNumber"
|
||||||
|
|
||||||
|
group = "com.badbones69.crazyauctions"
|
||||||
|
version = "1.2.18"
|
||||||
|
description = "A simple auctions plugin where you can sell your items and bid on other items! "
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
/**
|
||||||
|
* Paper Team
|
||||||
|
*/
|
||||||
|
maven("https://repo.papermc.io/repository/maven-public/")
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NBT Team
|
||||||
|
*/
|
||||||
|
maven("https://repo.codemc.org/repository/maven-public/")
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Everything else we need.
|
||||||
|
*/
|
||||||
|
maven("https://jitpack.io/")
|
||||||
|
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(libs.bukkit.bstats)
|
||||||
|
|
||||||
|
implementation(libs.nbt.api)
|
||||||
|
|
||||||
|
compileOnly(libs.reserve.api)
|
||||||
|
|
||||||
|
compileOnly(libs.vault.api)
|
||||||
|
|
||||||
|
compileOnly(libs.spigot)
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
shadowJar {
|
||||||
|
if (buildNumber != null) {
|
||||||
|
archiveFileName.set("${rootProject.name}-[v${jenkinsVersion}.jar")
|
||||||
|
} else {
|
||||||
|
archiveFileName.set("${rootProject.name}-[v${rootProject.version}].jar")
|
||||||
|
}
|
||||||
|
|
||||||
|
listOf(
|
||||||
|
"de.tr7zw",
|
||||||
|
"org.bstats"
|
||||||
|
).forEach {
|
||||||
|
relocate(it, "${rootProject.group}.plugin.lib.$it")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
compileJava {
|
||||||
|
targetCompatibility = "8"
|
||||||
|
sourceCompatibility = "8"
|
||||||
|
}
|
||||||
|
|
||||||
|
processResources {
|
||||||
|
filesMatching("plugin.yml") {
|
||||||
|
expand(
|
||||||
|
"name" to rootProject.name,
|
||||||
|
"group" to rootProject.group,
|
||||||
|
"version" to rootProject.version,
|
||||||
|
"description" to rootProject.description
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
30
gradle/libs.versions.toml
Normal file
30
gradle/libs.versions.toml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
[versions]
|
||||||
|
|
||||||
|
# Spigot Team
|
||||||
|
spigot = "1.19.2-R0.1-SNAPSHOT"
|
||||||
|
|
||||||
|
# Bukkit
|
||||||
|
bukkit-bstats = "3.0.0"
|
||||||
|
|
||||||
|
# Placeholders
|
||||||
|
placeholder-api = "2.11.2"
|
||||||
|
|
||||||
|
# Misc Libraries
|
||||||
|
nbt-api = "2.10.0"
|
||||||
|
vault-api = "1.7"
|
||||||
|
reserve-api = "0.1.5.0"
|
||||||
|
|
||||||
|
[libraries]
|
||||||
|
|
||||||
|
# Spigot Team
|
||||||
|
spigot = { module = "org.spigotmc:spigot-api", version.ref = "spigot" }
|
||||||
|
|
||||||
|
# Bukkit
|
||||||
|
bukkit-bstats = { module = "org.bstats:bstats-bukkit", version.ref = "bukkit-bstats" }
|
||||||
|
|
||||||
|
# Misc Libraries
|
||||||
|
vault-api = { module = "com.github.MilkBowl:VaultAPI", version.ref = "vault-api" }
|
||||||
|
|
||||||
|
nbt-api = { module = "de.tr7zw:nbt-data-api", version.ref = "nbt-api" }
|
||||||
|
|
||||||
|
reserve-api = { module = "net.tnemc:Reserve", version.ref = "reserve-api" }
|
5
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
5
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
distributionBase=GRADLE_USER_HOME
|
||||||
|
distributionPath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
|
||||||
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
zipStorePath=wrapper/dists
|
89
pom.xml
89
pom.xml
@ -1,89 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<groupId>com.badbones69</groupId>
|
|
||||||
<artifactId>crazyauctions</artifactId>
|
|
||||||
<version>1.2.18-SNAPSHOT</version>
|
|
||||||
<name>Crazy-Auctions</name>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
<!--This is used to show the build number for jenkins.-->
|
|
||||||
<build.number/>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<distributionManagement>
|
|
||||||
<repository>
|
|
||||||
<id>crazycrew-repo-releases</id>
|
|
||||||
<name>CrazyCrew Team</name>
|
|
||||||
<url>https://repo.badbones69.com/releases</url>
|
|
||||||
</repository>
|
|
||||||
</distributionManagement>
|
|
||||||
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>spigot-repo</id>
|
|
||||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>vault-repo</id>
|
|
||||||
<url>http://nexus.hc.to/content/repositories/pub_releases</url>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>codemc-repo</id>
|
|
||||||
<url>https://repo.codemc.io/repository/maven-public/</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.spigotmc</groupId>
|
|
||||||
<artifactId>spigot-api</artifactId>
|
|
||||||
<version>1.19.1-R0.1-SNAPSHOT</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>net.milkbowl.vault</groupId>
|
|
||||||
<artifactId>VaultAPI</artifactId>
|
|
||||||
<version>1.7</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
<exclusions>
|
|
||||||
<exclusion>
|
|
||||||
<artifactId>bukkit</artifactId>
|
|
||||||
<groupId>org.bukkit</groupId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>net.tnemc</groupId>
|
|
||||||
<artifactId>Reserve</artifactId>
|
|
||||||
<version>0.1.5.0</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<finalName>${project.name}-[1.8-1.19]-[v${project.version}]</finalName>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/resources</directory>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<version>3.8.1</version>
|
|
||||||
<configuration>
|
|
||||||
<source>1.8</source>
|
|
||||||
<target>1.8</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
</project>
|
|
3
settings.gradle.kts
Normal file
3
settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
rootProject.name = "CrazyAuctions"
|
||||||
|
|
||||||
|
enableFeaturePreview("VERSION_CATALOGS")
|
@ -1,11 +1,16 @@
|
|||||||
name: CrazyAuctions
|
name: "CrazyCrates"
|
||||||
author: BadBones69
|
main: "${group}.CrazyAuctions"
|
||||||
main: com.badbones69.crazyauctions.Main
|
|
||||||
website: https://www.spigotmc.org/resources/authors/badbones69.9719/
|
authors: [BadBones69, RyderBelserion]
|
||||||
version: ${version}${build.number}
|
|
||||||
|
version: ${version}
|
||||||
|
api-version: "1.13"
|
||||||
|
description: ${description}
|
||||||
|
|
||||||
depend: [Vault]
|
depend: [Vault]
|
||||||
api-version: 1.13
|
|
||||||
description: A plugin to auction off items globally.
|
website: https://modrinth.com/plugin/crazyauctions
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
ca:
|
ca:
|
||||||
description: Opens the Crazy Auctions GUI.
|
description: Opens the Crazy Auctions GUI.
|
||||||
|
Loading…
Reference in New Issue
Block a user