forked from MrXiaoM/Overflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
58 lines (49 loc) · 1.69 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.8.0" apply false
kotlin("plugin.serialization") version "1.8.0" apply false
id("org.jetbrains.dokka") version "1.8.10" apply false
id("com.github.johnrengelman.shadow") version "7.0.0" apply false
id("com.github.gmazzo.buildconfig") version "3.1.0" apply false
id("me.him188.kotlin-jvm-blocking-bridge") version "3.0.0-180.1" apply false
id("org.ajoberstar.grgit") version "3.0.0" apply false
signing
`maven-publish`
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
group = "top.mrxiaom"
val miraiVersion = "2.16.0"
rootProject.ext["miraiVersion"] = miraiVersion
version = miraiVersion
if (findProperty("VERSION_OVERRIDE") != null) {
version = "$version-${findProperty("VERSION_OVERRIDE")}-SNAPSHOT"
}
println("overflow version: $version")
allprojects {
group = rootProject.group
version = rootProject.version
repositories {
mavenCentral()
}
val javaVersion = "1.8"
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = javaVersion
}
withType<JavaCompile> {
options.encoding = "UTF-8"
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username.set(findProperty("MAVEN_USERNAME")?.toString())
password.set(findProperty("MAVEN_PASSWORD")?.toString())
}
}
}