-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
87 lines (70 loc) · 2.15 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
maven { url = 'https://maven.parchmentmc.org' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '6.0.+', changing: true
classpath 'org.parchmentmc:librarian:1.+'
}
}
configure(subprojects.findAll {
!['libs', 'mods'].contains(it.name)
}) {
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.parchmentmc.librarian.forgegradle'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven-publish'
group "fr.iamblueslime.slimmymods"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
configurations {
implementationBundled
}
repositories {
maven { url "https://dvs1.progwml6.com/files/maven" }
maven { url "https://cursemaven.com" }
}
dependencies {
minecraft "net.minecraftforge:forge:${forge_version}"
compileOnly fg.deobf("mezz.jei:jei-${jei_version}:api")
implementation fg.deobf("mezz.jei:jei-${jei_version}")
implementation fg.deobf("curse.maven:the-one-probe-245211:${top_version}")
}
minecraft {
mappings channel: 'parchment', version: parchment_version
}
sourceSets {
main {
compileClasspath += configurations.implementationBundled
runtimeClasspath += configurations.implementationBundled
}
}
jar {
from {
configurations.implementationBundled.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
jar.finalizedBy('reobfJar')
task sourcesJar(type: Jar, dependsOn: [classes]) {
from sourceSets.main.allJava
archiveClassifier.set("sources")
manifest.attributes(jar.manifest.attributes)
}
jar.finalizedBy(sourcesJar)
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
}
}
repositories {
maven {
url "file://${project.projectDir}/mcmodsrepo"
}
}
}
}