Skip to content

Commit

Permalink
feat(build): use io.github.gciatto.kt-mpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed Mar 20, 2023
1 parent 5cd6cf3 commit 9f4ad34
Show file tree
Hide file tree
Showing 20 changed files with 44 additions and 786 deletions.
30 changes: 21 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import org.jetbrains.dokka.gradle.DokkaTask
import io.github.gciatto.kt.mpp.log

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
`kotlin-jvm-js`
alias(libs.plugins.gitSemVer)
`publish-on-maven`
`publish-on-npm`
`print-versions`
alias(libs.plugins.ktMpp.multiplatform)
alias(libs.plugins.ktMpp.versions)
alias(libs.plugins.ktMpp.linter)
alias(libs.plugins.ktMpp.bugFinder)
alias(libs.plugins.ktMpp.documentation)
alias(libs.plugins.ktMpp.mavenPublish)
alias(libs.plugins.ktMpp.npmPublish)
}

group = "io.github.gciatto"
Expand All @@ -15,19 +19,27 @@ gitSemVer {
assignGitSemanticVersion()
}

logger.log(LogLevel.LIFECYCLE, "${rootProject.name} version: $version")
log("version: $version")

repositories {
mavenCentral()
}

jvmVersion(libs.versions.jvm)
nodeVersion(libs.versions.node, rootProject.findProperty("nodeVersion"))

kotlin {
js {
nodejs {
binaries.library()
}
}
sourceSets {
commonMain {
dependencies {
api(libs.kotlin.reflect)
}
}
}
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
println(path)
}
35 changes: 0 additions & 35 deletions buildSrc/build.gradle.kts

This file was deleted.

2 changes: 0 additions & 2 deletions buildSrc/gradle.properties

This file was deleted.

7 changes: 0 additions & 7 deletions buildSrc/settings.gradle.kts

This file was deleted.

30 changes: 0 additions & 30 deletions buildSrc/src/main/kotlin/Developer.kt

This file was deleted.

58 changes: 0 additions & 58 deletions buildSrc/src/main/kotlin/NodeVersions.kt

This file was deleted.

11 changes: 0 additions & 11 deletions buildSrc/src/main/kotlin/Organization.kt

This file was deleted.

105 changes: 0 additions & 105 deletions buildSrc/src/main/kotlin/ProjectUtils.kt

This file was deleted.

10 changes: 0 additions & 10 deletions buildSrc/src/main/kotlin/kotlin-bug-finder.gradle.kts

This file was deleted.

25 changes: 0 additions & 25 deletions buildSrc/src/main/kotlin/kotlin-doc.gradle.kts

This file was deleted.

53 changes: 0 additions & 53 deletions buildSrc/src/main/kotlin/kotlin-js-only.gradle.kts

This file was deleted.

Loading

0 comments on commit 9f4ad34

Please sign in to comment.