Skip to content

Commit

Permalink
Update dependency com.javiersc.hubdle to v0.5.0-beta.3
Browse files Browse the repository at this point in the history
| datasource | package                                               | from         | to           |
| ---------- | ----------------------------------------------------- | ------------ | ------------ |
| maven      | com.javiersc.hubdle:com.javiersc.hubdle.gradle.plugin | 0.5.0-beta.2 | 0.5.0-beta.3 |
  • Loading branch information
renovate[bot] authored and JavierSegoviaCordoba committed Jul 22, 2023
1 parent e2a5c95 commit 3039164
Show file tree
Hide file tree
Showing 14 changed files with 72 additions and 38 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/dump-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: dump-api

on:
workflow_dispatch:

jobs:
dump-api:
uses: JavierSegoviaCordoba/reusable-workflows/.github/workflows/dump-api.yaml@main
with:
restore-kotlin-native-cache: false
secrets: inherit
23 changes: 23 additions & 0 deletions build-src/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
plugins {
kotlin("jvm")
`java-gradle-plugin`
}

repositories {
mavenCentral()
}

dependencies {
implementation(gradleKotlinDsl())
implementation(hubdle.javiersc.kotlin.kotlinStdlib)
implementation(hubdle.jetbrains.kotlin.kotlinGradlePlugin)
}

gradlePlugin {
plugins {
register("convention") {
id = "convention"
implementationClass = "ConventionPlugin"
}
}
}
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions build-src/src/main/kotlin/ConventionPlugin.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.the
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension

open class ConventionPlugin : Plugin<Project> {

override fun apply(project: Project) {
project.pluginManager.withPlugin("org.jetbrains.kotlin.multiplatform") {
val kotlin: KotlinProjectExtension = project.the()
GenerateIgnoreClassesTask.register(project, kotlin.sourceSets)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -178,27 +178,29 @@ constructor(
val generateIgnoreClassesTask: TaskProvider<GenerateIgnoreClassesTask> =
project.tasks.register<GenerateIgnoreClassesTask>(TASK_NAME)

generateIgnoreClassesTask.configure { sourceSets.set(kotlinSourceSetsMap) }
generateIgnoreClassesTask.configure { it.sourceSets.set(kotlinSourceSetsMap) }

project.tasks.withType<BaseKotlinCompile>().configureEach {
dependsOn(generateIgnoreClassesTask)
it.dependsOn(generateIgnoreClassesTask)
}

project.tasks.withType<KotlinCompile<*>>().configureEach {
dependsOn(generateIgnoreClassesTask)
it.dependsOn(generateIgnoreClassesTask)
}

project.tasks.withType<Jar>().configureEach { dependsOn(generateIgnoreClassesTask) }
project.tasks.withType<Jar>().configureEach { it.dependsOn(generateIgnoreClassesTask) }

project.afterEvaluate {
project.afterEvaluate { afterEvaluate ->
listOf(
"detekt",
"spotlessKotlin",
)
.forEach { tasks.findByName(it)?.dependsOn(generateIgnoreClassesTask) }
.forEach {
afterEvaluate.tasks.findByName(it)?.dependsOn(generateIgnoreClassesTask)
}
}

project.tasks.named(ASSEMBLE_TASK_NAME) { dependsOn(generateIgnoreClassesTask) }
project.tasks.named(ASSEMBLE_TASK_NAME) { it.dependsOn(generateIgnoreClassesTask) }
}
}
}
12 changes: 0 additions & 12 deletions buildSrc/build.gradle.kts

This file was deleted.

2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
hubdle = "0.5.0-beta.2"
hubdle = "0.5.0-beta.3"

[plugins]
javiersc-hubdle = { id = "com.javiersc.hubdle", version.ref = "hubdle" }
1 change: 1 addition & 0 deletions kotlin-stdlib/api/android/kotlin-stdlib.api
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ public final class com/javiersc/kotlin/stdlib/tree/TreeNodeIterators : java/lang
public static final field LevelOrder Lcom/javiersc/kotlin/stdlib/tree/TreeNodeIterators;
public static final field PostOrder Lcom/javiersc/kotlin/stdlib/tree/TreeNodeIterators;
public static final field PreOrder Lcom/javiersc/kotlin/stdlib/tree/TreeNodeIterators;
public static fun getEntries ()Lkotlin/enums/EnumEntries;
public static fun valueOf (Ljava/lang/String;)Lcom/javiersc/kotlin/stdlib/tree/TreeNodeIterators;
public static fun values ()[Lcom/javiersc/kotlin/stdlib/tree/TreeNodeIterators;
}
Expand Down
1 change: 1 addition & 0 deletions kotlin-stdlib/api/jvm/kotlin-stdlib.api
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ public final class com/javiersc/kotlin/stdlib/tree/TreeNodeIterators : java/lang
public static final field LevelOrder Lcom/javiersc/kotlin/stdlib/tree/TreeNodeIterators;
public static final field PostOrder Lcom/javiersc/kotlin/stdlib/tree/TreeNodeIterators;
public static final field PreOrder Lcom/javiersc/kotlin/stdlib/tree/TreeNodeIterators;
public static fun getEntries ()Lkotlin/enums/EnumEntries;
public static fun valueOf (Ljava/lang/String;)Lcom/javiersc/kotlin/stdlib/tree/TreeNodeIterators;
public static fun values ()[Lcom/javiersc/kotlin/stdlib/tree/TreeNodeIterators;
}
Expand Down
8 changes: 4 additions & 4 deletions kotlin-test-junit/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import com.javiersc.gradle.properties.extensions.getBooleanProperty

plugins {
id("convention")
}

hubdle {
config {
analysis()
Expand Down Expand Up @@ -69,10 +73,6 @@ hubdle {
}

wasm()

kotlin { //
GenerateIgnoreClassesTask.register(project, sourceSets)
}
}
}
}
8 changes: 4 additions & 4 deletions kotlin-test-junit5/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id("convention")
}

hubdle {
config {
analysis()
Expand Down Expand Up @@ -81,10 +85,6 @@ hubdle {
}

wasm()

kotlin {
GenerateIgnoreClassesTask.register(project, sourceSets)
}
}
}
}
8 changes: 4 additions & 4 deletions kotlin-test-testng/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id("convention")
}

hubdle {
config {
analysis()
Expand Down Expand Up @@ -81,10 +85,6 @@ hubdle {
}

wasm()

kotlin { //
GenerateIgnoreClassesTask.register(project, sourceSets)
}
}
}
}
6 changes: 0 additions & 6 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,3 @@ pluginManagement {
plugins {
id("com.javiersc.hubdle")
}

hubdleSettings {
autoInclude {
excludedBuilds("buildSrc")
}
}

0 comments on commit 3039164

Please sign in to comment.