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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.idea
.gradle
**/build/
!src/**/build/

**/test/kotlin/pack

# Ignore Gradle GUI config
gradle-app.setting

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# solid-api ![Maven Central Version](https://img.shields.io/maven-central/v/io.github.solid-resourcepack/solid-api?style=flat) ![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/solid-resourcepack/solid-api)
A library built on top of [creative](https://github.com/unnamed/creative) to make resource pack generation simpler.
Visit the [Wiki]() to learn more
A (currently) read only API for minecraft resource packs.

> Documentation is still work in progress

Expand Down
16 changes: 6 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.shadow)
alias(libs.plugins.kotlin)
alias(libs.plugins.sonatypeCentralPortalPublisher)
alias(libs.plugins.sonatype.central.portal.publisher)
`maven-publish`
}

group = "io.github.solid-resourcepack"
version = "1.0.12"
version = "1.1.0"

repositories {
mavenCentral()
Expand All @@ -18,11 +18,10 @@ repositories {
}

dependencies {
testImplementation(rootProject.libs.kotlinTest)
implementation(rootProject.libs.kotlinJvm)
compileOnly(libs.paper)
api(libs.solidMaterial)
api(libs.bundles.creative)
testImplementation(rootProject.libs.kotlin.test)
implementation(rootProject.libs.kotlin.jvm)
implementation(rootProject.libs.bundles.configurate)
api(rootProject.libs.adventure)
}

kotlin {
Expand All @@ -40,9 +39,6 @@ tasks.named("shadowJar", ShadowJar::class) {

tasks.test {
useJUnitPlatform()
dependencies {
implementation(libs.paper)
}
}

publishing {
Expand Down
27 changes: 12 additions & 15 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,25 @@
kotlin = "1.9.20"
kotlinCoroutines = "1.4.2"
shadow = "8.1.1"
paper = "1.21-R0.1-SNAPSHOT"
creative = "1.7.2"
sonatypeCentralPortalPublisher = "1.2.3"
solidMaterial = "1.21-1.1.1"
configurate = "4.2.0"
adventure = "4.19.0"

[libraries]
kotlinJvm = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" }
kotlinTest = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlinCoroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinCoroutines" }
paper = { module = "io.papermc.paper:paper-api", version.ref = "paper" }

creativeApi = { module = "team.unnamed:creative-api", version.ref = "creative" }
creativeSerializer = { module = "team.unnamed:creative-serializer-minecraft", version.ref = "creative" }
solidMaterial = { module = "io.github.solid-resourcepack:solid-material-api", version.ref = "solidMaterial" }
kotlin-jvm = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" }
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlin-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinCoroutines" }
configurate = { module = "org.spongepowered:configurate-gson", version.ref = "configurate" }
configurate-extra-kotlin = { module = "org.spongepowered:configurate-extra-kotlin", version.ref = "configurate" }
adventure = { module = "net.kyori:adventure-api", version.ref = "adventure" }

[bundles]
creative = [
"creativeApi",
"creativeSerializer"
configurate = [
"configurate",
"configurate-extra-kotlin"
]

[plugins]
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
sonatypeCentralPortalPublisher = { id = "net.thebugmc.gradle.sonatype-central-portal-publisher", version.ref = "sonatypeCentralPortalPublisher" }
sonatype-central-portal-publisher = { id = "net.thebugmc.gradle.sonatype-central-portal-publisher", version.ref = "sonatypeCentralPortalPublisher" }
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
249 changes: 249 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading