Skip to content

Commit

Permalink
Add a publish workflow for core package (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
lopcode authored Aug 20, 2024
1 parent 1be950e commit 75a6671
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
import java.net.URI

plugins {
id("com.github.johnrengelman.shadow") version "8.1.1"
`java-library`
`maven-publish`
}

repositories {
Expand Down Expand Up @@ -66,4 +68,32 @@ tasks.withType<JavaExec>().configureEach {
javaLauncher.set(project.javaToolchains.launcherFor(java.toolchain))
}

dependencies {}
dependencies {}

publishing {
publications {
create<MavenPublication>("mavenJava") {
groupId = "app.photofox.vipsffm"
artifactId = "vips-ffm-core"
version = System.getenv("GITHUB_VERSION")

from(components["java"])

pom {
name.set("vips-ffm-core")
description.set("libvips bindings for JVM projects, using JDK 22's FFM and Class-File APIs, for performant, safe, and ergonomic image manipulation")
url.set("https://github.com/lopcode/vips-ffm")
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = URI.create("https://maven.pkg.github.com/lopcode/vips-ffm")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

0 comments on commit 75a6671

Please sign in to comment.