Skip to content

Commit

Permalink
Fix Gradle sync problems
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatBeresnev committed Oct 19, 2023
1 parent fedd09b commit e150c5f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 54 deletions.
8 changes: 6 additions & 2 deletions dokka-runners/cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ import org.jetbrains.registerDokkaArtifactPublication
plugins {
id("org.jetbrains.conventions.kotlin-jvm")
id("org.jetbrains.conventions.maven-publish")
id("com.github.johnrengelman.shadow")

// TODO [structure-refactoring] this plugin should not contain the version, it's declared in build-logic
// for some reason, it doesn't want to be resolved without the version, even though it works in other subprojects
id("com.github.johnrengelman.shadow") version "7.1.2"
}

dependencies {
implementation(projects.core)
// TODO [structure-refactoring] the name of the artifact should be `dokka-core`. Add substitution
implementation("org.jetbrains.dokka:core")
implementation(libs.kotlinx.cli)

testImplementation(kotlin("test"))
Expand Down
3 changes: 3 additions & 0 deletions dokka-runners/cli/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pluginManagement {
dependencyResolutionManagement {
repositories {
mavenCentral()
google()
}

versionCatalogs {
Expand All @@ -28,3 +29,5 @@ dependencyResolutionManagement {
}

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

includeBuild("../../dokka-subprojects")
3 changes: 1 addition & 2 deletions dokka-runners/gradle-plugin-classic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ plugins {
}

dependencies {
// TODO dependency should be `org.jetbrains.dokka:dokka-core`, because that's the published artifact ID, but the
// core subproject name doesn't match this
// TODO [structure-refactoring] the name of the artifact should be `dokka-core`. Add substitution
api("org.jetbrains.dokka:core")

compileOnly(libs.gradlePlugin.kotlin)
Expand Down
3 changes: 2 additions & 1 deletion dokka-runners/maven-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ plugins {
}

dependencies {
implementation(projects.core)
// TODO [structure-refactoring] the name of the artifact should be `dokka-core`. Add substitution
implementation("org.jetbrains.dokka:core")

implementation(libs.apacheMaven.core)
implementation(libs.apacheMaven.pluginApi)
Expand Down
52 changes: 3 additions & 49 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -58,67 +58,21 @@ plugins {
`gradle-enterprise`
}

includeBuild("dokka-integration-tests")
// TODO [structure-refactoring] enable all
//includeBuild("dokka-integration-tests")
includeBuild("dokka-subprojects")
includeBuild("dokka-runners/gradle-plugin")
//includeBuild("dokka-runners/gradle-plugin")
includeBuild("dokka-runners/gradle-plugin-classic")
includeBuild("dokka-runners/maven-plugin")
includeBuild("dokka-runners/cli")

include(
// ":core",
// ":core:test-api",
// ":core:content-matcher-test-utils",
//
// ":subprojects",
//
// ":subprojects:analysis-java-psi",
// ":subprojects:analysis-kotlin-api",
// ":subprojects:analysis-kotlin-descriptors",
// ":subprojects:analysis-kotlin-descriptors:compiler",
// ":subprojects:analysis-kotlin-descriptors:ide",
// ":subprojects:analysis-kotlin-symbols",
// ":subprojects:analysis-markdown-jb",
//
//// ":runners:gradle-plugin",
//// ":runners:cli",
//// ":runners:maven-plugin",
//
// ":plugins:base",
// ":plugins:base:frontend",
// ":plugins:base:base-test-utils",
// ":plugins:all-modules-page",
// ":plugins:templating",
// ":plugins:versioning",
// ":plugins:android-documentation",
//
// ":plugins:mathjax",
// ":plugins:gfm",
// ":plugins:gfm:gfm-template-processing",
// ":plugins:jekyll",
// ":plugins:jekyll:jekyll-template-processing",
// ":plugins:kotlin-as-java",
// ":plugins:javadoc",
//
//// ":integration-tests",
//// ":integration-tests:gradle",
//// ":integration-tests:cli",
//// ":integration-tests:maven",
//
// ":docs-developer",
)

val isCiBuild = System.getenv("GITHUB_ACTIONS") != null || System.getenv("TEAMCITY_VERSION") != null



gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
publishAlwaysIf(isCiBuild)
}
}


enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

0 comments on commit e150c5f

Please sign in to comment.