This repository has been archived by the owner on Dec 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
86 lines (70 loc) · 1.73 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
plugins {
id 'java-library'
id 'java-gradle-plugin'
id 'maven-publish'
id 'checkstyle'
}
def ENV = System.getenv()
group = 'net.fabricmc'
version = '0.3.1' + (ENV.GITHUB_ACTIONS ? "" : "+local")
java {
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
withSourcesJar()
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.release = 16
}
repositories {
mavenCentral()
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net'
}
}
dependencies {
implementation gradleApi()
implementation "org.ow2.asm:asm:$project.asm_version"
implementation "org.ow2.asm:asm-tree:$project.asm_version"
implementation "cuchaz:enigma:$project.enigma_version"
implementation "net.fabricmc.unpick:unpick:$project.unpick_version"
implementation "net.fabricmc.unpick:unpick-format-utils:$project.unpick_version"
implementation "net.fabricmc:tiny-mappings-parser:$project.tiny_mappings_parser_version"
testImplementation platform("org.junit:junit-bom:$project.junit_version")
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation "org.assertj:assertj-core:$project.assertj_version"
}
gradlePlugin {
plugins {
filament {
id = 'net.fabricmc.filament'
implementationClass = 'net.fabricmc.filament.FilamentGradlePlugin'
}
}
}
test {
useJUnitPlatform()
testLogging {
exceptionFormat = TestExceptionFormat.FULL
}
}
checkstyle {
configFile = file('checkstyle.xml')
toolVersion = '8.41.1'
}
publishing {
repositories {
if (ENV.MAVEN_URL) {
repositories.maven {
name "fabric"
url ENV.MAVEN_URL
credentials {
username ENV.MAVEN_USERNAME
password ENV.MAVEN_PASSWORD
}
}
}
}
}