-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
55 lines (43 loc) · 1.22 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
import com.redmadrobot.build.dsl.*
plugins {
alias(libs.plugins.redmadrobot.publish.config)
alias(libs.plugins.redmadrobot.detekt)
alias(libs.plugins.versions)
alias(libs.plugins.binaryCompatibilityValidator)
`maven-publish`
alias(libs.plugins.redmadrobot.kotlinLibrary) apply false
alias(libs.plugins.kotlin) apply false
}
redmadrobot {
jvmTarget.set(JavaVersion.VERSION_1_8)
publishing {
signArtifacts.set(!isRunningOnCi)
pom {
setGitHubProject("RedMadRobot/mapmemory")
licenses {
mit()
}
developers {
developer(id = "osipxd", name = "Osip Fatkullin", email = "[email protected]")
}
}
}
}
repositories {
mavenCentral()
}
subprojects {
group = "com.redmadrobot.mapmemory"
version = "2.2-SNAPSHOT"
apply(plugin = "maven-publish")
apply(plugin = "io.gitlab.arturbosch.detekt")
publishing {
repositories {
if (isRunningOnCi) githubPackages("RedMadRobot/mapmemory")
if (isReleaseVersion && credentialsExist("ossrh")) ossrh()
}
}
}
apiValidation {
ignoredPackages.add("com.redmadrobot.mapmemory.internal")
}