Skip to content

Commit

Permalink
chore: add publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfist committed Aug 18, 2024
1 parent ce6e5b6 commit 1cfeb8b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
id("buildlogic.java-library-conventions")
id("buildlogic.swt-library-conventions")
id("buildlogic.artifact-conventions")
id("buildlogic.version-conventions")
id("buildlogic.publishing-conventions")
}

dependencies {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
plugins {
id("buildlogic.java-library-conventions")
id("maven-publish")
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
groupId = project.group as String
artifactId = project.name
version = project.version as String

pom {
name.set("Particle")
description.set("Particle HTML UI for Java")
url.set("https://github.com/bitfist/particle")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0")
}
}
developers {
developer {
id.set("bitfist")
name.set("bitfist")
}
}
scm {
connection.set("scm:git:git://github.com/bitfist/particle.git")
developerConnection.set("scm:git:ssh://github.com:bitfist/particle.git")
url.set("https://github.com/bitfist/particle")
}
}
}
}

repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/bitfist/particle")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

0 comments on commit 1cfeb8b

Please sign in to comment.