Skip to content

Commit 6207eea

Browse files
committed
Tweaked build config
1 parent 1a9c39b commit 6207eea

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*/build/
2+
/build/
23
/.gradle/
34
/.idea/
45
/.kotlin

build.gradle.kts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1-
plugins {
2-
kotlin("jvm") version "2.0.0" apply false
1+
repositories.mavenCentral()
2+
3+
plugins {
4+
kotlin("jvm") version "2.0.0"
35
kotlin("plugin.serialization") version "2.0.0" apply false
46
id("org.jetbrains.dokka") version "1.9.20" apply false
57
}
68

79
subprojects {
10+
group = "net.typedrest"
11+
version = System.getenv("VERSION") ?: "1.0-SNAPSHOT"
12+
13+
repositories.mavenCentral()
14+
815
fun kotlin(module: String) = "org.jetbrains.kotlin.${module}"
916
apply(plugin = kotlin("jvm"))
1017
apply(plugin = kotlin("plugin.serialization"))
1118
apply(plugin = "org.jetbrains.dokka")
1219

13-
repositories.mavenCentral()
14-
15-
group = "net.typedrest"
16-
version = System.getenv("VERSION") ?: "1.0-SNAPSHOT"
20+
kotlin {
21+
compilerOptions.allWarningsAsErrors = true
22+
}
1723
}

0 commit comments

Comments
 (0)