-
Notifications
You must be signed in to change notification settings - Fork 343
/
build.gradle.kts
43 lines (36 loc) · 1.19 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
plugins {
id("io.codearte.nexus-staging") version "0.30.0"
id("me.him188.maven-central-publish") version "1.0.0" // to retrieve credentials
id("net.mamoe.mirai-console") version "2.16.0-RC" apply false
}
buildscript {
repositories {
mavenLocal()
maven(url = "https://maven.aliyun.com/repository/public")
mavenCentral()
gradlePluginPortal()
google()
}
val kotlinVersion: String by project.extra
val atomicFuVersion: String by project.extra
dependencies {
classpath("org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicFuVersion")
}
}
allprojects {
group = "net.mamoe"
repositories {
mavenLocal()
maven(url = "https://maven.aliyun.com/repository/public")
mavenCentral()
gradlePluginPortal()
google()
}
}
nexusStaging {
packageGroup = "net.mamoe" // from Sonatype accounts, do not change
username = mavenCentralPublish.credentials?.sonatypeUsername
password = mavenCentralPublish.credentials?.sonatypePassword
}