Skip to content

Commit

Permalink
Update dependency com.javiersc.hubdle to v0.5.0-beta.4
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.4 |
  • Loading branch information
renovate[bot] committed Jul 22, 2023
1 parent e2a5c95 commit 2298799
Show file tree
Hide file tree
Showing 19 changed files with 502 additions and 584 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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

### Updated

- `com.javiersc.hubdle:com.javiersc.hubdle.gradle.plugin -> 0.5.0-beta.2`
- `com.javiersc.hubdle:com.javiersc.hubdle.gradle.plugin -> 0.5.0-beta.4`
- `gradle -> 8.2.1`

## [0.1.0-alpha.15] - 2023-06-05
Expand Down
23 changes: 23 additions & 0 deletions build-logic/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"
}
}
}
6 changes: 3 additions & 3 deletions buildSrc/gradle.properties → build-logic/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
####################################################################################################
### CONFIGURATION ###
####################################################################################################
root.project.name=build-src
main.project.name=build-src
project.group=com.javiersc.kotlin.build.src
root.project.name=build-logic
main.project.name=build-logic
project.group=com.javiersc.kotlin.build.logic
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ pluginManagement {
mavenLocal()
}

plugins { id("com.javiersc.hubdle") version hubdleVersion }
plugins { //
id("com.javiersc.hubdle") version hubdleVersion
}
}

plugins { id("com.javiersc.hubdle") }
plugins { //
id("com.javiersc.hubdle")
}
14 changes: 14 additions & 0 deletions build-logic/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) }
}
}
}
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugins {
plugins { //
alias(libs.plugins.javiersc.hubdle)
}

Expand All @@ -10,7 +10,7 @@ hubdle {
documentation {
api()
changelog()
readme {
readme { //
badges()
}
site()
Expand Down
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.4"

[plugins]
javiersc-hubdle = { id = "com.javiersc.hubdle", version.ref = "hubdle" }
Loading

0 comments on commit 2298799

Please sign in to comment.