-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,065 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import org.metaborg.convention.MavenPublishConventionExtension | ||
|
||
plugins { | ||
id("org.metaborg.convention.root-project") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import org.metaborg.convention.MavenPublishConventionExtension | ||
|
||
// Workaround for issue: https://youtrack.jetbrains.com/issue/KTIJ-19369 | ||
@Suppress("DSL_SCOPE_VIOLATION") | ||
plugins { | ||
id("org.metaborg.convention.root-project") | ||
alias(libs.plugins.gitonium) | ||
} | ||
|
||
allprojects { | ||
group = "org.metaborg" | ||
|
||
pluginManager.withPlugin("org.metaborg.convention.maven-publish") { | ||
extensions.configure(MavenPublishConventionExtension::class.java) { | ||
repoOwner.set("metaborg") | ||
repoName.set("metaborg-gradle") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
plugins { | ||
`version-catalog` | ||
`maven-publish` | ||
signing | ||
} | ||
|
||
group = "org.metaborg" | ||
description = "A Spoofax 3 catalog." | ||
|
||
// WORKAROUND: Normally the generateCatalogAsToml task is used to generate the TOML file, | ||
// but this task cannot be run before the configuration phase. Therefore, there is a chicken-and-egg | ||
// problem, where this project needs to be configured to run the generateCatalogAsToml task, | ||
// yet the generateCatalogAsToml task must be run before the projects can be configured. | ||
// To workaround this, I use an explicit TOML file and bypass the generateCatalogAsToml task | ||
// to just report the existing TOML file as its artifact. | ||
// From: https://github.com/gradle/gradle/issues/19288#issuecomment-1399277313 | ||
configurations.versionCatalogElements { | ||
outgoing.artifacts.clear() | ||
outgoing.artifact(layout.projectDirectory.dir("../gradle/libs.versions.toml")) | ||
} | ||
|
||
catalog { | ||
versionCatalog { | ||
from(files("../gradle/libs.versions.toml")) | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("mavenCatalog") { | ||
from(components["versionCatalog"]) | ||
pom { | ||
name.set("Spoofax 3 Catalog") | ||
} | ||
} | ||
} | ||
} | ||
|
||
// signing { | ||
// sign(publishing.publications["mavenCatalog"]) | ||
// } |
Oops, something went wrong.