mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
09953a3f78
* chore: bump version to v2.3.0-preview * Customize start page (#803) * Update ConfigService to support complex Objects Implemented tests for ConfigService * Added DB migration for config table * Fixed version in banner.txt not being displayed * Implement Library ordering Implement "Show recently added games on homepage" * Fix build.gradle.kts * FIx bug when creating libraries * Fix TypeScript errors Fix library sorting * Bump actions/checkout from 5 to 6 (#811) Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Added automatic scanning using file system watchers (#813) * Implement collections (#814) * Backend implementation for collections * Fix database schema and migration script * Refactor some config values Fix ArrayInput not being deactivatable * Remove "AutoRegisterNewUsers" config option * Fix bug when removing ignored paths * Add UI for collections (WIP) * Fix table actions not synced with state Fix tests * Finish implementation of collection feature * Fix tests * Bump actions/checkout from 5 to 6 (#815) Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix "allow guests to create game requests" not being enabled when guest access is activated * Fix: Disable loading of EditGameMetadataModal and MatchGameModal in GameView when user is not admin * Bump actions/checkout from 5 to 6 (#819) Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Overhaul startpage (#823) * WIP: Update start page layout * Performance improvements (lazy loading and virtualized grids/lists) Fix various smaller issues * Implement use of blurhash for all images in backend and covers in frontend * Fix bugs and test * Fix code analysis issues * Remove "UI settings" since they have been made obsolete * Remove length limit from "image.originalUrl" (#824) * Remove alpine based image (#825) * Fix bug when games from library are still in a collection, thus prevention deletion of said library * Delete image files in background * Fix layout --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
88 lines
2.5 KiB
Kotlin
88 lines
2.5 KiB
Kotlin
import groovy.json.JsonOutput
|
|
import groovy.json.JsonSlurper
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
|
import java.nio.file.Files
|
|
|
|
group = "org.gameyfin"
|
|
version = "2.3.0-preview"
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
mavenLocal()
|
|
maven {
|
|
setUrl("https://maven.vaadin.com/vaadin-prereleases/")
|
|
}
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
}
|
|
|
|
tasks.named<Jar>("jar") {
|
|
enabled = false
|
|
}
|
|
|
|
subprojects {
|
|
apply(plugin = "java")
|
|
|
|
java.sourceCompatibility = JavaVersion.VERSION_21
|
|
java.targetCompatibility = JavaVersion.VERSION_21
|
|
|
|
tasks.withType<KotlinJvmCompile> {
|
|
compilerOptions {
|
|
languageVersion = KotlinVersion.KOTLIN_2_2
|
|
apiVersion = KotlinVersion.KOTLIN_2_2
|
|
jvmTarget = JvmTarget.JVM_21
|
|
progressiveMode = true
|
|
freeCompilerArgs.add("-Xjsr305=strict")
|
|
}
|
|
}
|
|
}
|
|
|
|
extra.set("pluginDir", rootProject.layout.buildDirectory.get().asFile.resolve("plugins"))
|
|
|
|
abstract class UpdatePackageJsonVersionTask : DefaultTask() {
|
|
@get:Input
|
|
abstract val projectVersion: Property<String>
|
|
|
|
@get:InputFile
|
|
@get:PathSensitive(PathSensitivity.RELATIVE)
|
|
abstract val packageJsonFile: RegularFileProperty
|
|
|
|
@TaskAction
|
|
@Suppress("UNCHECKED_CAST")
|
|
fun updateVersion() {
|
|
val packageJson = packageJsonFile.get().asFile
|
|
val parsedJson = JsonSlurper().parse(packageJson) as MutableMap<String, Any>
|
|
|
|
// Update the version field with the Gradle project version
|
|
parsedJson["version"] = projectVersion.get()
|
|
|
|
// Convert the updated map back to a JSON string
|
|
var stringifiedJson = JsonOutput.toJson(parsedJson)
|
|
stringifiedJson = JsonOutput.prettyPrint(stringifiedJson)
|
|
|
|
// Re-adjust indentation to 2 spaces (npm default)
|
|
stringifiedJson = stringifiedJson.replace(Regex("^((?: {4})+)", RegexOption.MULTILINE)) {
|
|
" ".repeat(it.value.length / 4)
|
|
}
|
|
|
|
// Write the updated JSON back to package.json
|
|
Files.write(packageJson.toPath(), stringifiedJson.toByteArray())
|
|
}
|
|
}
|
|
|
|
val updatePackageJsonVersion by tasks.registering(UpdatePackageJsonVersionTask::class) {
|
|
group = "build"
|
|
description = "Syncs package.json version with Gradle project version"
|
|
projectVersion.set(version.toString())
|
|
packageJsonFile.set(file("app/package.json"))
|
|
}
|
|
|
|
tasks.named("build") {
|
|
dependsOn(updatePackageJsonVersion)
|
|
} |