-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
76 lines (65 loc) · 2.07 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
plugins {
java
`java-gradle-plugin`
`maven-publish`
id("org.cadixdev.licenser") version "0.6.1"
}
group = "com.oroarmor"
version = "1.3.1" + (if (System.getenv("GITHUB_RUN_NUMBER") != null) "" else "-local")
repositories {
mavenCentral()
maven {
name = "Gradle Plugin Portal"
url = uri("https://plugins.gradle.org/m2")
}
maven {
name = "Quilt Maven"
url = uri("https://maven.quiltmc.org/repository/release")
}
}
gradlePlugin {
plugins {
create("minecraft") {
id = "com.oroarmor.minecraft-gradle-plugin"
implementationClass = "com.oroarmor.orogradleplugin.minecraft.MinecraftPlugin"
}
create("general") {
id = "com.oroarmor.general-gradle-plugin"
implementationClass = "com.oroarmor.orogradleplugin.GenericPlugin"
}
create("maven-central") {
id = "com.oroarmor.maven-central-publish-plugin"
implementationClass = "com.oroarmor.orogradleplugin.maven.MavenCentralPlugin"
}
}
}
dependencies {
implementation("dev.yumi:yumi-gradle-licenser:1.2.0")
implementation("org.kohsuke:github-api:1.322")
implementation("net.dumbcode.gradlehook:GradleHook:2.0.2")
implementation("io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0")
implementation("com.modrinth.minotaur:Minotaur:2.8.7")
implementation("gradle.plugin.com.matthewprenger:CurseGradle:1.4.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}
license {
setHeader(project.file("LICENSE"))
}
publishing {
repositories {
if (System.getenv("MAVEN_URL") != null) {
maven {
name = "OroArmor"
url = uri(System.getenv("MAVEN_URL"))
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
}