forked from kristofbolyai/EventBusTransformer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (63 loc) · 2.17 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java library project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/6.8/userguide/building_java_projects.html
*/
plugins {
id 'java-library'
id 'maven-publish'
id "org.gradlex.extra-java-module-info" version "1.1"
}
group "com.wynntils.eventbustransformer"
version = "2.0.2"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
withSourcesJar()
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://maven.minecraftforge.net/"
}
maven {
url "https://maven.architectury.dev/"
}
}
compileJava {
// Architectury transformer embeds org.objectweb.asm.commons module-info
options.compilerArgs += [
"--add-exports=org.objectweb.asm.commons/dev.architectury.transformer.transformers.base=com.wynntils.eventbustransformer",
"--add-exports=org.objectweb.asm.commons/dev.architectury.transformer.shadowed.impl.org.objectweb.asm.tree=com.wynntils.eventbustransformer",
"--add-exports=org.objectweb.asm.commons/dev.architectury.transformer.shadowed.impl.org.objectweb.asm=com.wynntils.eventbustransformer"
]
}
dependencies {
implementation("net.minecraftforge:eventbus:6.0.+") {
exclude group: "cpw.mods", module: "modlauncher"
}
implementation "dev.architectury:architectury-transformer:5.2.+"
implementation "commons-io:commons-io:2.11.+"
implementation "org.ow2.asm:asm:9.3"
implementation "org.ow2.asm:asm-analysis:9.3"
implementation "org.ow2.asm:asm-commons:9.3"
implementation "org.ow2.asm:asm-tree:9.3"
implementation "org.apache.logging.log4j:log4j-api:2.17.1"
implementation "org.apache.logging.log4j:log4j-core:2.17.1"
}
extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
module("net.sf.jopt-simple:jopt-simple", "jopt.simple")
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId "com.github.coehlrich"
}
}
}