This repository was archived by the owner on Nov 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (57 loc) · 1.54 KB
/
build.gradle
File metadata and controls
71 lines (57 loc) · 1.54 KB
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
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
plugins {
id "maven-publish"
id "java"
id "com.gradleup.shadow" version "9.0.0-beta4"
}
base.archivesName = rootProject.archives_base_name
version = rootProject.mod_version
group = rootProject.maven_group
repositories {
mavenLocal()
maven {
name = "Redlance"
url = "https://repo.redlance.org/public"
}
mavenCentral()
}
dependencies {
implementation "org.redlance:common-utils:1.0.0"
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
options.release.set(21)
}
shadowJar {
configurations = [project.configurations.runtimeClasspath]
dependencies {
exclude(dependency('org.jetbrains:annotations'))
exclude(dependency('com.google.code.findbugs:jsr305'))
exclude(dependency('org.checkerframework:checker-qual'))
}
exclude("com/blamejared/searchables/mixin/**")
exclude("searchables.mixins.json")
exclude("pack.mcmeta")
exclude("**/module-info.class")
transform(Log4j2PluginsCacheFileTransformer)
mergeServiceFiles()
//minimize()
}
jar {
manifest {
attributes 'Main-Class' : 'org.redlance.bot.renderer.RendererMain'
attributes 'Multi-Release': 'true'
}
finalizedBy(shadowJar)
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = rootProject.archives_base_name
from components.java
}
}
repositories {
mavenLocal()
}
}