Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a guide on how to sync Gradle integration tests in IDEA #3654

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 116,9 @@ via `org.jetbrains.dokka.integration_test.dokkaVersionOverride` Gradle property:
./gradlew :dokka-integration-tests:gradle:testExternalProjectKotlinxCoroutines -Porg.jetbrains.dokka.integration_test.dokkaVersionOverride=2.0.0-dev-329
```

Additionally, it's possible to open the Gradle integration test projects in IDEA.
Instructions are located in [README.md of Gradle integration tests](dokka-integration-tests/gradle/projects/README.md).

## Infrastructure

### Java version
Expand Down
16 changes: 16 additions & 0 deletions dokka-integration-tests/gradle/projects/README.md
Original file line number Diff line number Diff line change
@@ -0,0 1,16 @@
# Running integration tests projects locally

Projects used to run integration tests could be opened in or build independently by following these steps:

1. open `gradle.properties` file of a specific project and change commented variables:
1. `dokka_it_kotlin_version` to required version of Kotlin Gradle Plugin, e.g 2.0.0
2. `dokka_it_dokka_version` to required version to Dokka Gradle plugin, e.g 1.9.20
3. replace all other commented properties if needed, like `dokka_it_android_gradle_plugin_version`
2. open `settings.gradle.kts` and replace `apply(from = "template.settings.gradle.kts")` with
`apply(from = "../template.settings.gradle.kts")` (so the path should be prefixed with `../`)
3. (Optional) replace `/* %{DOKKA_IT_MAVEN_REPO}% */` with custom maven repositories like `mavenLocal` in
`template.settings.gradle.kts` if dependencies should be resolved from places other than Maven Central.
4. Now it's possible to link a project in IDEA by right-clicking on `settings.gradle.kts` of a project and selecting
`Link Gradle Project`

Note: for `ui-showcase` project those 1 and 2 steps should be done for both root of the project and `build-logic`.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 2,9 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0
dokka_it_android_gradle_plugin_version=4.2.2
android.useAndroidX=true

# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
#dokka_it_android_gradle_plugin_version=
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 2,6 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0
# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 2,6 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0
# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 2,6 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0
# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 2,9 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0
fail_on_warning=false
report_undocumented=false

# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 2,7 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0
react_version=18.2.0-pre.467
# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
#react_version=
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 2,6 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0
# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 2,6 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0
# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 2,6 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0
# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 2,6 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0

# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 2,6 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0
# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 2,8 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0
task_number=100

# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
@@ -0,0 1,7 @@
#
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 2,6 @@
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

dokka_it_kotlin_version=2.0.0
# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
@@ -0,0 1,7 @@
#
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Original file line number Diff line number Diff line change
@@ -0,0 1,7 @@
#
# Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

# to sync the project locally, check dokka-integration-tests/gradle/projects/README.md
#dokka_it_kotlin_version=
#dokka_it_dokka_version=
Loading