-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (42 loc) · 1.52 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Manifest version information!
val versionMajor = 1
val versionMinor = 0
val versionPatch = 0
val versionBuild = providers.gradleProperty("build-number").map { it.toInt() }.getOrElse(1)
val versionName = "$versionMajor.$versionMinor.$versionPatch"
group = "com.greenmiststudios"
version = "1.0-SNAPSHOT"
allprojects {
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
plugins {
kotlin("jvm") version libs.versions.kotlin.get() apply false
kotlin("multiplatform") version libs.versions.kotlin.get() apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.compose) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.sqldelight) apply false
alias(libs.plugins.paparazzi) apply false
alias(libs.plugins.spotless) apply false
}
allprojects {
ext.set("version", versionName)
ext.set("versionBuild", versionBuild)
extensions.findByType<com.diffplug.gradle.spotless.SpotlessExtension>()?.apply { // if you are using build.gradle.kts, instead of 'spotless {' use:
kotlin {
// by default the target is every '.kt' and '.kts` file in the java sourcesets
ktlint() // has its own section below
// licenseHeader '/* (C)$YEAR */' // or licenseHeaderFile
}
kotlinGradle {
// target '*.gradle.kts' // default target for kotlinGradle
ktlint() // or ktfmt() or prettier()
}
}
}