-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
61 lines (56 loc) · 2.09 KB
/
build.gradle
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
plugins {
id 'java-gradle-plugin'
id 'maven-publish'
}
group 'org.moddingx'
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
repositories {
mavenCentral()
gradlePluginPortal()
maven { url = 'https://maven.neoforged.net/releases' }
maven { url = 'https://maven.moddingx.org/release' }
}
dependencies {
api('jakarta.annotation:jakarta.annotation-api') { version { strictly '[3.0.0,)'; prefer '3.0.0' } }
api('net.neoforged:srgutils') { version { strictly '[1.0.9,)'; prefer '1.0.9' } }
api('net.neoforged.gradle:userdev') { version { strictly "[7.0.180,8.0.0)"; prefer '7.0.180' } }
api('org.moddingx:LauncherLib') { version { strictly '[2.1.0,2.2.0)'; prefer '2.1.0' } }
api('com.google.code.gson:gson') { version { strictly '[2.12.1,)'; prefer '2.12.1' } }
api('commons-io:commons-io') { version { strictly '[2.18.0,)'; prefer '2.18.0' } }
api('org.apache.maven:maven-repository-metadata') { version { strictly '[3.9.9,)'; prefer '3.9.9' } }
implementation('net.darkhax.curseforgegradle:CurseForgeGradle') { version { strictly '[1.1.26,)'; prefer '1.1.26' } }
implementation('com.modrinth.minotaur:Minotaur') { version { strictly '[2.8.7,)'; prefer '2.8.7' } }
}
gradlePlugin {
plugins {
meta {
id = 'org.moddingx.modgradle.meta'
implementationClass = 'org.moddingx.modgradle.plugins.meta.MetaPlugin'
}
javadoc {
id = 'org.moddingx.modgradle.javadoc'
implementationClass = 'org.moddingx.modgradle.plugins.javadoc.JavadocPlugin'
}
}
}
publishing {
publications {
pluginMaven(MavenPublication) {
pom {
licenses {
license {
name = "The Apache License, Version 2.0"
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
}
}
}
repositories {
maven {
name 'moddingx'
url 'https://maven.moddingx.org/release'
credentials(PasswordCredentials)
}
}
}