i give up - toss the baton

This commit is contained in:
Draycia committed 2021-05-07 15:00:13 -07:00
1 parent 3c6f1feb22
commit 1231946184
13 files changed
+190 -178

No files matched your search

-48
View File
@@ -1,48 +0,0 @@
plugins {
id 'java-library'
id 'maven-publish'
}
description 'CarbonChat-API'
dependencies {
api "org.checkerframework:checker-qual:${vers['checker-qual']}"
api "net.kyori:adventure-api:${vers['adventure']}"
api "net.kyori:adventure-nbt:${vers['adventure']}"
api "net.kyori:adventure-platform-api:${vers['adventure-platform']}"
api "net.kyori:adventure-text-serializer-plain:${vers['adventure']}"
api("net.kyori:adventure-text-serializer-gson:${vers['adventure']}") {
exclude group: 'com.google.code.gson'
}
api "net.kyori:adventure-text-serializer-legacy:${vers['adventure']}"
api "net.kyori:adventure-text-minimessage:${vers['minimessage']}"
api "de.themoep:minedown-adventure:${vers['minedown']}"
api("net.kyori:event-api:${vers['kyori-event-api']}")
api("net.kyori:registry:${vers['kyori-registry']}")
api "cloud.commandframework:cloud-core:${vers['cloud']}"
api "org.spongepowered:configurate-core:${vers['configurate']}"
api "com.google.guava:guava:${vers['guava']}"
compileOnlyApi "org.slf4j:slf4j-api:${vers['slf4j-api']}"
compileOnlyApi "net.luckperms:api:${vers['luckperms-api']}"
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'net.draycia'
artifactId = description
version = projectVersion // No hash
from components.java
}
}
}
+51
View File
@@ -0,0 +1,51 @@
import net.draycia.carbon.*
plugins {
id "java-library"
id "maven-publish"
}
description "CarbonChat-API"
dependencies {
api "org.checkerframework:checker-qual:${CHECKER_QUAL_VER}"
api "net.kyori:adventure-api:$ADVENTURE_VER"
api "net.kyori:adventure-nbt:$ADVENTURE_VER"
api "net.kyori:adventure-platform-api:$ADVENTURE_PLATFORM_VER"
api "net.kyori:adventure-text-serializer-plain:$ADVENTURE_VER"
api("net.kyori:adventure-text-serializer-gson:$ADVENTURE_VER") {
exclude group: "com.google.code.gson"
}
api "net.kyori:adventure-text-serializer-legacy:$ADVENTURE_VER"
api "net.kyori:adventure-text-minimessage:$MINIMESSAGE_VER}"
api("net.kyori:event-api:${vers["kyori-event-api"]}")
api("net.kyori:registry:${vers["kyori-registry"]}")
api "cloud.commandframework:cloud-core:${vers["cloud"]}"
api "org.spongepowered:configurate-core:${vers["configurate"]}"
api "com.google.guava:guava:${vers["guava"]}"
compileOnlyApi "com.proximyst.moonshine:core:${vers["moonshine"]}"
compileOnlyApi "org.slf4j:slf4j-api:${vers["slf4j-api"]}"
compileOnlyApi "net.luckperms:api:${vers["luckperms-api"]}"
}
publishing {
publications {
maven(MavenPublication) {
groupId = "net.draycia"
artifactId = description
version = projectVersion // No hash
from components.java
}
}
}
@@ -29,13 +29,6 @@ dependencies {
implementation 'org.slf4j:slf4j-jdk14:1.7.28'
// Plugins
compileOnly("com.gmail.nossr50.mcMMO:mcMMO:${vers['mcmmo']}") {
exclude group: 'org.jetbrains', module: 'annotations'
}
compileOnly "com.github.TownyAdvanced:Towny:${vers['towny']}"
compileOnly("com.sk89q.worldguard:worldguard-bukkit:${vers['worldguard']}") {
exclude group: 'org.spigotmc', module: 'spigot-api' // Honestly?
}
compileOnly "me.clip:placeholderapi:${vers['placeholder-api']}"
compileOnly "net.luckperms:api:${vers['luckperms-api']}"
compileOnly "com.github.MilkBowl:VaultAPI:${vers['vault']}"
@@ -48,8 +41,7 @@ bukkit {
main = 'net.draycia.carbon.bukkit.CarbonChatBukkit'
apiVersion = '1.13'
author = 'Draycia'
depend = ['PlaceholderAPI', 'Vault']
softDepend = ['LuckPerms', 'Towny', 'mcMMO', 'WorldGuard']
depend = ['PlaceholderAPI', 'Vault', 'LuckPerms']
loadBefore = ["Essentials"]
permissions {
'carbonchat.channels.global.see' {
@@ -97,7 +89,6 @@ shadowJar {
relocate("com.zaxxer.hikari", "net.draycia.carbon.libs.hikari")
relocate("com.typesafe.config", "net.draycia.carbon.libs.typesafe.config")
relocate("com.google.common", "net.draycia.carbon.libs.google.common")
relocate("de.themoep.minedown", "net.draycia.carbon.libs.minedown")
relocate("reactor", "net.draycia.carbon.libs.reactor")
relocate("javax.annotation", "net.draycia.carbon.libs.javax.annotation")
}
-21
View File
@@ -1,21 +0,0 @@
description 'CarbonChat-Common'
dependencies {
checkstyle("ca.stellardrift:stylecheck:${vers['stylecheck']}")
api project(':CarbonChat-API')
implementation("io.lettuce:lettuce-core:${vers['lettuce-core']}") {
exclude group: 'io.netty'
}
implementation "org.spongepowered:configurate-hocon:${vers['configurate']}"
implementation "org.spongepowered:configurate-yaml:${vers['configurate']}"
implementation "co.aikar:idb-core:${vers['idb-core']}"
implementation "com.zaxxer:HikariCP:${vers['hikari']}"
compileOnly "com.google.code.gson:gson:${vers['gson']}"
compileOnly "org.slf4j:slf4j-api:${vers['slf4j-api']}"
}
+23
View File
@@ -0,0 +1,23 @@
description "CarbonChat-Common"
dependencies {
checkstyle("ca.stellardrift:stylecheck:${vers["stylecheck"]}")
api project(":CarbonChat-API")
implementation("io.lettuce:lettuce-core:${vers["lettuce-core"]}") {
exclude group: "io.netty"
}
implementation "org.spongepowered:configurate-hocon:${vers["configurate"]}"
implementation "org.spongepowered:configurate-yaml:${vers["configurate"]}"
implementation "com.proximyst.moonshine:core:${vers["moonshine"]}"
implementation "co.aikar:idb-core:${vers["idb-core"]}"
implementation "com.zaxxer:HikariCP:${vers["hikari"]}"
compileOnly "com.google.code.gson:gson:${vers["gson"]}"
compileOnly "org.slf4j:slf4j-api:${vers["slf4j-api"]}"
}
-61
View File
@@ -1,61 +0,0 @@
plugins {
id 'com.palantir.git-version' version '0.12.3'
id 'org.checkerframework' version '0.5.11'
}
// Get dependency versions from a centralized location
apply from: 'dependencies.gradle'
// Gets the git commit hash of the latest commit, used for version string
ext.projectVersion = '1.0'
def gitHash = versionDetails().gitHash
allprojects {
group = 'net.draycia'
description = 'CarbonChat'
version = project.property('projectVersion') + '-' + gitHash
}
subprojects {
apply plugin: 'checkstyle'
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'org.checkerframework'
repositories {
mavenCentral()
maven { url = 'https://repo.maven.apache.org/maven2' }
maven { url = 'https://oss.sonatype.org/content/groups/public/' }
maven { url = 'https://maven.enginehub.org/repo/' }
maven { url = 'https://papermc.io/repo/repository/maven-public/' }
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url = 'https://jitpack.io' }
maven { url = 'https://dl.bintray.com/ichbinjoe/public/' }
maven { url = 'https://repo.codemc.org/repository/maven-public/' }
maven { url = 'https://repo.glaremasters.me/repository/public/' }
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
maven { url = 'https://repo.minebench.de/' }
}
dependencies {
checkstyle("ca.stellardrift:stylecheck:${vers['stylecheck']}")
}
checkstyle {
def configRoot = new File(rootProject.projectDir, '.checkstyle')
toolVersion = vers['checkstyle']
configDirectory = configRoot
configProperties = [basedir: configRoot.getAbsolutePath()]
}
checkerFramework {
checkers = [
'org.checkerframework.checker.nullness.NullnessChecker'
]
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
+67
View File
@@ -0,0 +1,67 @@
import org.checkerframework.gradle.plugin.CheckerFrameworkPlugin
import net.draycia.carbon.*
plugins {
java
`java-library`
`maven-publish`
checkstyle
id("org.checkerframework") version "0.5.12"
}
allprojects {
group = "net.draycia"
description = "CarbonChat"
version = project.property("projectVersion") // TODO: include git hash
}
allprojects {
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = sourceCompatibility
disableAutoTargetJvm()
}
checkstyle {
toolVersion = "8.36.2"
val configRoot = rootProject.projectDir
configDirectory.set(configRoot)
configProperties["basedir"] = configRoot.absolutePath
}
}
subprojects {
apply {
plugin<JavaPlugin>()
plugin<JavaLibraryPlugin>()
plugin<MavenPublishPlugin>()
plugin<CheckstylePlugin>()
plugin<CheckerFrameworkPlugin>()
}
repositories {
mavenCentral()
maven { url = uri("https://nexus.proximyst.com/repository/maven-public/") }
maven { url = uri("https://repo.maven.apache.org/maven2") }
maven { url = uri("https://oss.sonatype.org/content/groups/public/") }
maven { url = uri("https://maven.enginehub.org/repo/") }
maven { url = uri("https://papermc.io/repo/repository/maven-public/") }
maven { url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/") }
maven { url = uri("https://jitpack.io") }
maven { url = uri("https://dl.bintray.com/ichbinjoe/public/") }
maven { url = uri("https://repo.codemc.org/repository/maven-public/") }
maven { url = uri("https://repo.glaremasters.me/repository/public/") }
maven { url = uri("https://repo.aikar.co/content/groups/aikar/") }
}
dependencies {
checkstyle("ca.stellardrift:stylecheck:$STYLECHECK_VER")
}
// checkerFramework {
// checkers = [
// "org.checkerframework.checker.nullness.NullnessChecker"
// ]
// }
}
+7
View File
@@ -0,0 +1,7 @@
plugins {
`kotlin-dsl`
}
repositories {
mavenCentral()
}
+36
View File
@@ -0,0 +1,36 @@
package net.draycia.carbon
// Carbon
const val CARBON_VER = "1.0.0-SNAPSHOT"
// Misc
const val CHECKSTYLE_VER = "8.34"
const val CHECKER_QUAL_VER = "3.8.0"
const val GUAVA_VER = "26.0-jre"
const val SLF4J_API_VER = "1.7.25"
const val STYLECHECK_VER = "0.1-SNAPSHOT"
const val MOONSHINE_VER = "0.2.4-SNAPSHOT"
const val CLOUD_VER = "1.2.0"
const val CONFIGURATE_VER = "4.0.0"
// Kyori
const val ADVENTURE = "4.3.0"
const val ADVENTURE_PLATFORM_VER = "4.0.0-SNAPSHOT"
const val MINIMESSAGE_VER = "4.1.0-SNAPSHOT"
const val KYORI_EVENT_API_VER = "3.0.0"
const val KYORI_REGISTRY_VER = "1.0.0-SNAPSHOT"
// Common
const val LETTUCE_CORE_VER = "6.0.0.M1"
const val IDB_CORE_VER = "1.0.0-SNAPSHOT"
const val HIKARI_VER = "2.4.1"
const val GSON_VER = "2.8.0"
// Bukkit
const val PAPER_API_VER = "1.16.4-R0.1-SNAPSHOT"
const val SNAKEYAML_VER = "1.27"
// Plugins
const val LUCKPERMS_API_VER = "5.1"
const val PLACEHOLDER_API_VER = "2.10.9"
const val VAULT_VER = "1.7"
-33
View File
@@ -1,33 +0,0 @@
ext {
vers = [
'checkstyle' : '8.34',
'stylecheck' : '0.1-SNAPSHOT',
'checker-qual' : '3.8.0',
'guava' : '26.0-jre',
'slf4j-api' : '1.7.25',
'adventure' : '4.3.0',
'adventure-platform': '4.0.0-SNAPSHOT',
'minimessage' : '4.1.0-SNAPSHOT',
'kyori-event-api' : '3.0.0',
'kyori-registry' : '1.0.0-SNAPSHOT',
'minedown' : '1.6.2-SNAPSHOT',
'cloud' : '1.2.0',
'configurate' : '4.0.0',
'luckperms-api' : '5.1',
// Common
'lettuce-core' : '6.0.0.M1',
'idb-core' : '1.0.0-SNAPSHOT',
'hikari' : '2.4.1',
'gson' : '2.8.0',
// Bukkit
'paper-api' : '1.16.4-R0.1-SNAPSHOT',
'snakeyaml' : '1.27',
'mcmmo' : '2.1.143',
'towny' : '0.96.2.0',
'worldguard' : '7.0.4-SNAPSHOT',
'placeholder-api' : '2.10.9',
'vault' : '1.7',
]
}
+1 -1
View File
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-4
View File
@@ -1,4 +0,0 @@
include 'CarbonChat-API'
include 'CarbonChat-Common'
include 'CarbonChat-Bukkit'
+4
View File
@@ -0,0 +1,4 @@
include("CarbonChat-API")
include("CarbonChat-Common")
include("CarbonChat-Bukkit")