-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
80 lines (71 loc) · 2.2 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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
id("com.diffplug.spotless") version "6.25.0"
id("com.vanniktech.maven.publish") version "0.29.0"
kotlin("jvm") version "1.9.25" apply false
}
subprojects {
group = "ai.fal.client"
version = "0.7.1"
apply(plugin = "com.diffplug.spotless")
apply(plugin = "com.vanniktech.maven.publish")
spotless {
java {
palantirJavaFormat()
}
kotlin {
ktlint()
}
kotlinGradle {
target("*.gradle.kts")
ktlint()
}
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.S01, automaticRelease = true)
signAllPublications()
pom {
name.set("Fal Client Library")
description.set("A Client library for fal.ai APIs")
inceptionYear.set("2024")
url.set("https://github.com/fal-ai/fal-java")
licenses {
license {
name.set("MIT")
url.set("https://opensource.org/license/mit")
}
}
developers {
developer {
id.set("fal")
name.set("Fal AI")
email.set("[email protected]")
url.set("https://github.com/fal-ai")
}
}
scm {
url.set("https://github.com/fal-ai/fal-java")
connection.set("scm:git:git://github.com/fal-ai/fal-java.git")
}
}
}
tasks.withType<Javadoc> {
// Disable empty javadoc warnings
(options as CoreJavadocOptions).addBooleanOption("Xdoclint:none", true)
}
afterEvaluate {
when {
plugins.hasPlugin("java") && !plugins.hasPlugin("org.jetbrains.kotlin.jvm") -> {
tasks.named<Javadoc>("javadoc") {
options.encoding = "UTF-8"
doLast {
copy {
from(destinationDir)
into(rootProject.projectDir.resolve("docs/${project.name}"))
}
}
}
}
}
}
}