From 318c6145c29a160929c189e2595b0b5e60f69191 Mon Sep 17 00:00:00 2001 From: "ah.jo" Date: Fri, 9 Aug 2024 13:52:39 +0900 Subject: [PATCH] Add a requirements of JUnit platform Launcher and remove .jqwik-database --- docs/config/_default/params.toml | 2 +- .../docs/get-started/requirements.md | 8 ++++++++ .../v1.0.x/docs/get-started/requirements.md | 7 +++++++ .../main/resources/junit-platform.properties | 19 +++++++++++++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 fixture-monkey/src/main/resources/junit-platform.properties diff --git a/docs/config/_default/params.toml b/docs/config/_default/params.toml index 72a537bdd..326c7eb78 100644 --- a/docs/config/_default/params.toml +++ b/docs/config/_default/params.toml @@ -8,7 +8,7 @@ description = "" ## Documentation docsVersion = "1.0.0" -fixtureMonkeyVersion = "1.0.14" +fixtureMonkeyVersion = "1.0.22" ## Open Graph images = ["fixtureMonkey.png"] diff --git a/docs/content/v1.0.x-kor/docs/get-started/requirements.md b/docs/content/v1.0.x-kor/docs/get-started/requirements.md index 40793f38f..994020796 100644 --- a/docs/content/v1.0.x-kor/docs/get-started/requirements.md +++ b/docs/content/v1.0.x-kor/docs/get-started/requirements.md @@ -34,7 +34,15 @@ Kotlin 환경에서는 **fixture-monkey-starter-kotlin** 을 대신 사용할 #### Gradle +`junit-platform-launcher` 런타임 의존성을 추가하셔야 합니다. +Gradle 9 이전은 런타임 의존성이 없어도 동작하나 Gradle 9부터 필수가 될 예정입니다. + + +[📔 Gradle 공식문서](https://docs.gradle.org/current/userguide/upgrading_version_8.html#test_suites) +[⚠️ 이슈](https://github.com/gradle/gradle/issues/26114#issuecomment-1729133753) + ```groovy +testRuntimeOnly("org.junit.platform:junit-platform-launcher:{version}") testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter:{{< fixture-monkey-version >}}") ``` diff --git a/docs/content/v1.0.x/docs/get-started/requirements.md b/docs/content/v1.0.x/docs/get-started/requirements.md index 3330cfee7..f8bd9ec05 100644 --- a/docs/content/v1.0.x/docs/get-started/requirements.md +++ b/docs/content/v1.0.x/docs/get-started/requirements.md @@ -30,7 +30,14 @@ weight: 21 For Kotlin environments, you can use **fixture-monkey-starter-kotlin** #### Gradle +Add `junit-platform-launcher` as a runtime dependency. +The dependency is optional below Gradle 9, but it will be mandatory from Gradle 9 onwards. + +[📔 Gradle Offical Documentation](https://docs.gradle.org/current/userguide/upgrading_version_8.html#test_suites) +[⚠️ Issue](https://github.com/gradle/gradle/issues/26114#issuecomment-1729133753) + ```groovy +testRuntimeOnly("org.junit.platform:junit-platform-launcher:{version}") testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter:{{< fixture-monkey-version >}}") ``` diff --git a/fixture-monkey/src/main/resources/junit-platform.properties b/fixture-monkey/src/main/resources/junit-platform.properties new file mode 100644 index 000000000..aa9e77e6d --- /dev/null +++ b/fixture-monkey/src/main/resources/junit-platform.properties @@ -0,0 +1,19 @@ +# +# Fixture Monkey +# +# Copyright (c) 2021-present NAVER Corp. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +jqwik.database =