Skip to content

Commit

Permalink
Merge branch 'release/v0.2.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
Xharos committed May 20, 2024
2 parents cb797fb + 6e8baee commit 42d53e5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
21 changes: 13 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
plugins {
id("java")
id("maven-publish")
id("com.github.johnrengelman.shadow") version "8.1.1"
}

group = "fr.islandswars"
version = "0.2.2"
version = "0.2.5"

repositories {
mavenCentral()
Expand All @@ -30,21 +29,27 @@ tasks.withType<Jar> {
}
}

tasks.shadowJar {
manifest {
attributes["Main-Class"] = "fr.islandswars.commons.Commons"
}
val sourceJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}

val javadocJar by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
from(tasks.javadoc.get().destinationDir)
}

publishing {
publications {
create<MavenPublication>("gpr") {
project.shadow.component(this)

from(components["java"])
groupId = rootProject.group.toString()
artifactId = rootProject.name
version = version

artifact(sourceJar)
artifact(javadocJar)

pom {
name.set(rootProject.name)
description.set("Utility classes for connecting to islands-wars database")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ class LocalCache {
private final ArrayDeque<ByteBuffer> queue = new ArrayDeque<>();
private int outstanding;

protected void finalize() {
empty();
}

void empty() {
while (!queue.isEmpty()) {
masterQueue.add(queue.poll());
Expand Down

0 comments on commit 42d53e5

Please sign in to comment.