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: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## v0.2.2 - Snapshot
* Added `Logger#debug` method
* Added `Logger#severe(String, Exception)` method
* Updated dependencies
* Minecraft 1.19 Support

## v0.2.1 - Snapshot
* Updated Dependencies
Expand Down
16 changes: 9 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import org.apache.tools.ant.filters.ReplaceTokens

plugins {
id 'org.jetbrains.kotlin.jvm' version '1.7.0'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'net.kyori.blossom' version '1.2.0'
id 'org.jetbrains.dokka' version '1.6.21'
}

Expand All @@ -14,6 +13,7 @@ version projectVersion
description 'Just a logger for the SimpleCore API'

repositories {
mavenLocal()
mavenCentral()

maven { url 'https://repo.theprogramsrc.xyz/repository/maven-public/' }
Expand All @@ -27,9 +27,7 @@ repositories {

dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.7.0'
compileOnly 'org.spigotmc:spigot-api:1.18.1-R0.1-SNAPSHOT'
compileOnly 'net.md-5:bungeecord-api:1.18-R0.1-SNAPSHOT'
compileOnly 'xyz.theprogramsrc:simplecoreapi:0.3.5-SNAPSHOT'
compileOnly 'xyz.theprogramsrc:simplecoreapi:0.4.0-SNAPSHOT'

compileOnly 'org.apache.logging.log4j:log4j-api:2.17.2'
compileOnly 'org.apache.logging.log4j:log4j-core:2.17.2'
Expand All @@ -56,8 +54,12 @@ java {
withSourcesJar()
}

processResources {
filter ReplaceTokens, tokens: [name: rootProject.name, version: project.version.toString(), description: project.description, git_short: System.getenv("GIT_COMMIT_SHORT_HASH") ?: "unknown", git_full: System.getenv("GIT_COMMIT_LONG_HASH") ?: "unknown"]
blossom {
replaceToken '@name@', rootProject.name
replaceToken '@version@', project.version.toString()
replaceToken '@description@', project.description
replaceToken '@git_short@', System.getenv("GIT_COMMIT_SHORT_HASH") ?: "unknown"
replaceToken '@git_full@', System.getenv("GIT_COMMIT_LONG_HASH") ?: "unknown"
}

tasks.withType(JavaCompile) {
Expand Down