Skip to content

Commit

Permalink
Migrate settings.gradle to Kotlin-DSL
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Davids <sdavids@gmx.de>
  • Loading branch information
sdavids committed Aug 24, 2024
1 parent c28f0bf commit 78efc72
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
8 changes: 0 additions & 8 deletions settings.gradle

This file was deleted.

21 changes: 21 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// https://docs.gradle.org/current/dsl/org.gradle.api.initialization.Settings.html

val expectedJavaVersion = JavaVersion.VERSION_21
val actualJavaVersion = JavaVersion.current()
require(actualJavaVersion.isCompatibleWith(expectedJavaVersion)) {
"The build requires Java ${expectedJavaVersion.majorVersion} or higher. Currently executing with Java ${actualJavaVersion.majorVersion}."
}

dependencyResolutionManagement {
repositories {
mavenCentral()
}
}

rootProject.name = "adr-j"

// https://docs.gradle.org/8.10/userguide/configuration_cache.html#config_cache:stable
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")

// https://docs.gradle.org/8.10/userguide/declaring_dependencies_adv.html#sec:type-safe-project-accessors
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

0 comments on commit 78efc72

Please sign in to comment.