-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
72 lines (67 loc) · 2.56 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
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import com.vanniktech.maven.publish.SonatypeHost
plugins {
id("com.android.application") apply false
id("com.android.library") apply false
kotlin("android") apply false
id("org.jetbrains.compose") version Versions.compose_jb apply false
id("com.diffplug.spotless") version Versions.spotless
id("com.vanniktech.maven.publish") version "0.22.0" apply false
}
allprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = Versions.Java.jvmTarget
freeCompilerArgs = freeCompilerArgs + listOf()
}
}
apply(plugin = "com.diffplug.spotless")
spotless {
kotlin {
target("**/*.kt")
targetExclude("$buildDir/**/*.kt", "bin/**/*.kt", "buildSrc/**/*.kt")
ktlint(Versions.ktlint).userData(mapOf("indent_size" to "2", "continuation_indent_size" to "2", "disabled_rules" to "filename"))
}
kotlinGradle {
target("*.gradle.kts")
ktlint(Versions.ktlint)
}
java {
target("**/*.java")
targetExclude("$buildDir/**/*.java", "bin/**/*.java")
}
}
group = "io.github.HuixingWong"
version = "0.1"
plugins.withId("com.vanniktech.maven.publish.base") {
@Suppress("UnstableApiUsage")
configure<MavenPublishBaseExtension> {
publishToMavenCentral(SonatypeHost.S01, automaticRelease = true)
signAllPublications()
pom {
name.set("compose-likeButton")
description.set("Compose like animation button.")
url.set("https://github.com/HuixingWong/compose-likeButton")
licenses {
license {
name.set("MIT")
url.set("https://opensource.org/licenses/MIT")
distribution.set("repo")
}
}
developers {
developer {
id.set("hx")
name.set("hx")
email.set("[email protected]")
}
}
scm {
url.set("https://github.com/HuixingWong/compose-likeButton")
connection.set("scm:git:git://github.com/HuixingWong/compose-likeButton.git")
developerConnection.set("scm:git:git://github.com/HuixingWong/compose-likeButton.git")
}
}
}
}
}