Skip to content

Commit

Permalink
fix(deps): Updated Blossom usage
Browse files Browse the repository at this point in the history
  • Loading branch information
4drian3d committed Sep 14, 2023
1 parent 2a0dce8 commit 6c34d58
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 20 deletions.
16 changes: 11 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
alias(libs.plugins.blossom)
alias(libs.plugins.shadow)
alias(libs.plugins.runvelocity)
alias(libs.plugins.idea.ext)
}

repositories {
Expand Down Expand Up @@ -36,11 +37,16 @@ dependencies {
testImplementation(libs.mockito)
}

blossom {
replaceTokenIn("src/main/java/io/github/_4drian3d/kickredirect/utils/Constants.java")
replaceToken("{version}", version)
replaceToken("{configurate}", libs.versions.configurate.get())
replaceToken("{geantyref}", libs.versions.geantyref.get())
sourceSets {
main {
blossom {
javaSources {
property("version", project.version.toString())
property("configurate", libs.versions.configurate.get())
property("geantyref", libs.versions.geantyref.get())
}
}
}
}

tasks {
Expand Down
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ configurate = "4.1.2"
miniplaceholders = "2.2.1"

# Plugins
blossom = "1.3.1"
blossom = "2.0.1"
shadow = "8.1.1"
runvelocity = "2.1.0"

Expand Down Expand Up @@ -46,4 +46,5 @@ mockito = { group = "org.mockito", name = "mockito-core", version.ref = "mockito

blossom = { id = "net.kyori.blossom", version.ref = "blossom" }
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
runvelocity = { id = "xyz.jpenilla.run-velocity", version.ref = "runvelocity" }
runvelocity = { id = "xyz.jpenilla.run-velocity", version.ref = "runvelocity" }
idea-ext = { id = "org.jetbrains.gradle.plugin.idea-ext", version = "1.1.7" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package io.github._4drian3d.kickredirect.utils;

public final class Constants {
/**Plugin Version */
public static final String VERSION = "{{ version }}";

/**Configurate Version */
public static final String CONFIGURATE = "{{ configurate }}";
/**Geantyref Version (Configurate Dependency)*/
public static final String GEANTYREF = "{{ geantyref }}";

private Constants() {}
}

This file was deleted.

0 comments on commit 6c34d58

Please sign in to comment.