-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
57 lines (47 loc) · 1.74 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'com.diluv.schoomp', name: 'Schoomp', version: '1.2.6'
}
}
plugins {
id 'fabric-loom' version '1.2-SNAPSHOT' apply(false)
id 'net.minecraftforge.gradle' version '[6.0,6.2)' apply(false)
id 'org.spongepowered.gradle.vanilla' version '0.2.1-SNAPSHOT' apply(false)
id 'org.spongepowered.mixin' version '0.7-SNAPSHOT' apply(false)
id 'net.darkhax.curseforgegradle' version '1.1.15' apply(false)
id 'com.modrinth.minotaur' version '2.8.0' apply(false)
}
apply from: 'gradle/property_loader.gradle'
subprojects {
apply plugin: 'maven-publish'
apply from: '../gradle/property_loader.gradle'
apply from: '../gradle/java.gradle'
apply from: '../gradle/minify_jsons.gradle'
// Disables Gradle's custom module metadata from being published to maven. The
// metadata includes mapped dependencies which are not reasonably consumable by
// other mod developers.
tasks.withType(GenerateModuleMetadata) {
enabled = false
}
// Enable Mixins
project.ext.mixin_enabled = project.file("src/main/resources/${mod_id}.mixins.json").exists()
project.logger.lifecycle("Mixin ${project.ext.mixin_enabled ? 'enabled' : 'disabled'} for project ${project.name}.")
repositories {
mavenCentral()
maven {
name = 'Sponge / Mixin'
url = 'https://repo.spongepowered.org/repository/maven-public/'
}
maven {
name = 'BlameJared Maven (CrT / Bookshelf)'
url = 'https://maven.blamejared.com'
}
maven {
name = 'Progwml6 Maven (JEI)'
url = 'https://dvs1.progwml6.com/files/maven/'
}
}
}