forked from skyrising/Matcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
82 lines (70 loc) · 1.8 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
plugins {
id 'java-library'
id 'application'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'org.openjfx.javafxplugin' version '0.0.10'
id 'de.jjohannes.extra-java-module-info' version '0.5'
}
repositories {
mavenCentral()
maven {
name "Quilt"
url 'https://maven.quiltmc.org/repository/release/'
}
}
archivesBaseName = 'matcher'
group = 'org.quiltmc'
sourceSets {
main {
java
resources
}
}
javafx {
version = "11.0.2"
modules = [ 'javafx.controls', 'javafx.web' ]
}
java {
modularity.inferModulePath = true
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_11)) {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 11
}
dependencies {
implementation "com.github.javaparser:javaparser-core:3.8.3"
implementation "org.quiltmc:procyon-quilt-compilertools:0.5.35.local"
api "org.ow2.asm:asm:9.4"
implementation "org.ow2.asm:asm-commons:9.4"
api "org.ow2.asm:asm-tree:9.4"
implementation "org.ow2.asm:asm-util:9.4"
implementation "org.quiltmc:cfr:0.0.6"
implementation "org.quiltmc:quiltflower:1.9.0"
}
// TODO: Add Automatic-Module-Name to all these in Quilt forks
extraJavaModuleInfo {
automaticModule("cfr-0.0.6.jar", "cfr")
automaticModule("procyon-quilt-compilertools-0.5.35.local.jar", "procyon.compilertools")
automaticModule("procyon-quilt-core-0.5.35.local.jar", "procyon.core")
automaticModule("quiltflower-1.9.0.jar", "intellij.fernflower")
}
application {
mainModule = 'matcher'
mainClass = 'matcher.Main'
}
build.dependsOn(shadowJar)
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}