Skip to content

Commit

Permalink
fix publishing. (#103)
Browse files Browse the repository at this point in the history
* add publishing again.

* Update build.gradle.kts

* fix javadoc links.
  • Loading branch information
portlek authored Feb 20, 2024
1 parent dfb90da commit 9320767
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 49 deletions.
37 changes: 37 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import com.google.protobuf.gradle.id
plugins {
java
`java-library`
`maven-publish`
alias(libs.plugins.protobuf)
}

Expand Down Expand Up @@ -79,3 +80,39 @@ tasks {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
groupId = project.group.toString()
artifactId = "agones4j"
version = project.version.toString()
from(components["java"])
artifact(tasks["sourcesJar"])
artifact(tasks["javadocJar"])
pom {
name.set("Agones4J")
description.set("Java wrapper for Agones client SDK.")
url.set("https://infumia.com.tr/")
licenses {
license {
name.set("MIT License")
url.set("https://mit-license.org/license.txt")
}
}
developers {
developer {
id.set("portlek")
name.set("Hasan Demirtaş")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/infumia/agones4j.git")
developerConnection.set("scm:git:ssh://github.com/infumia/agones4j.git")
url.set("https://github.com/infumia/agones4j")
}
}
}
}
}
Loading

0 comments on commit 9320767

Please sign in to comment.