Skip to content

Commit

Permalink
Minor buildscript cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sellmair committed Jul 17, 2024
1 parent 5e0e834 commit 37030ab
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
10 changes: 6 additions & 4 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ repositories {

dependencies {
implementation(gradleKotlinDsl())

/* JetBrains */
implementation(kotlin("gradle-plugin:${deps.versions.kotlin.get()}"))
implementation("org.jetbrains.kotlin.plugin.compose:org.jetbrains.kotlin.plugin.compose.gradle.plugin:${deps.versions.kotlin.get()}")
implementation("com.android.tools.build:gradle:${deps.versions.androidGradlePlugin.get()}")
implementation("org.jetbrains.compose:org.jetbrains.compose.gradle.plugin:${deps.versions.compose.get()}")

implementation("org.jetbrains.kotlinx.atomicfu:org.jetbrains.kotlinx.atomicfu.gradle.plugin:0.25.0")
implementation("org.jetbrains.kotlinx.binary-compatibility-validator:org.jetbrains.kotlinx.binary-compatibility-validator.gradle.plugin:0.15.1")
implementation("com.vanniktech.maven.publish:com.vanniktech.maven.publish.gradle.plugin:0.29.0")
implementation("org.jetbrains.kotlinx.benchmark:org.jetbrains.kotlinx.benchmark.gradle.plugin:${deps.versions.kotlinxBenchmark.get()}")

implementation("com.android.tools.build:gradle:${deps.versions.androidGradlePlugin.get()}")
implementation("com.vanniktech.maven.publish:com.vanniktech.maven.publish.gradle.plugin:0.29.0")
}

gradlePlugin.plugins.create("evas") {
Expand All @@ -37,4 +39,4 @@ gradlePlugin.plugins.create("evas") {
gradlePlugin.plugins.create("evas-publish") {
id = "evas-publish"
implementationClass = "EvasPublishPlugin"
}
}
23 changes: 13 additions & 10 deletions samples/joke-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,20 @@ kotlin {

/* Desktop Options */
compose.desktop.application {
mainClass = "io.sellmair.jokes.MainKt"
mainClass = "io.sellmair.jokes.JokesApplicationKt"
}

kotlin.jvm().mainRun {
mainClass = "io.sellmair.jokes.JokesApplicationKt"
}

/* iOS options */
kotlin {
targets.withType<KotlinNativeTarget>()
.matching { it.konanTarget.family == IOS }
.configureEach {
binaries.framework {
baseName = "JokesKt"
isStatic = true
}
kotlin.targets.withType<KotlinNativeTarget>()
.matching { it.konanTarget.family == IOS }
.configureEach {
binaries.framework {
baseName = "JokesKt"
isStatic = true
}
}
}

5 changes: 4 additions & 1 deletion samples/login-screen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ android {
namespace = "io.sellmair.loginScreen"
defaultConfig {
minSdk = 24
targetSdk = 34
applicationId = "io.sellmair.loginScreenSample"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand All @@ -94,6 +93,10 @@ compose.desktop.application {
mainClass = "io.sellmair.sample.SampleApplicationKt"
}

kotlin.jvm().mainRun {
mainClass = "io.sellmair.sample.SampleApplicationKt"
}

/* iOS options */
kotlin {
targets.withType<KotlinNativeTarget>()
Expand Down

0 comments on commit 37030ab

Please sign in to comment.