-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
89 lines (79 loc) · 2.64 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import org.gradle.api.tasks.testing.logging.TestLogEvent.STARTED
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
import org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED
import org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
buildscript {
repositories {
gradlePluginPortal()
mavenCentral()
// Misk
maven(url = "https://s01.oss.sonatype.org/content/repositories/releases/")
maven(url = "https://s01.oss.sonatype.org/content/repositories/comsquareup-1061/")
// SqlDelight
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
classpath(libs.kotlinAllOpenPlugin)
classpath(libs.kotlinGradlePlugin)
classpath(libs.junitGradlePlugin)
classpath(libs.shadowJarPlugin)
classpath(libs.sqldelightGradle)
classpath(libs.wireGradlePlugin)
}
}
// Run gradle buildHealth to get dependency report for unused and duplicates
plugins {
id("com.autonomousapps.dependency-analysis") version "1.2.1"
}
subprojects {
buildscript {
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") }
jcenter()
// Misk
maven(url = "https://s01.oss.sonatype.org/content/repositories/releases/")
maven(url = "https://s01.oss.sonatype.org/content/repositories/comsquareup-1061/")
// SqlDelight
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
}
}
apply(plugin = "java")
apply(plugin = "kotlin")
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") }
jcenter()
// Misk
maven(url = "https://s01.oss.sonatype.org/content/repositories/releases/")
maven(url = "https://s01.oss.sonatype.org/content/repositories/comsquareup-1061/")
// SqlDelight
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
}
tasks {
withType<JavaCompile> {
val compilerArgs = options.compilerArgs
compilerArgs.add("-parameters")
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
javaParameters = true
}
}
withType<Test> {
useJUnitPlatform()
testLogging {
events(STARTED, PASSED, SKIPPED, FAILED)
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showExceptions = true
showStackTraces = true
}
environment("ENVIRONMENT", "test")
}
}
}
// Disable the Gradle wrapper if Gradle is managed by Hermit
tasks.named<Wrapper>("wrapper") {
enabled = false
}