This repository was archived by the owner on Dec 20, 2022. 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
64 lines (54 loc) · 1.44 KB
/
build.gradle
File metadata and controls
64 lines (54 loc) · 1.44 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
buildscript {
repositories {
maven { url 'https://maven.enaium.cn' }
mavenCentral()
}
dependencies {
classpath 'cn.enaium.humblemc:HumbleGradle:1.0.0'
}
}
apply plugin: 'cn.enaium.humblemc.gradle'
apply plugin: 'java'
apply plugin: 'maven-publish'
group 'cn.enaium.humblemc'
version '1.2.0'
def asmVersion = '9.2'
dependencies {
implementation 'cn.enaium:launchwrapper:1.3.0'
implementation 'org.spongepowered:mixin:0.8.5'
implementation("org.ow2.asm:asm:$asmVersion")
implementation("org.ow2.asm:asm-analysis:$asmVersion")
implementation("org.ow2.asm:asm-commons:$asmVersion")
implementation("org.ow2.asm:asm-tree:$asmVersion")
implementation("org.ow2.asm:asm-util:$asmVersion")
}
humble {
minecraft {
version = '1.16.5'
tweakClasses = ['cn.enaium.humblemc.loader.launch.Tweaker']
}
}
targetCompatibility = sourceCompatibility = JavaVersion.VERSION_1_8
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
publishing {
repositories {
def ENV = System.getenv()
if (ENV.MAVEN_URL) {
maven {
url ENV.MAVEN_URL
}
}
}
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
artifact sourcesJar
}
}
}