Skip to content

Commit

Permalink
Add Metaborg publication
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed May 8, 2024
1 parent 3c77dae commit 6173df0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ gradlePipeline(
gradleBuildTasks: "build",
gradlePublishTasks: "publish",

// Releases
releaseTagPattern: "release-*.*.*",
publishUsernameProperty: "metaborg-artifacts.username",
publishPasswordProperty: "metaborg-artifacts.password",

// Slack
slack: true,
slackChannel: "#spoofax3-dev"
Expand Down
18 changes: 18 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import java.net.URI

// Workaround for issue: https://youtrack.jetbrains.com/issue/KTIJ-19369
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
Expand All @@ -10,6 +12,8 @@ plugins {


group = "org.metaborg"
description = "A Git-based versioning plugin for Gradle."
extra["isReleaseVersion"] = !version.toString().endsWith("-SNAPSHOT")

repositories {
mavenCentral()
Expand Down Expand Up @@ -38,6 +42,8 @@ configure<JavaPluginExtension> {
}

gradlePlugin {
website.set("https://github.com/metaborg/gitonium")
vcsUrl.set("https://github.com/metaborg/gitonium")
plugins {
create("gitonium") {
id = "org.metaborg.gitonium"
Expand Down Expand Up @@ -84,6 +90,18 @@ publishing {
}
}
}
repositories {
maven {
val releasesRepoUrl = uri("https://artifacts.metaborg.org/content/repositories/releases/")
val snapshotsRepoUrl = uri("https://artifacts.metaborg.org/content/repositories/snapshots/")
name = "MetaborgArtifacts"
url = if (project.extra["isReleaseVersion"] as Boolean) releasesRepoUrl else snapshotsRepoUrl
credentials {
username = project.findProperty("metaborg-artifacts.username") as String?
password = project.findProperty("metaborg-artifacts.password") as String?
}
}
}
}


Expand Down

0 comments on commit 6173df0

Please sign in to comment.