Skip to content

Commit

Permalink
Use own version for catalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jul 13, 2024
1 parent 3b07796 commit 096a185
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion convention-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
`maven-publish`
// signing
// We don't use the version catalog here, to avoid a bootstrapping problem.
id("org.metaborg.gitonium") version "1.4.0"
id("org.metaborg.gitonium") version "1.4.1"
}

group = "org.metaborg"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ object BuildInfo {
}
}

/** The library version. */
/** The current version. */
val version: String get() = checkNotNull(properties.getProperty("version"))
/** The most recent release version. */
val releaseVersion: String get() = checkNotNull(properties.getProperty("release-version"))
/** The commit ID. */
val commit: String get() = checkNotNull(properties.getProperty("short-revision"))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package org.metaborg.convention

import org.gradle.api.provider.Property

/** Configuration for the settings build convention. */
interface SettingsConventionExtension {

/**
* Sets the convention (default values) for the configuration extension.
*/
fun setConvention() {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import org.gradle.kotlin.dsl.maven
class SettingsConventionPlugin: Plugin<Settings> {

// Version of org.metaborg.spoofax3:catalog to be used for Metaborg projects
private val catalogVersion = "0.5.1"
private val catalogVersion = BuildInfo.releaseVersion

@Suppress("UnstableApiUsage")
override fun apply(settings: Settings): Unit = with(settings) {
Expand All @@ -39,7 +39,7 @@ class SettingsConventionPlugin: Plugin<Settings> {
}
versionCatalogs {
create("libs") {
from("org.metaborg.spoofax3:catalog:$catalogVersion")
from("org.metaborg:catalog:$catalogVersion")
}
}
}
Expand Down

0 comments on commit 096a185

Please sign in to comment.