-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
44 lines (38 loc) · 1.18 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
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
mavenLocal()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '6.0.+', changing: true
classpath "gradle.plugin.com.github.jengelman.gradle.plugins:shadow:7.0.0"
classpath "gradle.plugin.com.matthewprenger:CurseGradle:1.4.0"
classpath 'de.undercouch:gradle-download-task:4.1.2'
}
}
plugins {
id "org.sonarqube" version "3.0"
}
apply from: 'https://raw.githubusercontent.com/ldtteam/OperaPublicaCreator/main/gradle/mod.gradle'
configurations {
library
implementation.extendsFrom library
}
// Allow 400 errors.
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "1000"
}
}
minecraft.runs.all {
lazyToken('minecraft_classpath') {
configurations.library.copyRecursive().resolve().collect { it.absolutePath }.join(File.pathSeparator)
}
}
project.tasks.getByName("processResources", {task ->
task.duplicatesStrategy 'include'
})