forked from EssentialGG/essential-gradle-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
54 lines (47 loc) · 1.48 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
plugins {
`kotlin-dsl`
`maven-publish`
}
group = "gg.essential"
version = "0.1.18"
java.withSourcesJar()
repositories {
mavenCentral()
gradlePluginPortal()
maven(url = "https://maven.fabricmc.net/")
maven(url = "https://maven.minecraftforge.net")
maven(url = "https://jitpack.io")
maven(url = "https://maven.architectury.dev/")
maven(url = "https://repo.essential.gg/repository/maven-public")
}
dependencies {
implementation(gradleApi())
implementation(localGroovy())
api(libs.archloom)
implementation(libs.archloomPack200)
compileOnly(libs.kotlin.gradlePlugin)
implementation(libs.kotlinx.binaryCompatibilityValidator)
implementation(libs.proguard) {
exclude(group = "org.jetbrains.kotlin")
}
implementation("gradle.plugin.com.github.jengelman.gradle.plugins:shadow:7.0.0")
api(libs.preprocessor)
implementation(libs.asm)
implementation(libs.guava)
implementation(libs.kotlinx.metadata.jvm)
}
publishing {
repositories {
val nexusUser = project.findProperty("nexus_user")
val nexusPassword = project.findProperty("nexus_password")
if (nexusUser != null && nexusPassword != null) {
maven("https://repo.essential.gg/repository/maven-releases/") {
name = "nexus-public"
credentials {
username = nexusUser.toString()
password = nexusPassword.toString()
}
}
}
}
}