Skip to content

Commit

Permalink
0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
squid233 committed Sep 16, 2023
1 parent 0c44772 commit e8fc205
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 14 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@

Utilities Bill of Materials.

## Libraries

- [bin-packing](https://github.com/Over-Run/bin-packing): The Java port of jakesgordon/bin-packing.
- [bin-tag](https://github.com/Over-Run/bin-tag): Java binary tags
- [pooling](https://github.com/Over-Run/pooling): Object pools for multi-threading
- [timer](https://github.com/Over-Run/timer): Java game loop timer
- [unifont](https://github.com/Over-Run/unifont): Java Unifont binding

## Usage

```groovy
dependencies {
implementation(platform("io.github.over-run:utilities:0.3.0"))
implementation(platform("io.github.over-run:utilities:0.4.0"))
}
```
43 changes: 32 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,27 @@ val developers: String by project
group = projGroupId
version = projVersion

enum class Artifacts(val artifact: String, val version: String) {
BIN_PACKING("bin-packing", "0.5.0"),
BIN_TAG("bin-tag", "0.2.0"),
TIMER("timer", "0.3.0"),
UNIFONT("unifont", "15.0.06.1")
}
val binPackingVersion: String by project
val binTagVersion: String by project
val poolingVersion: String by project
val timerVersion: String by project
val unifontVersion: String by project

data class Artifact(val artifact: String, val version: String)

val BIN_PACKING = Artifact("bin-packing", binPackingVersion)
val BIN_TAG = Artifact("bin-tag", binTagVersion)
val POOLING = Artifact("pooling", poolingVersion)
val TIMER = Artifact("timer", timerVersion)
val UNIFONT = Artifact("unifont", unifontVersion)

val utilities = arrayOf(
BIN_PACKING,
BIN_TAG,
POOLING,
TIMER,
UNIFONT
)

repositories {
mavenCentral()
Expand Down Expand Up @@ -72,11 +87,17 @@ publishing {
withXml {
asElement().getElementsByTagName("dependencyManagement").item(0).apply {
asElement().getElementsByTagName("dependencies").item(0).apply {
Artifacts.values().forEach {
utilities.forEach {
ownerDocument.createElement("dependency").also(::appendChild).apply {
appendChild(ownerDocument.createElement("groupId").also(::appendChild).apply { textContent = "io.github.over-run" })
appendChild(ownerDocument.createElement("artifactId").also(::appendChild).apply { textContent = it.artifact })
appendChild(ownerDocument.createElement("version").also(::appendChild).apply { textContent = it.version })
appendChild(
ownerDocument.createElement("groupId").also(::appendChild)
.apply { textContent = "io.github.over-run" })
appendChild(
ownerDocument.createElement("artifactId").also(::appendChild)
.apply { textContent = it.artifact })
appendChild(
ownerDocument.createElement("version").also(::appendChild)
.apply { textContent = it.version })
}
}
}
Expand Down Expand Up @@ -115,7 +136,7 @@ signing {

dependencies {
constraints {
Artifacts.values().forEach {
utilities.forEach {
api("io.github.over-run:${it.artifact}:${it.version}")
}
}
Expand Down
8 changes: 7 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
org.gradle.jvmargs=-Dfile.encoding=UTF-8

binPackingVersion=0.5.0
binTagVersion=0.2.0
poolingVersion=0.1.0
timerVersion=0.3.0
unifontVersion=15.1.01

# Project information
projGroupId=io.github.over-run
projArtifactId=utilities
projName=utilities
projVersion=0.3.0
projVersion=0.4.0
projVcs=Over-Run/utilities
projBranch=main

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 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit e8fc205

Please sign in to comment.