Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
javaVersion=25
mcVersion=26.1.2
group=dev.slne.surf.api
version=3.12.0
version=3.13.0
relocationPrefix=dev.slne.surf.api.libs
snapshot=false
3 changes: 2 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ kotlinxCoroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-co
kotlinxCoroutines-reactor = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-reactor", version.ref = "kotlinxCoroutines" }
kotlinxCoroutines-reactive = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-reactive", version.ref = "kotlinxCoroutines" }
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlinVersion" }
kotlin-compiler = { module = "org.jetbrains.kotlin:kotlin-compiler", version.ref = "kotlinVersion" }
kotlin-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" }
kotlin-serialization-protobuf = { module = "org.jetbrains.kotlinx:kotlinx-serialization-protobuf", version.ref = "kotlinx-serialization" }
kotlin-serialization-cbor = { module = "org.jetbrains.kotlinx:kotlinx-serialization-cbor", version.ref = "kotlinx-serialization" }
Expand Down Expand Up @@ -115,7 +116,7 @@ adventure-nbt = { module = "net.kyori:adventure-nbt", version.ref = "adventure-a

# Velocity
velocity-api = { module = "com.velocitypowered:velocity-api", version.ref = "velocity-api" }
velocity-proxy-ctd = { module = "com.velocityctd:velocity-proxy", version.ref = "velocity-api"}
velocity-proxy-ctd = { module = "com.velocityctd:velocity-proxy", version.ref = "velocity-api" }

# PAPI
placeholder-api = { module = "me.clip:placeholderapi", version.ref = "placeholder-api" }
Expand Down
2 changes: 2 additions & 0 deletions surf-api-gradle-plugin/surf-api-processor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ dependencies {

// https://mvnrepository.com/artifact/com.squareup/kotlinpoet
implementation("com.squareup:kotlinpoet:2.3.0")
implementation("com.palantir.javapoet:javapoet:0.7.0")
implementation(libs.kotlin.compiler)
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package dev.slne.surf.api.processor

import dev.slne.surf.api.processor.util.nameOf
import dev.slne.surf.api.processor.util.shortNameOf
import dev.slne.surf.api.shared.api.component.Priority
import dev.slne.surf.api.shared.api.component.SurfComponentMeta
import dev.slne.surf.api.shared.api.component.processor.ComponentPostProcessor
import dev.slne.surf.api.shared.api.component.requirement.*
import dev.slne.surf.api.shared.api.reflection.*
import dev.slne.surf.api.shared.internal.nms.NmsProviderMarker

object ClassNames {
Expand All @@ -21,4 +23,23 @@ object ClassNames {
val CONDITIONAL_ON_PROPERTY = nameOf<ConditionalOnProperty>()
val COMPONENT_POST_PROCESSOR = nameOf<ComponentPostProcessor>()
val NMS_PROVIDER = nameOf<NmsProviderMarker>()

val GENERATE_REFLECTION = nameOf<GenerateReflection>()
val UNSPECIFIED_REFLECTION_TARGET = nameOf<UnspecifiedReflectionTarget>()
val REFLECTED_METHOD = nameOf<ReflectedMethod>()
val REFLECTED_CONSTRUCTOR = nameOf<ReflectedConstructor>()
val REFLECTED_FIELD = nameOf<ReflectedField>()
val REFLECTED_VAR_HANDLE = nameOf<ReflectedVarHandle>()
val CONSTANT_INT_ARGUMENT = nameOf<ConstantIntArgument>()
val CONSTANT_LONG_ARGUMENT = nameOf<ConstantLongArgument>()
val CONSTANT_BOOLEAN_ARGUMENT = nameOf<ConstantBooleanArgument>()
val CONSTANT_STRING_ARGUMENT = nameOf<ConstantStringArgument>()
}

object ShortClassNames {
val GENERATE_REFLECTION = shortNameOf<GenerateReflection>()
val CONSTANT_INT_ARGUMENT = shortNameOf<ConstantIntArgument>()
val CONSTANT_LONG_ARGUMENT = shortNameOf<ConstantLongArgument>()
val CONSTANT_BOOLEAN_ARGUMENT = shortNameOf<ConstantBooleanArgument>()
val CONSTANT_STRING_ARGUMENT = shortNameOf<ConstantStringArgument>()
}
Loading