Skip to main content

Tegral Catalog

Tegral Catalog is a shared Gradle version catalog that you can import in your own projects. It makes it easier to add Tegral dependencies to your project and ensures that all Tegral dependencies version numbers are synced within your project.

implementation tegralLibs.config.core
implementation tegralLibs.di.core

testImplementation tegralLibs.di.test

Tegral Catalog is completely optional. You can add Tegral libraries just like regular Maven dependencies using the usual groupId:artifactId:version syntax.

Adding Tegral Catalog to your project

Tegral Catalog is a settings plugin, meaning that you will need to add it in your settings.gradle file.

settings.gradle
dependencyResolutionManagement {
repositories {
mavenCentral()
}

versionCatalogs {
tegralLibs {
from("guru.zoroark.tegral:tegral-catalog:VERSION")
}
}
}

Refer to the version catalog documentation for more information.

Dependencies and bundles

The catalog is generated dynamically from all of the published components in the Tegral repository.

Additionally, the catalog contains a few bundles mainly intended for applications that use the full Tegral platform and not just individual libraries. The bundles are as follows:

web

Full notation: tegralLibs.bundles.web

This bundle includes all of the required components for building Tegral Web applications (i.e. Tegral Web AppDSL, Tegral Web AppDefaults and all of their dependencies, such as Tegral DI or Tegral Config).

build.gradle
dependencies {
implementation tegralLibs.bundles.web
}

web-test

Full notation: tegralLibs.bundles.web.test

This bundle is the equivalent of the web component but for use in tests. It includes components recommended for testing Tegral applications, such as tegral-web-controllers-test or tegral-di-test.

build.gradle
dependencies {
testImplementation tegralLibs.bundles.web.test
}