Skip to content

Commit

Permalink
0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetuska committed Jun 22, 2022
1 parent c5f9ec4 commit 509dd31
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ fun control(targets: NamedDomainObjectCollection<KotlinTarget>) {
val osxHostTargets = nativeTargets.matching { it.konanTarget.buildHost == Family.OSX }
val mainHostTargets = targets.matching { it !in nativeTargets }
linuxHostTargets.onlyBuildIf {
val enabled = !CI || SANDBOX || HostManager.hostIsLinux
val enabled = HostManager.hostIsLinux
printlnCI("[${it.name}] ${!CI} || $SANDBOX || ${HostManager.hostIsLinux} = $enabled")
enabled
}
osxHostTargets.onlyBuildIf {
val enabled = !CI || SANDBOX || HostManager.hostIsMac
val enabled = HostManager.hostIsMac
printlnCI("[${it.name}] ${!CI} || $SANDBOX || ${HostManager.hostIsMac} = $enabled")
enabled
}
windowsHostTargets.onlyBuildIf {
val enabled = !CI || SANDBOX || HostManager.hostIsMingw
val enabled = HostManager.hostIsMingw
printlnCI("[${it.name}] ${!CI} || $SANDBOX || ${HostManager.hostIsMingw} = $enabled")
enabled
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
plugins {
kotlin("jvm")
id("convention.publishing")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ publishing {
pom {
name by project.name
url by "https://github.com/$ghOwnerId/${rootProject.name}"
description by project.description
description by provider { project.description }

licenses {
license {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ [email protected]
#======================================= Project ========================================
group=dev.petuska
description=Kotlin Multiplatform test snapshots (klips) manager
version=0.4.0-SNAPSHOT
version=0.4.1-SNAPSHOT
#======================================== Build =========================================
kotlin.js.test.browser=firefox-headless
# linux | macos | windows
Expand Down
1 change: 0 additions & 1 deletion gradle/versions.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ version.org.jetbrains.dokka..dokka-gradle-plugin=1.6.21
version.com.github.gmazzo..gradle-buildconfig-plugin=3.0.3
version.io.github.gradle-nexus..publish-plugin=1.1.0
#====================================== Libraries =======================================
version.dev.petuska..container-tasks-gradle-plugin=0.0.4
version.com.github.tschuchortdev..kotlin-compile-testing=1.4.8
version.kotlin=1.7.0
version.kotest=5.3.0
Expand Down
4 changes: 2 additions & 2 deletions klip-sandbox/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import util.withName

plugins {
id("convention.library-mpp")
id("dev.petuska.klip") version "0.4.0"
id("convention.control")
id("dev.petuska.klip") version "0.4.1-SNAPSHOT"
}

gradleEnterprise {
Expand All @@ -18,7 +19,6 @@ repositories {

klip {
debug.set(true)
update.set(false)
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion klip-sandbox/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
mavenLocal()
}
}

Expand Down
19 changes: 18 additions & 1 deletion plugin/klip-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm")
id("com.gradle.plugin-publish")
`java-gradle-plugin`
id("convention.publishing-jvm")
Expand All @@ -24,12 +27,18 @@ pluginBundle {
tags = listOf("multiplatform", "test", "kotlin", "snapshots")
}

configurations.all {
resolutionStrategy {
force("org.jetbrains.kotlin:kotlin-stdlib:$embeddedKotlinVersion")
}
}

kotlin {
sourceSets {
main {
dependencies {
compileOnly(kotlin("stdlib"))
compileOnly(kotlin("gradle-plugin-api"))
api("dev.petuska:container-tasks-gradle-plugin:_")
implementation("io.ktor:ktor-server-cio:_")
implementation("io.ktor:ktor-server-cors:_")
implementation("io.ktor:ktor-server-content-negotiation:_")
Expand All @@ -49,3 +58,11 @@ kotlin {
java {
withSourcesJar()
}

tasks {
withType<KotlinCompile> {
kotlinOptions {
languageVersion = "1.4"
}
}
}
1 change: 1 addition & 0 deletions plugin/klip-kotlin-plugin-native/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import io.gitlab.arturbosch.detekt.Detekt

plugins {
kotlin("jvm")
id("convention.publishing-jvm")
}

Expand Down
1 change: 1 addition & 0 deletions plugin/klip-kotlin-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
plugins {
kotlin("jvm")
id("convention.publishing-jvm")
id("convention.build-konfig")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class KlippableFnIrTransformer(

override fun lower(irFile: IrFile) {
val filePath = File(irFile.path)
klipPath = filePath.parentFile.resolve("__klips__/${filePath.name}.json").canonicalPath
klipPath = filePath.parentFile.resolve("__klips__/${filePath.name}.klip.json").canonicalPath
index = 0
scope = null
scopeName = null
Expand Down

0 comments on commit 509dd31

Please sign in to comment.