mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Single module setup
This commit is contained in:
1 parent
ad9a794156
commit
66217f6534
70 files changed
+92
-138
No files matched your search
@@ -1,76 +0,0 @@
|
||||
plugins {
|
||||
id 'com.github.johnrengelman.shadow' version '6.0.0'
|
||||
id 'net.minecrell.plugin-yml.bukkit' version '0.3.0'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
maven { url = "https://maven.enginehub.org/repo/" }
|
||||
maven { url = "https://jitpack.io" }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile 'co.aikar:acf-bukkit:0.5.0-SNAPSHOT'
|
||||
compile 'net.kyori:adventure-api:4.0.0-SNAPSHOT'
|
||||
compile 'net.kyori:adventure-nbt:4.0.0-SNAPSHOT'
|
||||
compile 'net.kyori:adventure-platform-bukkit:4.0.0-SNAPSHOT'
|
||||
compile 'net.kyori:adventure-text-minimessage:3.0.0-SNAPSHOT'
|
||||
compile 'de.themoep:minedown-adventure:1.6.1-SNAPSHOT'
|
||||
compile 'co.aikar:idb-bukkit:1.0.0-SNAPSHOT'
|
||||
compile 'com.zaxxer:HikariCP:2.4.1'
|
||||
compile 'io.github.leonardosnt:bungeechannelapi:1.0.0-SNAPSHOT'
|
||||
compile 'io.lettuce:lettuce-core:6.0.0.M1'
|
||||
|
||||
compileOnly 'com.gmail.nossr50.mcMMO:mcMMO:2.1.143'
|
||||
compileOnly 'com.github.TownyAdvanced:Towny:0.96.2.0'
|
||||
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.4-SNAPSHOT'
|
||||
compileOnly 'me.clip:placeholderapi:2.10.9'
|
||||
compileOnly 'com.github.TownyAdvanced:Towny:0.96.1.11'
|
||||
compileOnly 'com.github.MilkBowl:VaultAPI:1.7'
|
||||
compileOnly 'com.vexsoftware:nuvotifier-universal:2.6.0'
|
||||
compileOnly 'net.luckperms:api:5.1'
|
||||
compileOnly 'org.jetbrains:annotations:16.0.1'
|
||||
}
|
||||
|
||||
description = 'CarbonChat'
|
||||
|
||||
bukkit {
|
||||
name = description
|
||||
version = project.version
|
||||
main = 'net.draycia.carbon.CarbonChat'
|
||||
apiVersion = '1.13'
|
||||
author = 'Draycia'
|
||||
depend = ['PlaceholderAPI', 'Vault']
|
||||
softDepend = ['LuckPerms', 'Towny', 'mcMMO', 'WorldGuard']
|
||||
loadBefore = ["Essentials"]
|
||||
permissions {
|
||||
'carbonchat.channels.Global.see' {
|
||||
setDefault("TRUE")
|
||||
}
|
||||
|
||||
'carbonchat.channels.Global.use' {
|
||||
setDefault("TRUE")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.build.dependsOn tasks.shadowJar
|
||||
|
||||
shadowJar {
|
||||
minimize()
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
|
||||
jar {
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
|
||||
|
||||
task relocateShadowJar(type: ConfigureShadowRelocation) {
|
||||
target = tasks.shadowJar
|
||||
prefix = "net.draycia.carbon.libs" // Default value is "shadow"
|
||||
}
|
||||
|
||||
tasks.shadowJar.dependsOn tasks.relocateShadowJar
|
||||
+92
-54
@@ -1,73 +1,111 @@
|
||||
plugins {
|
||||
id 'com.github.johnrengelman.shadow' version '6.0.0'
|
||||
id 'net.minecrell.plugin-yml.bukkit' version '0.3.0'
|
||||
id 'com.palantir.git-version' version '0.12.3'
|
||||
}
|
||||
|
||||
apply plugin: 'java-library'
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'maven'
|
||||
|
||||
ext.projectVersion = '1.0'
|
||||
def gitHash = versionDetails().gitHash
|
||||
|
||||
allprojects {
|
||||
group = 'net.draycia'
|
||||
version = project.property('projectVersion') + '-' + gitHash
|
||||
group = 'net.draycia'
|
||||
version = project.property('projectVersion') + '-' + gitHash
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
|
||||
maven {url = "https://maven.enginehub.org/repo/"}
|
||||
maven {url = 'https://repo.maven.apache.org/maven2'}
|
||||
maven {url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'}
|
||||
maven {url = 'https://oss.sonatype.org/content/groups/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.minebench.de/'}
|
||||
maven {url = "https://repo.aikar.co/content/groups/aikar/"}
|
||||
}
|
||||
|
||||
apply plugin: 'base'
|
||||
dependencies {
|
||||
compile 'co.aikar:acf-bukkit:0.5.0-SNAPSHOT'
|
||||
compile 'net.kyori:adventure-api:4.0.0-SNAPSHOT'
|
||||
compile 'net.kyori:adventure-nbt:4.0.0-SNAPSHOT'
|
||||
compile 'net.kyori:adventure-platform-bukkit:4.0.0-SNAPSHOT'
|
||||
compile 'net.kyori:adventure-text-minimessage:3.0.0-SNAPSHOT'
|
||||
compile 'de.themoep:minedown-adventure:1.6.1-SNAPSHOT'
|
||||
compile 'co.aikar:idb-bukkit:1.0.0-SNAPSHOT'
|
||||
compile 'com.zaxxer:HikariCP:2.4.1'
|
||||
compile 'io.github.leonardosnt:bungeechannelapi:1.0.0-SNAPSHOT'
|
||||
compile 'io.lettuce:lettuce-core:6.0.0.M1'
|
||||
|
||||
subprojects {
|
||||
apply plugin: 'java-library'
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'maven'
|
||||
compileOnly 'com.gmail.nossr50.mcMMO:mcMMO:2.1.143'
|
||||
compileOnly 'com.github.TownyAdvanced:Towny:0.96.2.0'
|
||||
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.4-SNAPSHOT'
|
||||
compileOnly 'me.clip:placeholderapi:2.10.9'
|
||||
compileOnly 'com.github.TownyAdvanced:Towny:0.96.1.11'
|
||||
compileOnly 'com.github.MilkBowl:VaultAPI:1.7'
|
||||
compileOnly 'com.vexsoftware:nuvotifier-universal:2.6.0'
|
||||
compileOnly 'net.luckperms:api:5.1'
|
||||
compileOnly 'org.jetbrains:annotations:16.0.1'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
description = 'CarbonChat'
|
||||
|
||||
maven {url = 'https://repo.maven.apache.org/maven2'}
|
||||
maven {url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'}
|
||||
maven {url = 'https://oss.sonatype.org/content/groups/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.minebench.de/'}
|
||||
maven {url = "https://repo.aikar.co/content/groups/aikar/"}
|
||||
}
|
||||
bukkit {
|
||||
name = description
|
||||
version = project.version
|
||||
main = 'net.draycia.carbon.CarbonChat'
|
||||
apiVersion = '1.13'
|
||||
author = 'Draycia'
|
||||
depend = ['PlaceholderAPI', 'Vault']
|
||||
softDepend = ['LuckPerms', 'Towny', 'mcMMO', 'WorldGuard']
|
||||
loadBefore = ["Essentials"]
|
||||
permissions {
|
||||
'carbonchat.channels.Global.see' {
|
||||
setDefault("TRUE")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
|
||||
compileOnly 'com.github.MilkBowl:VaultAPI:1.7'
|
||||
|
||||
compileOnly 'co.aikar:acf-bukkit:0.5.0-SNAPSHOT'
|
||||
compileOnly 'net.kyori:adventure-api:4.0.0-SNAPSHOT'
|
||||
compileOnly 'net.kyori:adventure-nbt:4.0.0-SNAPSHOT'
|
||||
compileOnly 'net.kyori:adventure-platform-bukkit:4.0.0-SNAPSHOT'
|
||||
compileOnly 'net.kyori:adventure-text-minimessage:3.0.0-SNAPSHOT'
|
||||
compileOnly 'de.themoep:minedown-adventure:1.6.1-SNAPSHOT'
|
||||
compileOnly 'co.aikar:idb-bukkit:1.0.0-SNAPSHOT'
|
||||
compileOnly 'com.zaxxer:HikariCP:2.4.1'
|
||||
compileOnly 'io.github.leonardosnt:bungeechannelapi:1.0.0-SNAPSHOT'
|
||||
compileOnly 'io.lettuce:lettuce-core:6.0.0.M1'
|
||||
}
|
||||
|
||||
sourceCompatibility = '1.8'
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
from(components.java)
|
||||
}
|
||||
'carbonchat.channels.Global.use' {
|
||||
setDefault("TRUE")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
tasks.withType(Jar) {
|
||||
getDestinationDirectory().set(file("$rootDir/build/bundled"))
|
||||
}
|
||||
}
|
||||
|
||||
sourceCompatibility = '1.8'
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
tasks.withType(Jar) {
|
||||
getDestinationDirectory().set(file("$rootDir/build"))
|
||||
}
|
||||
|
||||
tasks.build.dependsOn tasks.shadowJar
|
||||
|
||||
shadowJar {
|
||||
minimize()
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
|
||||
jar {
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
|
||||
|
||||
task relocateShadowJar(type: ConfigureShadowRelocation) {
|
||||
target = tasks.shadowJar
|
||||
prefix = "net.draycia.carbon.libs" // Default value is "shadow"
|
||||
}
|
||||
|
||||
tasks.shadowJar.dependsOn tasks.relocateShadowJar
|
||||
|
||||
clean.doFirst {
|
||||
delete "$rootDir/build/bundled"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
/*
|
||||
* This file was generated by the Gradle 'init' task.
|
||||
*/
|
||||
|
||||
rootProject.name = 'CarbonChatPlugin'
|
||||
|
||||
include(':CarbonChat')
|
||||
include(':CarbonChatModeration')
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user