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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ build/
!**/src/main/**/build/
!**/src/test/**/build/
CLAUDE.md
target/

### IntelliJ IDEA ###
.idea/modules.xml
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ Add Structura to your project:

```gradle
repository {
maven { url = "https://jitpack.io" } // JitPack repository for Structura
maven { url = "https://repo.groupez.dev/releases" } // Add Structura repository replace releases with snapshots if needed
}

dependencies {
implementation("com.github.Traqueur-dev:Structura:<VERSION>") // Replace <VERSION> with the latest release
implementation("fr.traqueur:structura:<VERSION>") // Replace <VERSION> with the latest release
implementation("org.yaml:snakeyaml:2.4") // Required for YAML parsing
}
```
Expand Down
15 changes: 10 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ plugins {
group = "fr.traqueur"
version = property("version")!!

rootProject.extra.properties["sha"]?.let { sha ->
version = sha
}

extra.set("targetFolder", file("target/"))
extra.set("classifier", System.getProperty("archive.classifier"))
extra.set("sha", System.getProperty("github.sha"))

rootProject.extra.properties["sha"]?.let { sha ->
version = sha
}

repositories {
mavenCentral()
}
Expand Down Expand Up @@ -70,7 +70,12 @@ tasks.build {
}

tasks.shadowJar {
archiveClassifier.set("")
rootProject.extra.properties["sha"]?.let { sha ->
archiveClassifier.set("${rootProject.extra.properties["classifier"]}-${sha}")
} ?: run {
archiveClassifier.set(rootProject.extra.properties["classifier"] as String?)
}
destinationDirectory.set(rootProject.extra["targetFolder"] as File)
}

tasks.processResources {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Mar 25 10:59:06 CET 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading