Skip to content

Commit

Permalink
BROKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
powercasgamer committed Dec 2, 2023
1 parent ea03d8e commit 8a3126f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 69 deletions.
38 changes: 38 additions & 0 deletions build-logic/src/main/kotlin/gremlin-stuff.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
plugins {
id("common-conventions")
id("xyz.jpenilla.gremlin-gradle")
}

val runtimeDownloadOnlyApi by configurations.registering {
extendsFrom(configurations.compileOnlyApi.get())
extendsFrom(configurations.runtimeDownload.get())
}

val runtimeDownloadApi by configurations.registering {
extendsFrom(configurations.api.get())
extendsFrom(configurations.runtimeDownload.get())
}

dependencies {
implementation(libs.gremlin.runtime)

}

tasks.writeDependencies {
outputFileName.set("dependencies.txt")
repos.add("https://repo.papermc.io/repository/maven-public/")
repos.add("https://repo.maven.apache.org/maven2/")
repos.add("https://maven.mizule.dev/")
repos.add("https://maven.reposilite.com/snapshots/")
repos.add("https://maven.reposilite.com/releases/")
}

gremlin {
defaultJarRelocatorDependencies.set(true)
defaultGremlinRuntimeDependency.set(false)
}

configurations.runtimeDownload {
exclude("org.checkerframework", "checker-qual")
exclude("org.jetbrains", "annotations")
}
35 changes: 1 addition & 34 deletions paper/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,28 +1,14 @@
import java.util.*

plugins {
id("common-conventions")
id("kotlin-conventions")
id("paper-conventions")
id("xyz.jpenilla.gremlin-gradle")
}

fun DependencyHandler.runtimeDownloadApi(dependencyNotation: Any) {
api(dependencyNotation)
runtimeDownload(dependencyNotation)
}

fun DependencyHandler.runtimeDownloadOnlyApi(dependencyNotation: Any) {
compileOnlyApi(dependencyNotation)
runtimeDownload(dependencyNotation)
id("gremlin-stuff")
}

dependencies {
api(projects.timetriggeredpermsCore)
compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT")
compileOnly("net.luckperms:api:5.4")
implementation(libs.gremlin.runtime)

runtimeDownloadOnlyApi(kotlin("stdlib"))
runtimeDownloadOnlyApi(kotlin("reflect"))
runtimeDownloadOnlyApi("org.spongepowered:configurate-yaml:4.2.0-SNAPSHOT")
Expand All @@ -44,22 +30,3 @@ idea {
isDownloadSources = true
}
}

tasks.writeDependencies {
outputFileName.set("dependencies.txt")
repos.add("https://repo.papermc.io/repository/maven-public/")
repos.add("https://repo.maven.apache.org/maven2/")
repos.add("https://maven.mizule.dev/")
repos.add("https://maven.reposilite.com/snapshots/")
repos.add("https://maven.reposilite.com/releases/")
}

gremlin {
defaultJarRelocatorDependencies.set(true)
defaultGremlinRuntimeDependency.set(false)
}

configurations.runtimeDownload {
exclude("org.checkerframework", "checker-qual")
exclude("org.jetbrains", "annotations")
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ import org.bstats.bukkit.Metrics
import org.bukkit.Bukkit
import org.bukkit.plugin.java.JavaPlugin
import org.spongepowered.configurate.kotlin.extensions.get
import org.spongepowered.configurate.kotlin.objectMapperFactory
import org.spongepowered.configurate.yaml.NodeStyle
import org.spongepowered.configurate.yaml.YamlConfigurationLoader

class TTP : JavaPlugin(), TTPPlugin<JavaPlugin> {

Expand Down
33 changes: 1 addition & 32 deletions velocity/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,13 @@ plugins {
id("kotlin-conventions")
id("velocity-conventions")
kotlin("kapt")
id("xyz.jpenilla.gremlin-gradle")
}

fun DependencyHandler.runtimeDownloadApi(dependencyNotation: Any) {
api(dependencyNotation)
runtimeDownload(dependencyNotation)
}

fun DependencyHandler.runtimeDownloadOnlyApi(dependencyNotation: Any) {
compileOnlyApi(dependencyNotation)
runtimeDownload(dependencyNotation)
id("gremlin-stuff")
}

dependencies {
api(projects.timetriggeredpermsCore)
compileOnly("net.luckperms:api:5.4")
compileOnly("com.velocitypowered:velocity-api:3.2.0-SNAPSHOT")
kapt("com.velocitypowered:velocity-api:3.2.0-SNAPSHOT")
implementation(libs.gremlin.runtime)
runtimeDownloadOnlyApi(kotlin("stdlib"))
runtimeDownloadOnlyApi(kotlin("reflect"))
runtimeDownloadOnlyApi("org.spongepowered:configurate-yaml:4.2.0-SNAPSHOT")
Expand All @@ -45,22 +33,3 @@ idea {
isDownloadSources = true
}
}

tasks.writeDependencies {
outputFileName.set("dependencies.txt")
repos.add("https://repo.papermc.io/repository/maven-public/")
repos.add("https://repo.maven.apache.org/maven2/")
repos.add("https://maven.mizule.dev/")
repos.add("https://maven.reposilite.com/snapshots/")
repos.add("https://maven.reposilite.com/releases/")
}

gremlin {
defaultJarRelocatorDependencies.set(true)
defaultGremlinRuntimeDependency.set(false)
}

configurations.runtimeDownload {
exclude("org.checkerframework", "checker-qual")
exclude("org.jetbrains", "annotations")
}

0 comments on commit 8a3126f

Please sign in to comment.