diff --git a/CHANGELOG.md b/CHANGELOG.md index 5134a2a..e3d4230 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.2.0] - 2024-10-19 + ### Changed - System fonts are ignored by default. For Typst versions older than 0.12.0 to run successfully, the `useSystemfonts` property of `TypstCompileTask` must be set to `false`. @@ -22,5 +24,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - DSL extension to configure Typst version and multiple source sets - Some auxiliary value sources for git has and latest GitHub release -[unreleased]: https://github.com/infolektuell/gradle-jextract/compare/v0.1.0...HEAD -[0.1.0]: https://github.com/infolektuell/gradle-jextract/releases/tag/v0.1.0 +[unreleased]: https://github.com/infolektuell/gradle-typst/compare/v0.2.0...HEAD +[0.2.0]: https://github.com/infolektuell/gradle-typst/compare/v0.1.0...v0.2.0 +[0.1.0]: https://github.com/infolektuell/gradle-typst/releases/tag/v0.1.0 diff --git a/README.md b/README.md index c77878a..90f88db 100644 --- a/README.md +++ b/README.md @@ -35,11 +35,11 @@ plugins { // Good practice to have some standard tasks like clean, assemble, build id("base") // Apply the Typst plugin - id("de.infolektuell.typst") version "0.1.0" + id("de.infolektuell.typst") version "0.2.0" } // The release tag for the Typst version to be used, defaults to latest stable release on GitHub -typst.version = "v0.12.0-rc1" +typst.version = "v0.12.0" ``` ### Adding sources @@ -107,6 +107,18 @@ Typst receives the project directory as root (not the root project), so absolute ### Fonts A document receives the fonts subfolders of their source set and added shared source sets as font paths. +Since version 0.2.0 of this plugin, system fonts are ignored by default for higher reproducibility. +If a Typst version below 0.12.0 is in use or if system fonts should be considered, this must be turned off per configuration: + +```gradle kotlin dsl +import de.infolektuell.gradle.typst.tasks.TypstCompileTask + +// Configure all typst tasks +tasks.withType(TypstCompileTask::class) { + // Override the convention (false by default) + useSystemFonts = true +} +``` ## License diff --git a/gradle.properties b/gradle.properties index 586fa87..84f3a91 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ group=de.infolektuell -version=0.1.0 +version=0.2.0 diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index 5bd5bfc..6ff1ca0 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -1,5 +1,3 @@ -import org.jetbrains.kotlin.gradle.dsl.JvmTarget - plugins { kotlin("jvm") version "2.0.20" signing