forked from SpongePowered/Mixin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (68 loc) · 1.89 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
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
}
}
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'com.github.hierynomus.license'
defaultTasks 'licenseFormat', 'check', 'build'
group = 'org.spongepowered'
archivesBaseName = 'mixin'
version = buildVersion + (buildType == 'RELEASE' ? '' : "-$buildType")
java {
modularity.inferModulePath = true
toolchain.languageVersion = JavaLanguageVersion.of(11)
}
repositories {
mavenCentral()
maven { url "https://m00nl1ght.dev/maven/" }
}
sourceSets {
main {}
universalTest {
compileClasspath += main.output
runtimeClasspath += main.output
}
universalTestExample {
compileClasspath += universalTest.output
compileClasspath += main.output
}
}
dependencies {
// api 'dev.m00nl1ght.clockwork.utils:config:0.7'
api 'dev.m00nl1ght.clockwork.utils:logger:0.7'
api 'dev.m00nl1ght.clockwork.utils:profiler:0.7'
implementation 'com.google.guava:guava:30.1.1-jre'
implementation "org.ow2.asm:asm-tree:$asmVersion"
implementation "org.ow2.asm:asm-commons:$asmVersion"
implementation "org.ow2.asm:asm-util:$asmVersion"
universalTestImplementation configurations.implementation
}
processResources {
// Include in final JAR
from 'LICENSE.txt'
}
license {
ext {
name = project.name
organization = project.organization
url = project.url
}
include '**/*.java'
header file("HEADER.txt")
sourceSets = project.sourceSets
ignoreFailures false
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
}
tasks.withType(JavaCompile) {
options.compilerArgs += ['-Xlint:all', '-Xlint:-path', '-proc:none']
options.deprecation = true
options.encoding = 'utf8'
}